mutiple default routes appear in 2.5.1

mutiple default routes appear in 2.5.1

Post by Ernie Oport » Fri, 18 May 2001 23:28:48



I'm seeing the problem described below.  How do I get rid of the default
routes that appear with "--" as the gateway in netstat?  It's not an easy
thing to look for in databases with the "--". =)  Once the "--" appears, the
system only uses that as the default route and never touches the real one.

I'm using Solaris 2.5.1 and upgrading to a higher version of Solaris is not
an option at this time, but I can patch if needed.  This clears up on a
reboot, but I would prefer to keep the box running.

Ernie

---------------------------------
Hi,
 somehow one of our sun boxes ended up with multiple default routes,
one of which had the gateway listed as '--'. When we
tried to delete the extranous routes it we received an error
saying that the route didnt' exist. However, netstat -rn
clearly showed that it did.  This happened on solaris 2.5.

Any ideas?

- Francois

 
 
 

mutiple default routes appear in 2.5.1

Post by Mathew Kirsc » Sat, 19 May 2001 03:04:33



> I'm seeing the problem described below.  How do I get rid of the default
> routes that appear with "--" as the gateway in netstat?  It's not an easy
> thing to look for in databases with the "--". =)  Once the "--" appears, the
> system only uses that as the default route and never touches the real one.

> I'm using Solaris 2.5.1 and upgrading to a higher version of Solaris is not
> an option at this time, but I can patch if needed.  This clears up on a
> reboot, but I would prefer to keep the box running.

I've never heard of such a problem... Hmm.

It sounds like you have in.routed running on the system, and it's
auto-discovering this problem route from a misconfigured router/switch. If you
don't have in.routed running, I'm totally stumped.

What does the routing table look like? Post the output of netstat -rn.

If you only have one "default" route, just put its IP in /etc/defaultrouter
and reboot. That will prevent in.routed from running.

 
 
 

mutiple default routes appear in 2.5.1

Post by Ernie Opor » Mon, 28 May 2001 06:55:49


in.routed was indeed running, but since my defaultroute changes due to
the dynamic nature of my DHCP cable modem (yay...) I can't use that
file, so I've just commented the portion out in /etc/rc2.d/S69inet for
now.

The routes look like this...
vader:/var/named#>netstat -nr

Routing Table:
  Destination           Gateway           Flags  Ref   Use   Interface
-------------------- -------------------- ----- ----- ------ ---------
127.0.0.1            127.0.0.1             UH       0      2  lo0
216.164.212.1            --                UH       5      0  
255.255.255.255          --                UH       5      0  
216.164.212.255          --                UH       5      0  
192.168.0.0          192.168.0.100         U        2    292  hme0
default                  --                U        5   3467  le0

which DHCP then makes this once an address is discovered...
vader:/var/named#>netstat -nr

Routing Table:
  Destination           Gateway           Flags  Ref   Use   Interface
-------------------- -------------------- ----- ----- ------ ---------
127.0.0.1            127.0.0.1             UH       0      2  lo0
149.112.50.99        127.0.0.1             UGH      0      0  
216.164.212.1            --                UH      10      0  
216.164.212.1        149.112.50.99         UH      10      0  le0
255.255.255.255          --                UH      10      0  
255.255.255.255      149.112.50.99         UH      10      0  le0
216.164.212.255          --                UH      10      0  
216.164.212.255      149.112.50.99         UH      10      0  le0
149.112.50.64        149.112.50.99         U       10      1  le0
192.168.0.0          192.168.0.100         U        2    298  hme0
default                  --                U       10   4417  
default              149.112.50.99         U       10      0  le0

Ernie



> > I'm seeing the problem described below.  How do I get rid of the default
> > routes that appear with "--" as the gateway in netstat?  It's not an easy
> > thing to look for in databases with the "--". =)  Once the "--" appears, the
> > system only uses that as the default route and never touches the real one.

> > I'm using Solaris 2.5.1 and upgrading to a higher version of Solaris is not
> > an option at this time, but I can patch if needed.  This clears up on a
> > reboot, but I would prefer to keep the box running.

> I've never heard of such a problem... Hmm.

> It sounds like you have in.routed running on the system, and it's
> auto-discovering this problem route from a misconfigured router/switch. If you
> don't have in.routed running, I'm totally stumped.

> What does the routing table look like? Post the output of netstat -rn.

> If you only have one "default" route, just put its IP in /etc/defaultrouter
> and reboot. That will prevent in.routed from running.

 
 
 

mutiple default routes appear in 2.5.1

Post by Mathew Kirsc » Wed, 30 May 2001 21:14:43



> in.routed was indeed running, but since my defaultroute changes due to
> the dynamic nature of my DHCP cable modem (yay...) I can't use that
> file, so I've just commented the portion out in /etc/rc2.d/S69inet for
> now.

So it's working okay now? You would have to comment out the in.routed part in
the init scripts because 2.5.1 doesn't natively understand DHCP...

If you're still having problems, it's probably in your DHCP configuration.
Unfortunately, I haven't had the opportunity to dabble with it yet (I will
once I find a small, quiet, inexpensive serial terminal for my SS4).

 
 
 

mutiple default routes appear in 2.5.1

Post by Ernie Oport » Thu, 07 Jun 2001 21:07:58


Killing in.routed has kept the default route from sticking around, but I
still see defunct routes remaining...

vader:/etc#>netstat -nr

Routing Table:
  Destination           Gateway           Flags  Ref   Use   Interface
-------------------- -------------------- ----- ----- ------ ---------
127.0.0.1            127.0.0.1             UH       0      2  lo0
208.59.205.129           --                UH       8      0
208.59.205.129       209.122.138.40        UH       8      0  le0
255.255.255.255          --                UH       8      0
255.255.255.255      209.122.138.40        UH       8      0  le0
208.59.205.255           --                UH       8      0
208.59.205.255       209.122.138.40        UH       8      0  le0
192.168.0.0          192.168.0.100         U        2    274  hme0
209.122.138.0        209.122.138.40        U        8     23  le0
default              209.122.138.1         UG       0   7873

Ernie


> in.routed was indeed running, but since my defaultroute changes due to
> the dynamic nature of my DHCP cable modem (yay...) I can't use that
> file, so I've just commented the portion out in /etc/rc2.d/S69inet for
> now.

> The routes look like this...
> vader:/var/named#>netstat -nr

> Routing Table:
>   Destination           Gateway           Flags  Ref   Use   Interface
> -------------------- -------------------- ----- ----- ------ ---------
> 127.0.0.1            127.0.0.1             UH       0      2  lo0
> 216.164.212.1            --                UH       5      0
> 255.255.255.255          --                UH       5      0
> 216.164.212.255          --                UH       5      0
> 192.168.0.0          192.168.0.100         U        2    292  hme0
> default                  --                U        5   3467  le0

> which DHCP then makes this once an address is discovered...
> vader:/var/named#>netstat -nr

> Routing Table:
>   Destination           Gateway           Flags  Ref   Use   Interface
> -------------------- -------------------- ----- ----- ------ ---------
> 127.0.0.1            127.0.0.1             UH       0      2  lo0
> 149.112.50.99        127.0.0.1             UGH      0      0
> 216.164.212.1            --                UH      10      0
> 216.164.212.1        149.112.50.99         UH      10      0  le0
> 255.255.255.255          --                UH      10      0
> 255.255.255.255      149.112.50.99         UH      10      0  le0
> 216.164.212.255          --                UH      10      0
> 216.164.212.255      149.112.50.99         UH      10      0  le0
> 149.112.50.64        149.112.50.99         U       10      1  le0
> 192.168.0.0          192.168.0.100         U        2    298  hme0
> default                  --                U       10   4417
> default              149.112.50.99         U       10      0  le0

> Ernie




- Show quoted text -


> > > I'm seeing the problem described below.  How do I get rid of the
default
> > > routes that appear with "--" as the gateway in netstat?  It's not an
easy
> > > thing to look for in databases with the "--". =)  Once the "--"
appears, the
> > > system only uses that as the default route and never touches the real
one.

> > > I'm using Solaris 2.5.1 and upgrading to a higher version of Solaris
is not
> > > an option at this time, but I can patch if needed.  This clears up on
a
> > > reboot, but I would prefer to keep the box running.

> > I've never heard of such a problem... Hmm.

> > It sounds like you have in.routed running on the system, and it's
> > auto-discovering this problem route from a misconfigured router/switch.
If you
> > don't have in.routed running, I'm totally stumped.

> > What does the routing table look like? Post the output of netstat -rn.

> > If you only have one "default" route, just put its IP in
/etc/defaultrouter
> > and reboot. That will prevent in.routed from running.