Solved

linux dupicate routes and linux routing issues

Posted on 2014-03-31
2
186 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
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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Suggested Solutions

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…
This video discusses moving either the default database or any database to a new volume.
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

762 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

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now