/etc/network/interfaces for a Linux router & DHCP & DNS Question.
I want to thank anyone who can help in advance for any advice they can give!
I'm running Ubuntu 10.04LTS BTW
I know most of what I need to do to set up my router but I am stuck at the point of /etc/network/interfaces. I am setting up the external NIC as DHCP as it will get an IP from the modem (192.168.254.254) it assigns 192.168.254.1. I am setting the internal NIC to static with the following settings IF THE ARE CORRECT:
iface eth1 inet static
Now I currently have a Linksys router that is set to IP address 192.168.1.1. I would like to make my linux router the same address so I know I will need to change the 192.168.1.2 address when I do the hardware change over.
Now here is where I am confused. My Linksys is set as the DNS server, gateway and DHCP server. I don't know what to set as the gateway on the internal NIC (the one above with the question marks). If this box is going to be the gateway/router/DNS/firewall/etc for the network do I set the gateway for the internal NIC (eth1) to point to the address 192.168.1.1 (once I do the hardware change and set/change the Linux box static IP from 192.168.1.2 to 192.168.1.1) or do I set the gateway to the modem address?
I'm using this guide to set things up and it is pretty good but it is still a little unclear.
Finally I want to make sure I have DHCP server setup properly before I make the switch (I guess I could just make my computers static if it doesn't work) What can I do to make sure it is setup and running. In Webmin I see this:
I also don't know if this is all setup for DNS as well. This is the pic from webmin
Is there a way to check to see if DNS and DHCP are going to work when I do the switchover?