- 论坛徽章:
- 0
|
关于DHCP
How to Enable a Solaris Client to Request Specific Host Name\r\nOn the client system, edit the /etc/default/dhcpagent file as root.\r\n\r\nFind the keyword REQUEST_HOSTNAME in the /etc/default/dhcpagent file and modify it as follows:\r\n\r\n\r\n\r\nREQUEST_HOSTNAME=yes\r\n \r\n\r\nIf there is a comment sign (#) in front of the keyword, remove the #. If the keyword is not present, insert it.\r\n\r\nEdit the /etc/hostname.interface file on the client system and add the following line:\r\n\r\ninet hostname\r\nwhere hostname is the name you want the client to use.\r\n\r\nAs root, type the following commands to have the client perform a full DHCP negotiation upon rebooting:\r\n\r\n\r\n\r\n# pkill dhcpagent\r\n# rm /etc/dhcp/interface.dhc\r\n# reboot\r\n \r\n\r\nThe DHCP server makes sure that the host name is not in use by another system on the network before the server assigns it to the client. Depending how it is configured, the DHCP server may update name services with the client\'s host name.\r\n\r\n找到方法了,晚上回去试 |
|