Visit the LQ Articles and Editorials section
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 05-17-2006, 03:35 PM   #1
LQ Newbie
Registered: May 2006
Posts: 1

Rep: Reputation: 0
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 to 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.
Old 05-17-2006, 07:04 PM   #2
Registered: Oct 2003
Location: Carmarthen, Wales
Distribution: Ubuntu and whatever is new kid on the block
Posts: 70

Rep: Reputation: 18
You need to assign IP addresses for each NIC on the Debian box by entering the following into your terminal as root
ifconfig eth0
this assumes that your dsl modem has the address
and for the other card
ifconfig eth1
Then you need to look at this excellent DHCP Server tutorial


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
DHCP gateway question Fernandoch Debian 1 05-18-2006 06:13 AM
dhcp does not set gateway pantoniades Linux - Networking 4 02-14-2006 06:26 AM
No gateway from DHCP when using wireless tnine9 Linux - Wireless Networking 0 01-30-2005 02:00 PM
DHCP and Gateway Renfro Linux - Networking 1 08-28-2003 08:22 PM
linux gateway and DHCP weazy Linux - Networking 3 03-19-2003 05:30 PM

All times are GMT -5. The time now is 02:14 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration