Networking Forums

Networking Forums > Computer Networking > Linux Networking > dhcp default route

Reply
Thread Tools Display Modes

dhcp default route

 
 
JA
Guest
Posts: n/a

 
      09-12-2003, 07:47 PM
Very basic routing question: The Linux machine has a dhcp connection to
the ISP on eth0. On eth1 there is a connection to the local ethernet.
Using the route command how do I set up a default route to the ISP for
the local networked machines? Thanks very much.

 
Reply With Quote
 
 
 
 
David Efflandt
Guest
Posts: n/a

 
      09-13-2003, 03:13 AM
On Fri, 12 Sep 2003 12:47:47 -0700, JA <(E-Mail Removed)> wrote:
> Very basic routing question: The Linux machine has a dhcp connection to
> the ISP on eth0. On eth1 there is a connection to the local ethernet.
> Using the route command how do I set up a default route to the ISP for
> the local networked machines? Thanks very much.


The boxes on your LAN need a default route to your eth1 IP and also need
to have nameserver(s) set on them. Your Linux router needs ip_forward
enabled. Assuming your LAN is private IPs, you have to masquerade them
(iptables or ipchains) as your eth0 IP. You should do something in dhcp
related scripts to automatically refresh your firewall/masq
(iptables/ipchains) if your public IP changes.

--
David Efflandt - All spam ignored http://www.de-srv.com/
http://www.autox.chicago.il.us/ http://www.berniesfloral.net/
http://cgi-help.virtualave.net/ http://hammer.prohosting.com/~cgi-wiz/
 
Reply With Quote
Reply

Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
cannot set the default route in a rh9 box Monroe_Buffalo Linux Networking 2 11-11-2005 06:43 PM
RH9 default route Fabio C. Linux Networking 2 04-14-2004 12:07 PM
To delete an old default route George Bell Linux Networking 3 12-14-2003 01:49 AM
Redundancy with second default route David Linux Networking 1 10-13-2003 05:20 PM
Default route - help... Adam Linux Networking 1 07-08-2003 01:23 PM



1 2 3 4 5 6 7 8 9 10 11