LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
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
  Search this Thread
Old 11-23-2007, 01:57 PM   #1
interndan
Member
 
Registered: Aug 2004
Location: near Marion, Ill
Distribution: Slackware 15 64bit on Desktop Slackwarearm on Raspberry PI v1b
Posts: 381

Rep: Reputation: 38
need help with routing problem


I am trying to install a remote link into our corporate network. Currently we have:

Internet--->DNS/GATEWAY--->Local Lan
XX.XXX.XXX.XX------------>192.168.0.0/24

I'm using ADTRAN NetVanta 3205s to extend via digital microwave link to remote site set up as follows:

Local Site-->router-->microwave link-->router-->remote site
192.168.0.240--10.XX.XX.XX-------->10.XX.XX.XX--->192.168.1.0/24

The link has been set up and is working, i.e the ADTRAN link is properly routing from one subnet to the other which I tested by using add route on a system at local end pointing to 192.168.1.XX traffic to 192.168.0.240. I was then able to ping from on end to the other.

The problem I have is, I don't know enough about iptables and routing tables to set the local gateway to send 192.168.1.X traffic through 192.168.0.240.

If someone who has experience with this could give me the proper lines to add into the local gateway I would surely appreciate the help.

Thanks Dan

p.s. local gateway system is set up on Slackware.
 
Old 11-23-2007, 05:07 PM   #2
harry edwards
Member
 
Registered: Nov 2007
Location: Lincolnshire, UK
Distribution: CentOS, Fedora, and Suse
Posts: 365

Rep: Reputation: 48
The command you need is 'route add'. The syntax is something like:

route add -net 192.168.1.0 netmask 255.255.255.0 gw 192.168.0.240

And, on the other side (192.168.1\24)

route add -net 192.168.0.0 netmask 255.255.255.0 gw 192.168.1.???

Normally, you would add the rules to your main router (Default Gateway)

The traceroute utility is quite good for checking routing paths i.e.

traceroute 192.168.1.???
 
Old 11-24-2007, 03:12 PM   #3
interndan
Member
 
Registered: Aug 2004
Location: near Marion, Ill
Distribution: Slackware 15 64bit on Desktop Slackwarearm on Raspberry PI v1b
Posts: 381

Original Poster
Rep: Reputation: 38
Thanks for the quick response. That works, it is in fact how I tested the link. The problem is it only works until the system is restarted. I need the syntax to add it to the routing table in the default gateway so it is permanent and I'm assuming it will have to have a rule in the firewall about which I know very little.

Thanks again
Dan
 
Old 11-24-2007, 03:55 PM   #4
harry edwards
Member
 
Registered: Nov 2007
Location: Lincolnshire, UK
Distribution: CentOS, Fedora, and Suse
Posts: 365

Rep: Reputation: 48
Two suggestions:

You could simply add the commands to a shell script and run it at start up (within the /etc/rc.d/). This will ensure the commands are persistent.

Some Linux distributions set-up default routes in the '/etc/sysconfig/static-routes' file.
 
  


Reply



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
One way routing problem tivoklr Linux - Networking 7 08-09-2006 06:08 PM
routing problem siva_raju78 Linux - Networking 1 07-15-2005 02:17 PM
Another Routing problem Bambi Linux - Networking 2 06-03-2004 03:13 PM
Routing problem, Please help! phildawson Linux - Networking 7 12-20-2003 07:11 PM
Problem with routing Shark Linux - Networking 5 11-04-2002 04:03 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 07:35 AM.

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