1836772 Members
2225 Online
110109 Solutions
New Discussion

Lost route

 
SOLVED
Go to solution
Ron Irving
Trusted Contributor

Lost route

When I performed a scheduled reboot earlier this week, I noticed during startup, that network services failed. The system referred me to the /etc/rc.log file. The first thing I noticed was:
Configure LAN interfaces
Output from "/sbin/rc2.d/S008net.sd start":
ERROR: usage: add destination [netmask mask] gateway [metric]
"/sbin/rc2.d/S008net.sd" FAILED

There was another section later in the file, referring to /sbin/rc2.d/S340net.

Both of these sections are exactly the same, as are the two files, S008net.sd and S340net.

Only /sbin/rc2.d/S340net has an assiciated 'K' script.

Upon reboot, we lost the default route, and had to enter it manually.

Any ideas?

Ron
Should have been an astronaut.
10 REPLIES 10
John Poff
Honored Contributor
Solution

Re: Lost route

Hello,

Check your /etc/rc.config.d/netconf file. That is where the routes are configured. Probably someone has tried to add/change a route by hand and gotten one of the parameters wrong.

JP
Ron Irving
Trusted Contributor

Re: Lost route

The netconf file has the lines:

ROUTE_DESTINATION[0]=default
ROUTE_MASK[0]="255.255.0.0"
ROUTE_GATEWAY[0]="172.16.0.1"
ROUTE_COUNT[0]=1
ROUTE_ARGS[0]=""

Is there any problem with the sytax, or something? This is EXACTLY what's there.

ron
Should have been an astronaut.
MANOJ SRIVASTAVA
Honored Contributor

Re: Lost route

Hi Ron

I am attaching a working netconf file . Please check it , it looks like the subnet mask is not correct , just a thought .


Manoj Srivastava
MANOJ SRIVASTAVA
Honored Contributor

Re: Lost route

Hi Ron

I am attaching a working netconf file . Please check it , it looks like the subnet mask is not correct , just a thought .


Manoj Srivastava
John Poff
Honored Contributor

Re: Lost route

Your netconf entries for the default route look ok to me. If your netconf file hasn't changed, the only other thing I can think of is that maybe the router you are using for your gateway was down or unavailable briefly when the box was booting. I've seen that happen before.

JP
Ron Irving
Trusted Contributor

Re: Lost route

should the route mask be set to null? That seems a little strange to me. But, then again, I am strange...just a thought.
Should have been an astronaut.
John Poff
Honored Contributor

Re: Lost route

Your mask will default to the longest subnet mask of the configured interfaces if you don't specify one. I don't set mine and it gets it right, but I guess there could be situations where you would need to set it.

You're strange? Me too! I think that's what attracts me to Unix. :)

JP

Ron Irving
Trusted Contributor

Re: Lost route

Good point, John. We just did a complete zen thing with our network here. We went voice over ip for a new phone system, and the routers have all changed from HP stuff to the new Cisco call manager 7750. I shouldn't think they would go down, though...a:brand new.
b:that would affect adversly the phone system.

HOWEVER: All of these problems didn't start until we put the new equipment online.

Perplexing...

(A career as a circus clown might be adventageous)
Should have been an astronaut.
John Poff
Honored Contributor

Re: Lost route

A circus clown? Hmm... I think the closest analogy to a Sys Admin is a weatherman. They both have to work with thousands of variables out of their control, and lots of people hate them when they get it wrong! :)

Of course, the hard problems are the fun ones!

JP
rick jones
Honored Contributor

Re: Lost route

i'm not sure i've ever seen a netmask on a default route

as for changing routers, i doubt this will change anything, but just to be complete, keep in mind that by defaultr, HP-UX 11 will periodically ping routers to check their health. if the routers do not respond, the routes through them are disabled. controlled through ip_ire_gw_probe

ftp://ftp.cup.hp.com/dist/networking/briefs/annotated_ndd.txt

there is no rest for the wicked yet the virtuous have no pillows