1834742 Members
2817 Online
110070 Solutions
New Discussion

Routing Table

 
Troy Blangin
Advisor

Routing Table

I recently had the power go off in the plant and we have backup UPS power but when the initial hit happened the routing table had new entries in it that had IP addresses set to a new Gateway which is our firewall. Someone told me that if the routing cannot be found that it would set it to the default route. I looked in /etc/rc.config.d/netconf and I saw our default route was not the firewall IP address where else could this be set to have it default to the firewall IP address. I really do not know any place else that this route would be set. Someone told me that it would have to be manually entered in the route table if it was not the default. Hopefully somebody can help me. Thanks and have a nice day.
4 REPLIES 4
Kofi ARTHIABAH
Honored Contributor

Re: Routing Table

You might want to take a look at the following thread:

http://my1.itrc.hp.com/cm/QuestionAnswer/1,1150,0x7e4b49c5ae73d4118fef0090279cd0f9,00.html

but you should really set up the your default routes in your /etc/rc.config.d/netconf
nothing wrong with me that a few lines of code cannot fix!
Stefan Farrelly
Honored Contributor

Re: Routing Table


As long as you dont have gated running then its your router which is causing the problem. Difficult to get around. This has been discussed quite a few times, from modifying your router config to running a periodic script to cleanup dynamic routes which may appear (as they can appear due to no fault of your own or your HP server). See this question and its links for all the detail you need;

http://forums.itrc.hp.com:80/cm/QuestionAnswer/1,1150,0x22eb6c96588ad4118fef0090279cd0f9,00.html
Im from Palmerston North, New Zealand, but somehow ended up in London...
Anthony deRito
Respected Contributor

Re: Routing Table

The default route is always used as a wildcard route. It is typically at the bottom of the list when you run netstat -nr command. This route is used when all attempts to find a suitable route in the tables is not successfull.

Now, all your routes are dynamically "learned" by your system. The exception to this is any static routes you may have added via the /etc/rc.config.d/netconf file.

When you run the netstat -nr command and you notice entries with the "M" flag set, this means that the original route was modified. This will happen when the original route was not able to pass on the packet to its destination. An ICMP redirect message is delivered by the router suggesting another route to use. This is typically another router on your network.

You can delete these route without harm. Use the command:

# route delete DESTINATION GATEWAY

The routing tables will "learn" the correct route if it needed again and if the destination is reachable.

Tony
Troy Blangin
Advisor

Re: Routing Table

Thank you for your help