We help IT Professionals succeed at work.

Check out our new AWS podcast with Certified Expert, Phil Phillips! Listen to "How to Execute a Seamless AWS Migration" on EE or on your favorite podcast platform. Listen Now


Unix networking/ gateway issue

smnphoenix asked
Medium Priority
Last Modified: 2013-12-23
I am a unix newbie and now have a job were I have to learn to administer a unix box. We have mulitple remote locations connected by frame relay. Whenever there is a clitch in the system (storm, etc), the gateway on that route changes to the wrong address. In order to fix the route we have to delete the route and then add it back correct. I would like to find the root cause of the problem. Any help would be grately appreciated. I don't know exactly what configuration info that I need to give anyone, so hopefully this is enoughto get me some help.

Thanks in advance.
Watch Question

what kind of unix?

odd that the gateway would change, the system must be running some sort of router discovery daemon, for solaris, that would be in.rdisc, you don't need to run it

assuming that you have a route that you wish to use, you can disable the router discovery daemon and just manually use the setting you desire.


That is what I figured, but I cannot find it. I am using AIX.

ah, aix, i believe it's called gated, a quick search on google pulls the man page:



I found that it is not using gated it is using routed, where woudl the configuration page be for that in AIX.

ah, apparently aix uses both... here's the aix admin doc that deals with networking, see the routing chapter for more info on configuring the dynamic routing daemons (or killing them and applying your own static routes):


it's in chapter 3, under "tcp/ip routing"


If I have all static routes does routed need to be running?


I have discovered that new static routes have been showing up that I did not enter, any reason why that would be happening. I figured that may have something to do with the routes getting changed.
When you say the static routes are showing up, is this in the routing table (netstat -rn) or in the static routes list that is loaded on startup?  Static routes loaded in startup are configured in /etc/sysconfig/static-routes in Linux, don't know in AIX.  

If the routes are showing up in the routing table, they are probably being put there by routed, which is a RIP listener/advertiser.  My guess is when one of the frame relay sites goes down, the router is trying to switch to a backup route, and advertising it via RIP.  Take a look at the router's config to verify, since this would really be the root of the problem.

If static routes are getting the job done, then there is no reason to run routed.  It is very, very, common for networks to have unneccesary static routes and dynamic routing protocols (RIP, IGRP, etc) running both on routers and servers.  Most server just need an IP address, subnet mask, default gateway, and DNS servers configured and that's it.  Static routes and dynamic routing protocols should all be setup on the router, since that's its job.  


I was speaking of netstat -rn.  Routed does produce static routes at startup, but many show up later that were not entered by routed.

I have come to the same conclusion that you reached in your second paragraph that it is the router. The problem is that I have multiple routers, and I did not do the setup on them. Therefore I am running a little blind on which particular router is doing the RIP advertising, is there a tool that would help me discover this.
I'd try getting routed to run in debug mode.  Try "killall routed", then run routed -dt.  Every 30 seconds you should see the list of networks, and which router it is coming from.  Another option is use a packet sniffer like tcpdump.  Look for UDP traffic on port 520.

If all else fails, try to physically locate the routers and console in.  On a Cisco, use "show ip route rip", "show ip rip database", and "debug ip rip database" to see what's up.  
I think your system is probably adding routes in accordance to ICMP redirect packets that it is receiving from the router that manages your Frame Relay connection - this is probably set to what ever the default gateway on the router is set to.

I would recommend disabling ICMP redirects on your router, which, in turn should resolve your issue on your AIX system.

On a Cisco Router this is accomplished globaly by the command

no ip icmp redirects

or, you can disable this on a per interface basis by the interface-configuration command

no ip redirects

It is enabled by default on Cisco routers.

Hope this is of some help.
Unlock this solution with a free trial preview.
(No credit card required)
Get Preview


Thank you Reg, this was the answer. It is working perfectly now.

Unlock the solution to this question.
Thanks for using Experts Exchange.

Please provide your email to receive a free trial preview!

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.


Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.