Installing and Administering Internet Services

386 Chapter8
Configuring gated
Troubleshooting gated
network interface).
Problem 2: gated deletes routes from the routing table
gated maintains a complete routing table in user space, and keeps the
kernel routing table synchronized with its table. When gated starts, it
reads the entries in the kernel routing table. However, if gated does not
get confirmation from its routing protocols (RIP, OSPF, etc.) about a
route, it will delete the route from its tables and the kernel routing table.
It is common to see gated delete the default route that many people
configure in the /etc/rc.config.d/netconf file. To solve this problem,
configure a static default route as described in the section “Installing
Static Routes” on page 370.
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 theroute to go through a different router, turn