I'm fairly new to networking of this so I have a lot of questions... any help is appreciated.
I'm setting up a DHCP server and I've run into a few problems... Here is my current setup:
Router IP: 192.168.0.1
Router is handling DHCP
I have to SSH to my server (virtual machine on VMware ESXi) at 192.168.0.117 where DHCP (dhcp3-server) is set up.
following this tutorial I've set everything up as mentioned, also tried other tutorials, here are my questions:
(1) Why am I getting the error: (when trying to do service dhcp3-server restart
)
Not configured to listen on any interfaces! Wrote 0 leases to leases file.
No subnet declaration for eth0 (192.168.0.117).
** Ignoring requests on eth0. If this is not what you want, please write another subnet declaration in your dhcpd.conf file for the network segment to which interface eth0 is attached. **
On this error, this person says you have to set a static IP, is that something that was covered in the first article I linked? If not, how do I do this?
(2) How do I make the switch from my router's DHCP to my local server's DHCP? I can't mess around with my router too much because if I can't SSH to the DHCP server then I can't continue to set it up...
(3) In the dhcpd.conf file it says to set option routers 192.168.1.254;
does this mean I have to change the IP of the router to 192.168.1.254
from 192.168.0.1
? If so, how am I supposed to continue with the setup if I can't connect to my server...
(4) What should go in the option domain-name-servers
section?
(5) What's the difference between using 192.168.1.XXX
and 192.168.0.XXX
, which should I be using?