1833764 Members
2661 Online
110063 Solutions
New Discussion

Can't configure lan0

 
SOLVED
Go to solution
Dan DeHaan
Advisor

Can't configure lan0

New HPUX-11 install on L2000 server. I am not able to configure the lan0 interface.

lanscan returns:
Hardware Station Crd Hdw Net-Interface NM MAC HP-DLPI DLPI
Path Address In# State NamePPA ID Type Support Mjr#
0/0/0/0 0x001083FF9AC2 0 UP lan0 snap0 1 ETHER Yes 119
0/3/0/0/6/0 0x00306E2D9982 1 UP lan1 snap1 2 ETHER Yes 119
0/3/0/0/7/0 0x00306E2D9983 2 UP lan2 snap2 3 ETHER Yes 119

ioscan -fnC lan returns:
Class I H/W Path Driver S/W State H/W Type Description
========================================================================
lan 0 0/0/0/0 btlan3 CLAIMED INTERFACE HP PCI 10/100Base-TX
Core
/dev/diag/lan0 /dev/ether0
lan 1 0/3/0/0/6/0 btlan3 CLAIMED INTERFACE HP A5838A PCI 100Bas
eTX/SCSI COMBO
/dev/diag/lan1 /dev/ether1
lan 2 0/3/0/0/7/0 btlan3 CLAIMED INTERFACE HP A5838A PCI 100Bas
eTX/SCSI COMBO
/dev/diag/lan2 /dev/ether2

A listing of /dev/lan is:
lrwxr-xr-x 1 root sys 9 Dec 21 10:30 /dev/lan -> /dev/dlpi
crw------- 1 root root 245 0x000000 Dec 22 09:19 /dev/lan0
crw------- 1 root root 245 0x010000 Dec 22 09:19 /dev/lan1
crw------- 1 root root 245 0x020000 Dec 22 09:19 /dev/lan2

The 'ifconfig lan0' command returns 'no such interface'. After the 'ifconfig lan0 plumb' command, 'ifconfig lan0' then returns:
lan0: flags=843
inet 0.0.0.0 netmask 0

When I issue 'ifconfig lan0 172.16.0.100 netmask 255.255.255.0 up' I get the response 'ioctl (SIOCSIFNETMASK): bad value' and then 'ifconfig lan0' responds with 'no such interface' again.

I've been playing with this for hours - both manually and with SAM - no luck either way.
5 REPLIES 5
Sanjay_6
Honored Contributor

Re: Can't configure lan0

Hi Dan,

seems like you are violating some RFC code,

Take a look at this thread,

http://www1.itrc.hp.com/service/cki/docDisplay.do?docLocale=en_US&docId=200000063228394

The itrc doc id is A5633481

Also take a look at this thread,

http://www1.itrc.hp.com/service/cki/docDisplay.do?docLocale=en_US&docId=200000062912284

This doc id is NETUXKBRC00008098.

Hope this helps.

Regds
Patrick Wallek
Honored Contributor
Solution

Re: Can't configure lan0

I believe your problem is related to your 0 subnet (172.16.0). That is not allowed according the RFC-1122.

This can be turned off via ndd.

Try this:

# ndd -get /dev/ip ip_check_subnet_addr
It should return a value of '1' which means it will check and disallow invalid subnets according to the RFC.

To fix it:

# ndd -set /dev/ip ip_check_subnet_addr 0

Now try your ifconfig again.

Refer to TKB document KBRC00001356 for more information.
http://www1.itrc.hp.com/service/cki/docDisplay.do?docLocale=en_US&docId=200000063199864
Dan DeHaan
Advisor

Re: Can't configure lan0

The ndd command fixed it - thanks Patrick. I'll have to save that in my bag of tricks.
Tom Danzig
Honored Contributor

Re: Can't configure lan0

Dan,

Keep in ming that in order to survive a reboot, you will need to add the ndd setting supplied from Patrick in your /etc/rc.config.d/nddconf file. Otherwise lan0 will be back in the same baot after a reboot.
rick jones
Honored Contributor

Re: Can't configure lan0

FWIW, I believe that 11i (11.11 and later) defaults to ip_check_subnet_addr = 0
there is no rest for the wicked yet the virtuous have no pillows