Installing and Administering Internet Services

Chapter 8 301
Configuring gated
Troubleshooting gated
Another common scenario occurs in networks where not all gateways
implement the gated routing protocols. In this situation, routes that do
not use gated gateways will not be confirmed by gated, and gated will
delete them unless a static statement is included in /etc/gated.conf:
static {
13.0.0.0 mask 0xff000000 gateway 15.14.14.14 ;
};
The static entry in the above example ensures that the local system
will include a route to network 13.0.0.0 even though the gateway to that
network (15.14.14.14) is not running any of the gated protocols.
You may want to put restrict clauses in the export statements to
keep these extra routes from being advertised.
Problem 3: gated adds routes that appear to be
incorrect
Start by looking at the routing table maintained by gated. Send gated
a SIGINT, and look at the information output in
/var/tmp/gated_dump. Look for the entry of the route in question. The
entry shows the protocol that this route was heard over and the first-hop
router. The first-hop router is likely to be the immediate source of the
information.
If the route was learned over RIP, use /usr/sbin/ripquery to query
the first-hop router for the route. That router may claim to have heard
the route from a router further on. If the first-hop router is another host
running gated, have that host’s gated dump its routing table to find out
where it learned about the route. You may have to repeat this process
several times to track down the original source of the route. If the
problem is that you expect the route to go through a different router, turn
on gated tracing. The tracing tells you which routers are advertising
this route and the values attached to those routes.
Problem 4: gated does not add routes that you think it
should
Tracking down this problem is much like the previous problem (problem
3, above). You expect one or more routers to advertise the route. Turn on
gated tracing to verify that gated is receiving packets of the type of
routing protocol you expect. If these packets do not contain a route you
expect to be there, trace packets on the router you expect to advertise the
route.