LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Help with Gateway and dhcp (https://www.linuxquestions.org/questions/linux-networking-3/help-with-gateway-and-dhcp-445783/)

LucianAMD 05-17-2006 02:35 PM

Help with Gateway and dhcp
 
Hello everyone. I need help. I work at a LAN shop and as of late our gateway we had became fried due to a power surge. The guy that had setup the old gateway no longer works here and I am stuck trying to set up a new one. I have done lots of things to try to get it work and lot of research. I’ve tried setting up iptables with no success and tried gui programs like firestarter. I was wondering if you guys could help me out and tell me exactly how I need to do it to get it working. Let me give you some information about what exactly I need.

I have a box installed with Debian 3.1r2 and with two Ethernet cards. What I need is to configure the box so that the internet comes in from the dsl modem to eth0 and out on eth1 to the local network. I also need to configure a dhcp server for the local network. I need the dhcp server to assign an ip range from 10.64.1.110 to 10.64.1.199 out to the local network. Please if help me so I can get the internet back up in the LAN shop. I appreciate any and all help. Thank you so much in advance.

towy71 05-17-2006 06:04 PM

You need to assign IP addresses for each NIC on the Debian box by entering the following into your terminal as root
Code:

ifconfig eth0 192.168.1.3 255.255.255.0
this assumes that your dsl modem has the address 192.168.1.1
and for the other card
Code:

ifconfig eth1 10.64.1.11 255.255.255.0
Then you need to look at this excellent DHCP Server tutorial
HTH


All times are GMT -5. The time now is 05:46 PM.