Operating System - HP-UX
1834427 Members
1635 Online
110067 Solutions
New Discussion

S340net start error during boot

 
SOLVED
Go to solution
Tim Killinger
Regular Advisor

S340net start error during boot

I've just cold installed ux 11.0 on an rp5430 for my first time!! At this point the only problem I see at boot is in lan interface initialization. The following is from /etc/rc.log

I've check to see that lan0 is configured, netconf looks good, all ethernet devices are "claimed"...

Any ideas?

Thanks!!


Configure LAN interfaces
Output from "/sbin/rc2.d/S340net start":
----------------------------
ERROR: Failed to add route entry because its interface is not
yet initialized. May need to add this route entry with
a route commad after the interface is up :
add net default: gateway 144.8.13.254: Network is unreachable
"/sbin/rc2.d/S340net start" FAILED
10 REPLIES 10
Steven E. Protter
Exalted Contributor

Re: S340net start error during boot

It would be helpful to know more about the network configuration of the box involved.

A dump of the relavent portions of /etc/rc.config.d would be most helpful

This post provides a first good step.

http://search.hp.com/redirect.html?url=http%3A//forums.itrc.hp.com/cm/QuestionAnswer/1,,0x90a2663ce855d511abcd0090277a778c,00.html&qt=%22Network+is+unreachable%22&hit=1

After boot, try the following diagnostic steps.

ifconfig lan0

Is the card up.

If not, look for a typo in netconf and try bringing it up manually.

ifconfig lan0 IP_of_machine netmaks proper_mask.

example

ifconfig lan0 192.168.0.40 netmask 255.255.255.0

check it again, if its not up, you have a problem, most likely with the driver.

Its possible the network is unreachable because there is a wire or hub/switch issue.

Check the router/hub for the appropriate lights when the machine is up. Most hp NIC cards have an amber light and a green light lit, amber at least flashing when properly up.

Here is a post with additional diagnostic information.

http://search.hp.com/redirect.html?url=http%3A//forums.itrc.hp.com/cm/QuestionAnswer/1,,0x042a06350fe2d61190050090279cd0f9,00.html&qt=%22Network+is+unreachable%22&hit=2

You might just want to try set_parms again and see what happens.

Let me know if you need more help, I'll check this thread in 60-90 minutes.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Michael Tully
Honored Contributor

Re: S340net start error during boot

Perhaps the required number of hops for your network is incorrect. (ROUTE_COUNT) See the below the /etc/rc.config.d/netconf file content.

INTERFACE_NAME[0]="lan0"
IP_ADDRESS[0]="10.10.10.2"
SUBNET_MASK[0]="255.255.0.0"
BROADCAST_ADDRESS[0]=""
INTERFACE_STATE[0]=""
DHCP_ENABLE[0]=0


ROUTE_DESTINATION[0]="default"
ROUTE_MASK[0]=""
ROUTE_GATEWAY[0]="10.10.10.10"
ROUTE_COUNT[0]="1"
ROUTE_ARGS[0]=""
Anyone for a Mutiny ?
John Poff
Honored Contributor

Re: S340net start error during boot

Hi,

Just a few things I can think of that I've tripped over before. Your IP addresses and subnet mask are all correct and happy? Is your lan card coming up at the right speed and duplex? That shouldn't matter, but if the switch you are plugged into is hard coded for something faster than your card is configured for they might not get along. Also, did you specify the hop count for your default route setting?

JP
Tim Killinger
Regular Advisor

Re: S340net start error during boot

I found some lines in netconf did not have "" around the value, but still no luck..

Here are a few more bits of info:

ifconfig lan0
lan0: flags=843
inet 144.8.192.9 netmask ffffff00 broadcast 144.8.192.255
#

netconf contents......

HOSTNAME="icgswa1"
OPERATING_SYSTEM=HP-UX
LOOPBACK_ADDRESS=127.0.0.1



.....


INTERFACE_NAME[0]="lan0"
IP_ADDRESS[0]="144.8.192.9"
SUBNET_MASK[0]="255.255.255.0"
BROADCAST_ADDRESS[0]="144.8.192.255"
INTERFACE_STATE[0]=""
DHCP_ENABLE[0]=0


......


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


Tim Killinger
Regular Advisor

Re: S340net start error during boot

I found some lines in netconf did not have "" around the value, but still no luck..

Here are a few more bits of info:

ifconfig lan0
lan0: flags=843
inet 144.8.192.9 netmask ffffff00 broadcast 144.8.192.255
#

netconf contents......

HOSTNAME="icgswa1"
OPERATING_SYSTEM=HP-UX
LOOPBACK_ADDRESS=127.0.0.1



.....


INTERFACE_NAME[0]="lan0"
IP_ADDRESS[0]="144.8.192.9"
SUBNET_MASK[0]="255.255.255.0"
BROADCAST_ADDRESS[0]="144.8.192.255"
INTERFACE_STATE[0]=""
DHCP_ENABLE[0]=0


......


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


Michael Tully
Honored Contributor

Re: S340net start error during boot

Did you reboot your system after making these changes?
Anyone for a Mutiny ?
Tim Killinger
Regular Advisor

Re: S340net start error during boot

yes, I rebooted.
Patrick Wallek
Honored Contributor
Solution

Re: S340net start error during boot

Part of your netconf file:

INTERFACE_NAME[0]="lan0"
IP_ADDRESS[0]="144.8.192.9"
SUBNET_MASK[0]="255.255.255.0"

ROUTE_DESTINATION[0]="default"
ROUTE_GATEWAY[0]="144.8.13.254"
ROUTE_COUNT[0]="1"

That default route, as far as I can tell, will not work with the combination IP address and netmask that you have on your system. An IP of 144.8.192.9 and a netmask of 255.255.255.0 indicated that the 144.8.192.* network is local, ie. you can get to stuff there without going thru a router. Your default route of 144.8.13.254 is not local to the network your machine is on, hence it can't communicate with it.

Two things to check: 1) Do you have the correct default router? 2) Is your subnet mask correct? Should it perhaps be 255.255.0.0? If so, then your default route may work.
S.K. Chan
Honored Contributor

Re: S340net start error during boot

What about setting the local interface as the router .. some of our servers are setup that way.
ROUTE_DESTINATION[0]="default"
ROUTE_MASK[0]=""
ROUTE_GATEWAY[0]="144.8.192.9"
ROUTE_COUNT[0]="0"
ROUTE_ARGS[0]=""
The route count would be 0 since it's a local route and the route gateway is the ip of the machine itself.
Tim Killinger
Regular Advisor

Re: S340net start error during boot

All fixed... It was simply incorrect gateway address which even I should have caught. I'm configuring this for someone else and the addresses were completely unfamiliar - that's my excuse anyway!

Thanks everyone!