Solved

linux dupicate routes and linux routing issues

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

Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
netcat nc -l reads data in socket too fast - slow it down 18 836
Help instaling linux on vmware 36 95
Configuring windows 7 host in Nagios 4 5 97
centos linux 65 192
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…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

730 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