Setting DHCP HostName In Debian && CentOS

In CentOS, Just add

DHCP_HOSTNAME=foobar

in /etc/sysconfig/network-scripts/ifcfg-[devname]

In Debian Just Define "hostname" in interfases which will be used as the Hostname to be requested (pump, dhcpcd, udhcpc) .This Option could only be used under The dhcp Method

PS:edit the dhclient.conf and change this setting also works

send host-name "foobar";

Author Info :
  • From:Setting DHCP HostName In Debian && CentOS
  • URL:https://blog.ihipop.com/2012/03/3058.html
  • Please Reserve This Link,Thanks!
  • 发表回复

    您的电子邮箱地址不会被公开。 必填项已用*标注