THIS IS A TEST INSTANCE. ALL YOUR CHANGES WILL BE LOST!!!!
...
Configure the dhcpd.conf file:
Panel |
---|
vi /etc/dhcpd.conf |
No Format |
---|
ddns-update-style none; shared-network vmnet1 { subnet 192.168.0.0 netmask 255.255.0.0 { ignore unknown-clients; option routers 192.168.0.1; host vmguest-1 { option host-name "vmguest-1"; hardware ethernet 00:50:56:1A:01:01; fixed-address 192.168.1.1; option dhcp-server-identifier 192.168.0.1; } } } |
...
Panel |
---|
vi /etc/init.d/dhcpd |
Add vmnet1 the to the daemon $dhcpd line as shown:
No Format |
---|
start() { [ -x $dhcpd ] || return 5 [ -f $conf ] || return 6 pidofproc $prog >/dev/null 2>&1 RETVAL=$? [ $RETVAL -eq 0 ] && return $RETVAL echo -n $"Starting $prog: " daemon $dhcpd vmnet1 $DHCPDARGS 2>/dev/null RETVAL=$? echo [ $RETVAL = 0 ] && touch $lockfile return $RETVAL } |
...