Solved

linux dupicate routes and linux routing issues

Posted on 2014-03-31
2
199 Views
Last Modified: 2014-05-07
I am in a network that linux hosts with multiple interfaces ( prod, backup, management ).

We have to manually route off the linux box to multiple gateways.  

How do I find duplicate routes, bad routes ect ?

redhat 5+
0
Comment
Question by:TIMFOX123
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 6

Accepted Solution

by:
Hassan Besher earned 500 total points
ID: 39968433
route -n
0
 
LVL 12

Expert Comment

by:Kent W
ID: 40048362
A simple "route" statement will print the routing table.

First, set your default gateway.  Then, any other routes, add manually.   Any that you manually define will take those routes for that network, and any others take the default.  You can only define one default, but as many other routes as you need.

For manual routes, use this format, change for the actual IPs / NM, GWs involved -

/sbin/route add -net 192.168.1.0 netmask 255.255.255.0 gw 192.168.168.72

IMPORTANT - depending on your linux flavor, you will need to add to your route script (usually in 'etc/sysconfig/yadda", OR just place the route statements in your /etc/rc.local

The rc.local executes on startup, so they will remain "persistent".  If you want to do it very correctly, lookup the file your routing statements are housed in in your flavor / release of *nix and place them there.
0

Featured Post

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

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…
There's a multitude of different network monitoring solutions out there, and you're probably wondering what makes NetCrunch so special. It's completely agentless, but does let you create an agent, if you desire. It offers powerful scalability …

691 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