LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
LinkBack Search this Thread
Old 05-03-2007, 03:13 PM   #1
selie
LQ Newbie
 
Registered: May 2007
Posts: 3

Rep: Reputation: 0
Question routing table


Hi there,

I have a bit of Linux/Unix exprience but when it comes to networking am a newbie..
Here is my dilemma, we got two seperate LANs of two different customers that share an application that is running on a Nitix Linux server. LAN1 has access to the net but LAN2 does not; thus I thought it would be easy to route LAN2 internet access requests via LAN1, but i could not get it going.

LAN1 is connected to the Nitix server's eth0 (10.32.2.100) and LAN2 (10.32.4.100)is connected to eth1. I tried to set up the routing table, using 'route' to no avail..please help..By the way, the Nitix server does not have "routed" daemon..

Here are the commands I used, after configuring the interfaces..
`route add -net 10.32.2.0 ...eth1`
`route add -net 10.32.4.0...eth0`
then added the default gw
`route add default gw 10.32.4.1`

Here is what the routing table looks like now..

[root@NITIX home]# route -n
Kernel IP routing table
Destination Gateway Genmask Use Iface
10.32.4.0 0.0.0.0 255.255.255.0 eth1
10.32.2.0 0.0.0.0 255.255.255.0 eth0
127.0.0.0 0.0.0.0 255.0.0.0 lo
0.0.0.0 10.32.2.1 0.0.0.0 eth0

Thanks for your help..
..
 
Old 05-03-2007, 03:29 PM   #2
rahulk
Member
 
Registered: Mar 2006
Posts: 110

Rep: Reputation: 16
route add -net 10.32.0.0 mask 255.255.0.0 eth1

Try this and then let me know if it does not work.

Rahul Khare.
 
Old 05-04-2007, 09:12 AM   #3
selie
LQ Newbie
 
Registered: May 2007
Posts: 3

Original Poster
Rep: Reputation: 0
Rahul,

I will try your suggestion over the weekend and will let you how it goes..

Thanks a mil!
 
  


Reply


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


Similar Threads
Thread Thread Starter Forum Replies Last Post
How do i save my routing table? Titanas25 Linux - Newbie 2 04-19-2006 03:08 AM
routing table arvind kumar Linux - Networking 2 06-08-2005 11:59 PM
Help with a Routing Table maginotjr Linux - Networking 4 06-06-2005 09:49 AM
Where is the routing table created? sidra Linux - Networking 1 04-18-2005 05:08 AM
routing table upr8830 Linux - Networking 6 06-18-2003 03:04 AM


All times are GMT -5. The time now is 06:38 PM.

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