I have a scenario where I have two FreeBSD
machines. I setup one to be a DHCP
server so it can lease IP address. I have provided IP
ranges, default DNS
, host name , and all other settings in my dhcpd.conf
file,
option domain-name "josh";
option domain-name-servers 192.168.234.129;
option subnet-mask 255.255.255.0;
default-lease-time 600;
max-lease-time 7200;
subnet 192.168.234.0 netmask 255.255.255.0 {
range 192.168.234.230 192.168.234.235;
option routers 192.168.234.2;
}
and the second one to be a client. When I am running the FreeBSD
client virtual machine, it has a static IP
address of 192.168.234.128
, but I want it to lease the IP address from the FreeBSD DHCP
server that I setup.
I have done this in rc.d
file,
ifconfig_em0="DHCP"
But how does it know the IP address of the DHCP
server to lease from?
Both the machines are setup in VMWare
environment, and are on the same network.