Improve company productivity with a Business Account.Sign Up

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1105
  • Last Modified:

Unix networking/ gateway issue

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.
0
smnphoenix
Asked:
smnphoenix
  • 6
  • 4
  • 2
  • +2
1 Solution
 
fim32Commented:
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.
0
 
smnphoenixAuthor Commented:
That is what I figured, but I cannot find it. I am using AIX.
0
 
fim32Commented:
ah, aix, i believe it's called gated, a quick search on google pulls the man page:

http://www.unet.univie.ac.at/aix/cmds/aixcmds2/gated.htm
0
What Kind of Coding Program is Right for You?

There are many ways to learn to code these days. From coding bootcamps like Flatiron School to online courses to totally free beginner resources. The best way to learn to code depends on many factors, but the most important one is you. See what course is best for you.

 
smnphoenixAuthor Commented:
I found that it is not using gated it is using routed, where woudl the configuration page be for that in AIX.
0
 
fim32Commented:
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):

http://publibn.boulder.ibm.com/doc_link/en_US/a_doc_lib/aixbman/commadmn/commadmntfrm.htm
0
 
fim32Commented:
it's in chapter 3, under "tcp/ip routing"
0
 
smnphoenixAuthor Commented:
If I have all static routes does routed need to be running?
0
 
smnphoenixAuthor Commented:
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.
0
 
JohnnyLingoCommented:
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.  
0
 
smnphoenixAuthor Commented:
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.
0
 
JohnnyLingoCommented:
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.  
0
 
gc-miradaCommented:
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.
0
 
rvaz123Commented:

If routes on AIX box is getting changed due to clitch in the system , means routes are not permanently stored in ODM of server.
Permanent route can be set using smitty route or  by putting entries in /etc/rc.net config file.Hence when server gets rebooted , original set routes are back.
These static routes will be visible all the time using netstat -rn.

Also if you are observing large entries in routing tables. Those would include static routes which were set already and route to hosts or net which were accessed from your server.
This is so because it will access that route to specific server directly. netstat -r will show host name to which telnet/ping etc is initiated from your server.
These entries will be in routing table for certain amount of time and will go if not in used.

Hope this helps..
Reg
0
 
smnphoenixAuthor Commented:
Thank you Reg, this was the answer. It is working perfectly now.

0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Improve Your Query Performance Tuning

In this FREE six-day email course, you'll learn from Janis Griffin, Database Performance Evangelist. She'll teach 12 steps that you can use to optimize your queries as much as possible and see measurable results in your work. Get started today!

  • 6
  • 4
  • 2
  • +2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now