- 论坛徽章:
- 0
|
请问在VMware Solaris9中如何设置DHCP?
How to enable the DHCP client on a machine using an already existing interface:
1. ifconfig the affected interface down:
# ifconfig <interface>; down
2. Remove the affected interface from /etc/hosts.
3. Remove the affected /etc/hostname.<interface>; file.
4. Create an empty file called /etc/hostname.<interface>; file
#touch /etc/hostname.<interface>; file
5. create an empty file called /etc/dhcp.<interface>;.
# touch /etc/dhcp.<interface>;
Where <interface>; is the interface that will be
setup for DHCP requests.
6. Reboot the machine.
Upon rebooting, the directory /etc/dhcp will be created that will have
a number of files which, together, define the DHCP configuration for this
machine. DO NOT TOUCH THESE FILES.
Note that there will be a change made to the /etc/hosts file. This entry
was added by DHCP and should not be removed. |
|