routed adds wrong default route

routed adds wrong default route

Post by Dean Carpent » Sat, 06 Sep 1997 04:00:00



Why is routed added a default route pointing to the local machine ?

Before routed is run, the local routing table looks like this :


Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
10.10.0.0       0.0.0.0         255.255.255.0   U     0      0        5 eth0
172.17.6.0      0.0.0.0         255.255.255.0   U     0      0        2 eth1
172.17.7.0      0.0.0.0         255.255.255.0   U     0      0        1 eth2
127.0.0.0       0.0.0.0         255.0.0.0       U     0      0        0 lo
0.0.0.0         10.10.0.9       0.0.0.0         UG    1      0        3 eth0

After routed starts, the tail of the routing table looks like this :

210.10.23.0     10.10.0.2       255.255.255.0   UG    2      0        0 eth0
130.2.0.0       10.10.0.2       255.255.0.0     UG    1      0        0 eth0
172.31.0.0      172.17.6.2      255.255.0.0     UG    1      0        1 eth1
127.0.0.0       0.0.0.0         255.0.0.0       U     0      0        3 lo
0.0.0.0         0.0.0.0         0.0.0.0         U     0      0        0 eth0
0.0.0.0         10.10.0.9       0.0.0.0         UG    1      0        8 eth0

That new default route pointing to the local machine kinds screws things up.

Dean Carpenter          deano isat areyes dot com        94TT :)
Areyes, Inc.            deano isalsoat netaxis dot com

"No matter where you go, there you are"  sayeth Buckaroo, across the Eighth Dimension

 
 
 

routed adds wrong default route

Post by Dean Carpent » Sat, 06 Sep 1997 04:00:00




> writes:

>>Why is routed added a default route pointing to the local machine ?

>>After routed starts, the tail of the routing table looks like this :

>>210.10.23.0     10.10.0.2       255.255.255.0   UG    2      0        0 eth0
>>130.2.0.0       10.10.0.2       255.255.0.0     UG    1      0        0 eth0
>>172.31.0.0      172.17.6.2      255.255.0.0     UG    1      0        1 eth1
>>127.0.0.0       0.0.0.0         255.0.0.0       U     0      0        3 lo
>>0.0.0.0         0.0.0.0         0.0.0.0         U     0      0        0 eth0
>>0.0.0.0         10.10.0.9       0.0.0.0         UG    1      0        8 eth0

>That doesn't happen here.

>Have you considered the possibility that some other machine is
>broadcasting that as a bogus route?

Good point.  Anyone know of a way to track this down ?  That is, where that
extra default route to 0.0.0.0 is coming from ?

I ran routed with a filename parameter for logging.  I can see the route being
added near the top of the file, right after routed starts.  This makes me
think that the route isn't a dynamic one ...

Dean Carpenter          deano isat areyes dot com        94TT :)
Areyes, Inc.            deano isalsoat netaxis dot com

"No matter where you go, there you are"  sayeth Buckaroo, across the Eighth Dimension

 
 
 

1. Adding Route Add Default to Startup

I have a linux box running rather well, until I have to re-boot. When I
re-boot the machine, I have to type

route add default gw 130.160.xxx.x eth0

before the machine will access any machine outside the 130.160 domain.
Where can I include this line in my startup files?

Thanks in advance.

--
John Alexander
Manager, Area Computing Services
The Capstone College of Nursing
School of Social Work
The University of Alabama

2. HELP!!! Name Server no longer working.

3. defunct routes (was Re: multiple default routes appear in solaris 2.5.1)

4. bootpd setup and bootp server for HP printer

5. Routing Problem with pppd default route option.

6. FVWM killer configs wanted!! :)

7. diald routing problem, no default route for ppp0 with correct gateway

8. HP 4020i sector size 2340 not readable; is there a fix?

9. routed kills default route from pppd

10. dynamic routing - discovery of default routes?

11. routed killing my default route

12. pppd not setting up default route in routing table

13. RH 5.2: Routing table losing default route/gateway