Operating System - HP-UX
1830327 Members
2187 Online
110001 Solutions
New Discussion

Re: LAN Configuration [FAIL]

 
Grant Wenstrand
Occasional Advisor

LAN Configuration [FAIL]

I received a complaint from a client about a subnet mask issue on a 9000/700 running 10.20.

When I attempted to recreate the problem (changed netmask to 255.255.255.224), the LAN Configuration FAILED at bootup. While logged in, I don't appear to have any network problems as I can talk to other machines on the same network, but I can't figure out why this item FAILS at bootup. I have changed the netmask back to the original configuration (255.255.255.240), and it still fails at bootup. I made the changes using both ifconfig and SAM, and get the same result

Can someone please tell me what I am doing wrong? I am still relatively new to HP-UX, so any advice would be greatly appreciated.

Thanks,

Grant
4 REPLIES 4
RikTytgat
Honored Contributor

Re: LAN Configuration [FAIL]

Hi,

The reason a startup script has the 'FAILED' flag, is because the script returned an exit code of 2 (... I believe. It is 1 or 2, the other being the cause for the 'SKIPPED' flag).

You say that everything seems to work fine, so it can be an unexpected error in the startup script.

The first thing to do is check the contents of the file /etc/rc.log. This file contains output (stdout/stderr) of the boot scripts. These errors might help pinpointing the problem


Bye,
Rik
CHRIS_ANORUO
Honored Contributor

Re: LAN Configuration [FAIL]

Check and update /etc/rc.config.d/netconf file with the lan configurations as necessary.

Cheers!
When We Seek To Discover The Best In Others, We Somehow Bring Out The Best In Ourselves.
Alan Riggs
Honored Contributor

Re: LAN Configuration [FAIL]

I seem to recall some issues with the way that HP interprets the RFC that specifies subnetting. If subnet checking iss enabled, HPUX will not allow you to use the forst or last subnet in a network. If you see any errors like: ioctl (SIOCSIFNETMASK): Bad value, then that is almost certainly the issue.

You can disable subnet mask checking on the fly with:
nettune -s ip_check_subnet_addr 0 (for 10.20)
ndd -set /dev/ip ip_check_subnet_addr 0 (for 11.00)

To make these changes permanent modify your network startup script for 10.20 or /etc/rc.config.d/nddconf for 11.0.
Vincente Fernandes
Valued Contributor

Re: LAN Configuration [FAIL]

Make sure that /etc/rc.config.d/netconf is updated with the subnetmask which you want.
Below is a sample of it.
INTERFACE_NAME[0]=lan?
IP_ADDRESS[0]="x.x.x.x"
SUBNET_MASK[0]="255.255.252.x"
BROADCAST_ADDRESS[0]=""
LANCONFIG_ARGS[0]="ether"
DHCP_ENABLE[0]=0
i guess ifconfig doesn't update the netconf file.