Operating System - HP-UX
1833882 Members
2868 Online
110063 Solutions
New Discussion

Re: Lan interfaces changing during an upgrade from 11.00 - 11.11

 
JOHN TURNER_2
Frequent Advisor

Lan interfaces changing during an upgrade from 11.00 - 11.11

When we performed an upgrade from 11 - 11.11, the hardware addresses and lan interfaces changed, does anyone know why and is there a simple fix
before the upgrade was performed the lanscan command showed:
Hardware Station Crd Hdw Net-Interface NM MAC HP-DLPI
DLPI
Path Address In# State NamePPA ID Type Support
Mjr#
0/0/0/0 0x00306E09E049 0 UP lan0 snap0 1 ETHER Yes
119
1/2/0/0 0x00306E0672B1 3 UP lan3 snap3 2 ETHER Yes
119
0/8/0/0 0x00306E0632A0 2 UP lan2 snap2 3 ETHER Yes
119
0/10/0/0 0x00306E062261 1 UP lan1 snap1 4 ETHER Yes
119

however once the upgrade has been completed, the network cards got screwed
up and displayed
Hardware Station Crd Hdw Net-Interface NM MAC HP-DLPI
DLPI
Path Address In# State NamePPA ID Type Support
Mjr#
0/0/0/0 0x00306E09E049 0 UP lan1 snap0 1 ETHER Yes
119
1/2/0/0 0x00306E0672B1 3 UP lan0 snap3 2 ETHER Yes
119
0/8/0/0 0x00306E0632A0 2 UP lan2 snap2 3 ETHER Yes
119
0/10/0/0 0x00306E062261 1 UP lan3 snap1 4 ETHER Yes
119
GUI's are for wimps!
2 REPLIES 2
A. Clay Stephenson
Acclaimed Contributor

Re: Lan interfaces changing during an upgrade from 11.00 - 11.11

Generally this happens when hardware was added/removed/moved between the time the old OS was installed and the new OS was installed so that the devices are discovered in different order.

The fix is rather simple:

ioscan -f | grep -e "INTEFACE" -e "DEVICE" | grep -v -i "target" | awk '{printf("%-20.20s %-12.12s %3d\n",$3,$1,($2 + 0))}' > /myfile

Using vi, edit /myfile and change the lan instances as you wish but make sure than no instance numbers are duplicated.

mv /stand/ioconfig /stand/ioconfig.safe
mv /etc/ioconfig /etc/ioconfig.safe
shutdown -r -y 0

The system will stop the reboot at the ioinitrc prompt because of the missing files:
Issue this command:
/sbin/ioinit -c
/sbin/ioinit -f /myfile -r

You may get warnings like "input identical to kernel" -- these are normal and expected and may be safely ignored. The "-r" triggers a reboot.

You lan configurations should be correct now. Man ioinit for details. This same procedure can also be used to change disk controller instances as well but use this with caution.
If it ain't broke, I can fix that.
A. Clay Stephenson
Acclaimed Contributor

Re: Lan interfaces changing during an upgrade from 11.00 - 11.11

Ooops,

INTERFACE is misspelled:
ioscan -f | grep -e "INTEFACE" -e "DEVICE" | grep -v -i "target" | awk '{printf("%-20.20s %-12.12s %3d\n",$3,$1,($2 + 0))}' > /myfile

should be:
ioscan -f | grep -e "INTERFACE" -e "DEVICE" | grep -v -i "target" | awk '{printf("%-20.20s %-12.12s %3d\n",$3,$1,($2 + 0))}' > /myfile
If it ain't broke, I can fix that.