Solved

linux dupicate routes and linux routing issues

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

VMware Disaster Recovery and Data Protection

In this expert guide, you’ll learn about the components of a Modern Data Center. You will use cases for the value-added capabilities of Veeam®, including combining backup and replication for VMware disaster recovery and using replication for data center migration.

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…
This Micro Tutorial will give you a basic overview how to record your screen with Microsoft Expression Encoder. This program is still free and open for the public to download. This will be demonstrated using Microsoft Expression Encoder 4.
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …

809 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