[Webinar] Streamline your web hosting managementRegister Today

x
?
Solved

routing between different subnets/interfaces

Posted on 1999-12-22
6
Medium Priority
?
291 Views
Last Modified: 2010-05-19
Question:
What can I do to solve my routing problem stated below?  I don't care whether I have to configure the linux or the NT, so long as it works!

Details:
I have an NT 4.0 server using ethernet (10.2.0.7, gateway 10.2.0.1, mask 255.255.0.0) and token ring (10.1.0.50, no gateway, mask 255.255.0.0) with RIP service installed and active.

I have an Open Linux 2.3 2.2.10 box using eth0 (206.xxx.xxx.xxx, gateway 206.xxx.xxx.1)which is the 'public' side connected to ISP; eth1 (10.2.0.1, no gateway, mask 255.255.0.0) with masquerading installed.

All ethernet stations (10.2.x.x) can utilize the internet as expected and work perfectly; this includes the NT server itself.

All token ring stations (10.1.x.x) can ping ANY other ip on the ethernet side EXCEPT the linux (10.2.0.1); and so I believe that is why they CANNOT utilize the internet.  The linux box cannot see any token ring stations.

I have tried adding another default route on the linux pointing to 10.2.0.7 (NT) and that lets ALL stations ping ALL OTHER stations; great except it shuts down access to the internet!

I have tried adding a token ring card to the linux, but as soon as it comes online, it shuts down our WAN router!  Let me know if more info is needed

I hopefully gave this enough of a chunk of points for your trouble :)

Todd
0
Comment
Question by:ToddRod
  • 3
  • 2
6 Comments
 

Author Comment

by:ToddRod
ID: 2302392
Edited text of question.
0
 
LVL 1

Accepted Solution

by:
dcavanaugh earned 1000 total points
ID: 2307663
Have you tried setting the default gateway on the Token Ring stations to 10.1.0.50?

Does the linux box have a static route to the 10.1.x.x network?

route add -net 10.1.0.0 netmask 255.255.0.0 gw 10.2.0.7 eth1

If this does not work, please include the results of the ifconfig and route -n commands from the Linux box.
0
 
LVL 1

Expert Comment

by:dcavanaugh
ID: 2308473
Things I should have mentioned in the first comment:

Alternative commands for adding the static 10.1.x.x route for the Linux box:

route add -net 10.1.0.0 netmask 255.255.0.0 gw 10.2.0.7

route add -net 10.1.0.0 netmask 255.255.0.0 eth1

I don't do this often enough to remember which one is precisely right for your situation, but I think the lack of a 10.1.x.x route for the Linux box would cause all of the behavior you mention.  
Assuming you get this to work, you'll have to update your network routing configuration using the appropriate tool for your distribution of Linux.  

Theory: When you experimented with 10.2.0.7 as an auxillary default route for Linux, you provided a viable path from Linux to the 10.1.0.0 network.  The problem was that Linux was fooled into thinking that packets could be delivered to <any> IP address via eth1, which is definitely not true.

Assuming you get this to work, you'll have to update your network routing configuration using the appropriate tool for your distribution of Linux.  

I may get flamed for this, but I favor putting this kind of stuff into a script that gets called from rc.local.   I usually do my upgrades via the fresh-install route,  so I depend on a backup copy of my script file to faithfully re-create my network environment.  I have upgraded many times, and everything worked as long as eth0 and eth1 were physically connected to the the right cables.   If nothing else, it makes me believe that I know how IP networks work.
0
[Webinar] Kill tickets & tabs using PowerShell

Are you tired of cycling through the same browser tabs everyday to close the same repetitive tickets? In this webinar JumpCloud will show how you can leverage RESTful APIs to build your own PowerShell modules to kill tickets & tabs using the PowerShell command Invoke-RestMethod.

 
LVL 1

Expert Comment

by:dcavanaugh
ID: 2311469
Did it work?
0
 

Expert Comment

by:sinfulheathen
ID: 2315448
Have you enabled IP forwarding for the Token Ring card on the NT Server?  also,  Is your IP Masquerading setup aware that the 10.1.x.x hosts should be allowed to forward packets through the 10.2.0.7?  

Goodluck
0
 

Author Comment

by:ToddRod
ID: 2317311
yes, I already had to default gw set to 10.1.0.50 on the tr machines.

the command: route add -net 10.1.0.0 netmask 255.255.0.0 gw 10.2.0.7 eth1
did the trick!  I believe the key was to tell it which interface to use (eth1 in this case) I had actually tried this same command before (minus the interface option) and it killed access to the internet.

Thanks for the tip and lesson!



0

Featured Post

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I have seen several blogs and forum entries elsewhere state that because NTFS volumes do not support linux ownership or permissions, they cannot be used for anonymous ftp upload through the vsftpd program.   IT can be done and here's how to get i…
Note: for this to work properly you need to use a Cross-Over network cable. 1. Connect both servers S1 and S2 on the second network slots respectively. Note that you can use the 1st slots but usually these would be occupied by the Service Provide…
If you're a developer or IT admin, you’re probably tasked with managing multiple websites, servers, applications, and levels of security on a daily basis. While this can be extremely time consuming, it can also be frustrating when systems aren't wor…
The video will let you know the exact process to import OST/PST files to the cloud based Office 365 mailboxes. Using Kernel Import PST to Office 365 tool, one can quickly import numerous OST/PST files to Office 365. Besides this, the tool also comes…
Suggested Courses

591 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question