HP-UX Reorder Lan PPAs from default OS installation
Some machines do not present the core I/O lans as lan0 as required.
Follow this procedure to reorder lan PPAs if necessary:
Check the current status of the lan PPAS
(the following example is taken from an rx3600):
# ioscan –kfClan
Class I H/W Path Driver S/W State H/W Type Description
========================================================================
lan 0 0/2/1/0/4/0 iether CLAIMED INTERFACE HP AB545-60001 PCI/PCI-X 1000Base-T 4-port 1000B-T Adapter
lan 1 0/2/1/0/4/1 iether CLAIMED INTERFACE HP AB545-60001 PCI/PCI-X 1000Base-T 4-port 1000B-T Adapter
lan 2 0/2/1/0/6/0 iether CLAIMED INTERFACE HP AB545-60001 PCI/PCI-X 1000Base-T 4-port 1000B-T Adapter
lan 3 0/2/1/0/6/1 iether CLAIMED INTERFACE HP AB545-60001 PCI/PCI-X 1000Base-T 4-port 1000B-T Adapter
lan 4 0/4/2/0 iether CLAIMED INTERFACE HP AB352-60003 PCI/PCI-X 1000Base-T Dual-port Core
lan 5 0/4/2/1 iether CLAIMED INTERFACE HP AB352-60003 PCI/PCI-X 1000Base-T Dual-port Core
lan 6 0/6/1/0/4/0 iether CLAIMED INTERFACE HP AB545-60001 PCI/PCI-X 1000Base-T 4-port 1000B-T Adapter
lan 7 0/6/1/0/4/1 iether CLAIMED INTERFACE HP AB545-60001 PCI/PCI-X 1000Base-T 4-port 1000B-T Adapter
lan 8 0/6/1/0/6/0 iether CLAIMED INTERFACE HP AB545-60001 PCI/PCI-X 1000Base-T 4-port 1000B-T Adapter
lan 9 0/6/1/0/6/1 iether CLAIMED INTERFACE HP AB545-60001 PCI/PCI-X 1000Base-T 4-port 1000B-T Adapter
# ioscan -kfClan | grep "^lan" | awk '{print $3" "$1" "$2}' | sed -e "s/\//./g" > /tmp/newio
This will produce the file /tmp/newio with the following contents (from the given example):0.2.1.0.4.0 lan 0
0.2.1.0.4.1 lan 1
0.2.1.0.6.0 lan 2
0.2.1.0.6.1 lan 3
0.4.2.0 lan 4
0.4.2.1 lan 5
0.6.1.0.4.0 lan 6
0.6.1.0.4.1 lan 7
0.6.1.0.6.0 lan 8
0.6.1.0.6.1 lan 9
0.2.1.0.4.0 lan 2
0.2.1.0.4.1 lan 3
0.2.1.0.6.0 lan 4
0.2.1.0.6.1 lan 5
0.4.2.0 lan 0
0.4.2.1 lan 1
# ioinit -f /tmp/newio –r
Afterwards, check that the lan IDs are as expected:# ioscan –kfClan
Class I H/W Path Driver S/W State H/W Type Description
========================================================================
lan 2 0/2/1/0/4/0 iether CLAIMED INTERFACE HP AB545-60001 PCI/PCI-X 1000Base-T 4-port 1000B-T Adapter
lan 3 0/2/1/0/4/1 iether CLAIMED INTERFACE HP AB545-60001 PCI/PCI-X 1000Base-T 4-port 1000B-T Adapter
lan 4 0/2/1/0/6/0 iether CLAIMED INTERFACE HP AB545-60001 PCI/PCI-X 1000Base-T 4-port 1000B-T Adapter
lan 5 0/2/1/0/6/1 iether CLAIMED INTERFACE HP AB545-60001 PCI/PCI-X 1000Base-T 4-port 1000B-T Adapter
lan 0 0/4/2/0 iether CLAIMED INTERFACE HP AB352-60003 PCI/PCI-X 1000Base-T Dual-port Core
lan 1 0/4/2/1 iether CLAIMED INTERFACE HP AB352-60003 PCI/PCI-X 1000Base-T Dual-port Core
lan 6 0/6/1/0/4/0 iether CLAIMED INTERFACE HP AB545-60001 PCI/PCI-X 1000Base-T 4-port 1000B-T Adapter
lan 7 0/6/1/0/4/1 iether CLAIMED INTERFACE HP AB545-60001 PCI/PCI-X 1000Base-T 4-port 1000B-T Adapter
lan 8 0/6/1/0/6/0 iether CLAIMED INTERFACE HP AB545-60001 PCI/PCI-X 1000Base-T 4-port 1000B-T Adapter
lan 9 0/6/1/0/6/1 iether CLAIMED INTERFACE HP AB545-60001 PCI/PCI-X 1000Base-T 4-port 1000B-T Adapter