...
The dhcpd.conf file should contain the following:
Panel |
---|
|
noformat subnet 192.168.0.0 netmask 255.255.0.0 {
| ignore unknown-clients;
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;
}
hardware ethernet 00:50:56:1a:01:01;
fixed-address 192.168.1.1;
filename "/tftpboot/pxelinux.0";
option dhcp-server-identifier 192.168.0.1;
next-server 192.168.0.1;
}
}
}
|
|
The DHCP daemon should only listen on the virtual private network (vmnet1) to avoid conflicts with other production VCL networks. Configure the dhcpd service startup script to only listen on the vmnet1 interface:
...
Add vmnet1 the to the daemon $dhcpd line as shown:
Panel |
---|
|
noformat
[ -x $dhcpd ] || return 5 |
pidofproc $prog >/dev/null 2>&1 |
[ $RETVAL -eq 0 ] && return $RETVAL |
echo -n $"Starting $prog: " |
daemon $dhcpd vmnet1 $DHCPDARGS 2>/dev/null |
[ $RETVAL = 0 ] && touch $lockfile |
|
Configure the dhcpd service to automatically start at runlevels 3-5:
...