Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 08-07-2008, 04:30 PM   #1
LQ Newbie
Registered: Aug 2008
Location: South Africa
Distribution: RHEL
Posts: 2

Rep: Reputation: 0
Help regarding routing from one subnet to another

Hey all!

Here is my setup : Two linux boxes and a adsl router.
Box A has two nic's, eth0 and eth1. eth1 is connected to the adsl router and the router does all the "work" ie. masquerading et al. that resides on the 192.168.1.X subnet
Box A connects to Box B on eth0 and resides on the 192.168.0.X subnet.
Box A has a fully functional internet connection thru eth1 via the adsl router
Box A and Box B has a working connection on the 192.168.0.X subnet.
I would like to have a set up that would allow Box B internet access, but I dont want to set up Box A to do the work of the adsl router.
Im juts looking for basic ip functionaility ie. Box B should be able to ping a internet ip, Box A should effectively pass all "outside internet"
destined traffic from Box B over from the eth0 (192.168.0.X) interface via eth1 (192.168.1.X) to the adsl router.
Im not concerned about firewalling at this time, im just experimenting/learning one step at a time
Both subnets are statically configured, no dhcp
Any help would be appreciated.
Thanks in advance
Old 08-07-2008, 04:41 PM   #2
Senior Member
Registered: Jan 2003
Location: Devon, UK
Distribution: Debian Etc/kernel 2.6.18-4K7
Posts: 2,380

Rep: Reputation: 49
Box A specify the gateway as the ip address of the router and Box B specify the gateway as the ip address of Box A. If you have masquerading working then you should now be able to login to the router http address. If you can do this then you will be able to access the Internet. You need to restart networking after altering the networking configurations. You should also specify either the isp dns or router address in resolv.conf of Box B


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 to a node with same subnet? kmand Linux - Networking 3 09-13-2007 07:59 AM
routing from one subnet to another NetAX Linux - Networking 2 06-16-2004 09:10 AM
Help with Subnet Routing xatmes Linux - Networking 6 04-27-2004 12:52 AM
routing problem with the same subnet nobody Linux - Newbie 1 10-03-2003 03:23 PM
NAT'd subnet routing question ealpert1 Linux - Networking 10 05-19-2003 03:07 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:22 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration