SUMMARY: RE: {more information} static routing table was updated after reboot

From: David Duan (RD-US) <David_Duan_at_trendmicro.com>
Date: Fri Mar 08 2002 - 18:20:00 EST
Thanks for the following person who replies, it's a great list,

Very Penguin [dt1649651@yahoo.com]
Hans Schaechl [hans.schaechl@kippdata.de]
Steve Sandau [ssandau@bath.tmac.com]
Todd Urie [rtu@alumni.rowan.edu]
Serguei Borkov [sborkov@yahoo.com]
Kevin Reichhart [KReichhart@Yantra.com]

most of them suggest to check /etc/netmasks file.  it donot seem to solve
the problem, that file is used to specify the networks to which the local
host belongs.

what I want is to see is if there is a configuration file I can update to
add an static routing entry in the routing table during boot up process.
when the system is rebooted, seems it remembers the routing entry somewhere
but it remembered it incorrectly.  
e.g my host is 10.2.202.60/255.255.254.0, there is a line in /etc/netmasks
file on my host:
10.0.0.0 255.255.254.0.

before reboot my host, I added a routing entry in the routing table,
(10.2.202.99 is the gateway)
216.100.62.0 255.255.254.0 10.2.202.99

after rebooting my host, that entry was changed to:
216.100.62.0 255.255.255.0 10.2.202.99


Serguei Borkov said:
the only way to add a static route is through rc scripts.
-----------------------------------
Very Penguin said:
Same place to check : /etc/netmasks
oyu must have at least this line in /etc/netmasks

216.100.62.0 
255.255.254.0

besides the script that adds that static route somewhre in rc*
-----------------------------------
Todd Urie said:
I'm taking a guess here, but it looks like Solaris is setting the subnet
mask back to the normal class C value.  216.100.62.0 is a Class C address
which carries a defualt subnet mask of 255.255.255.0.  Looks like Solaris
considers that 255.255.254 subnet mask to be invalid because it is 'less'
than the default.  You can subnet more bits than the default, but not less.

I'm not very knowledgable about CIDR or variable length subnet masks (VLSM).
Use of these, if Solaris supports it, might make  my above explanation
invalid.


Todd Urie
rtu@alumni.rowan.edu


> -----Original Message-----
> From: David Duan (RD-US) 
> Sent: Friday, March 08, 2002 11:25 AM
> To: 'sunmanagers@sunmanagers.org'
> Subject: {more information} static routing table was updated after
> reboot
> 
> 
> Sorry, there is a typo in my original message,
> 
> after reboot, the following entry was changed
> before reboot:
> 216.100.62.0         255.255.254.0   10.2.202.99              
>     1500*    0   1 UG       1     0
> after reboot:
> 216.100.62.0         255.255.255.0   10.2.202.99              
>     1500*    0   1 UG       1     0
> 
> > -----Original Message-----
> > From: David Duan (RD-US) 
> > Sent: Friday, March 08, 2002 11:22 AM
> > To: 'sunmanagers@sunmanagers.org'
> > Subject: static routing table was updated after reboot
> > 
> > 
> > Hi Gurus,
> > 
> > I experienced the following problem on my solaris 8 box which 
> > sit on 10.2.202.0/255.255.254.0 network.
> > I added a static routing entry on my solaris 8 box by doing 
> > the following
> > # route add 216.100.62.0/23 10.2.202.99
> > the following is my routing table on my solaris:
> > IRE Table: IPv4
> >   Destination             Mask           Gateway          
> > Device Mxfrg  Rtt  Ref
> >  Flg  Out  In/Fwd
> > -------------------- --------------- -------------------- 
> > ------ ----- ----- --- --- ----- ------
> > 200.200.200.0        255.255.255.0   200.200.200.2        
> > hme1    1500*    0   1  U        0     0
> > 10.2.202.0           255.255.254.0   10.2.202.60          
> > hme0    1500*    0   1  U        1     0
> > 216.100.62.0         255.255.254.0   10.2.202.99              
> >     1500*    0   1 UG       1     0
> > 224.0.0.0            240.0.0.0       10.2.202.60          
> > hme0    1500*    0   1 U        0     0
> > 127.0.0.1            255.255.255.255 127.0.0.1            lo0 
> >     8232*    0  27 UH    4575     0
> > 
> > the problem is when I reboot this machine, the entry in the 
> > routing table was changed to the following,
> > 10.2.202.0           255.255.255.0   10.2.202.60          
> > hme0    1500*    0   1  U        1     0
> > 
> > Do you know how this happened?  any configuration file I can 
> > update (excetp rc* scripts)?
> > 
> > TIA,
> > - David Duan -
_______________________________________________
sunmanagers mailing list
sunmanagers@sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers
Received on Sun Mar 10 22:14:31 2002

This archive was generated by hypermail 2.1.8 : Thu Mar 03 2016 - 06:42:37 EST