I want my virtual router (freebsd FreeBSD and in Virtualbox) to be a DHCP server so it can give its own IP addresses to the virtual clients on the network. I installed isc-dhcp42-server, but it did not install the dhcpd.conf.example file. So I'm creating it by hand using the example from the FreeBSD handbook. However, some of the options I don't know how to apply it to my own situation of a virtualized network.
For a domain name, I don't have one. But I can make one up just to serve the purpose. But for the routers and the dns servers, I am going to rely on myfreebsd FreeBSD router. So would I type something like this:
And also, in the host fantasia function, whose MAC address is referenced there? I'm assuming it's the ethernet card of the DHCP server. But if that's the case, how is this referring to the client's MAC address as I'm not understanding the correlation of the explanation. Or I'm over thinking...as I know what DHCP does but this function makes no mention of a DHCP client's MAC address but the server itself who already has an IP address. (I don't think I explained this correctly
Thanks
For a domain name, I don't have one. But I can make one up just to serve the purpose. But for the routers and the dns servers, I am going to rely on my
Code:
option domain-name-servers freebsdrouter;
option routers freebsdrouter;
And also, in the host fantasia function, whose MAC address is referenced there? I'm assuming it's the ethernet card of the DHCP server. But if that's the case, how is this referring to the client's MAC address as I'm not understanding the correlation of the explanation. Or I'm over thinking...as I know what DHCP does but this function makes no mention of a DHCP client's MAC address but the server itself who already has an IP address. (I don't think I explained this correctly
Thanks