Download your favorite Linux distribution at LQ ISO.
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 11-13-2003, 08:43 AM   #1
LQ Newbie
Registered: Nov 2003
Distribution: RedHat
Posts: 11

Rep: Reputation: 0


I am setting up a Linux box to route to the internet. I have two nics installed and working fine. One serves the problems the other serves to connect to the internet via DSL (DHCP) no problems there.

When I try to hit the internet from client (Linux) box on the network, it will not go.

I have done this in the past using RedHat 7.3 and PPP, however, I am now using RedHat 9 and DSL.

On the client box, I have the linux router in /etc/hosts. I also set the default route from the client to that box.

On the Linux router I have set up masquerading as follows:

in the /etc/rc.d/rc.local file, I added ip masquerading for eth0

The DSL interface automatically adds to the route table an entry for the DHCP ip address, and a default route (which is to the DSL modem/router)

How should the router and client be configured to handle the default route going to the DSL route?

Any assistance or pointers in the right direction is greatly appreciated,

Old 11-13-2003, 09:21 AM   #2
Registered: Oct 2003
Distribution: Slackware
Posts: 388

Rep: Reputation: 30
You either need to give the clients and the server NIC which talks to the clients static ip addresses (eg 192.168.1.x) or give the server a static address and run dhcpd on the server set to listen on the LAN NIC and give out ip's to the clients.

You set the default gateway on the clients to the server's LAN ip.
If NAT/MASQ is enabled correctly it should then work. You might need to
turn on ip forwarding on the server.


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
routing jmono Linux - Networking 5 02-07-2006 06:20 AM
Ip Routing alanfullmer Linux - Networking 1 03-18-2005 12:20 PM
real routing under nat routing nothingmuch Linux - Networking 4 10-27-2003 03:11 PM
Routing in RH 8.0 Hybrid Blue Linux - Networking 2 10-12-2003 05:41 PM
Routing jimval7 Linux - Networking 3 02-08-2002 04:06 PM > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 03:01 AM.

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
Open Source Consulting | Domain Registration