Operating System - HP-UX
1747983 Members
4718 Online
108756 Solutions
New Discussion

NIC is being detected as lan2 should be lan0

 
SOLVED
Go to solution
poiulkjh
Occasional Contributor

NIC is being detected as lan2 should be lan0

Hi,

 

I have a HP-UX 11.31 Sept 2011 VM running on an Integrity HP-UX 11.31 Sept 2011 host. When the system detects the NIC it is detecting as lan2. I really need this to use lan0 as this VM is a backup system so I need it to be the same as the primary server.

 

[root@hostname:/]# ioscan -FnC lan
pci:wsio:F:F:F:-1:-1:4294967295:lan:igssn:0/0/1/0:16 60 19 56 0 0 0 6 :2:root.cec_gen.gh2p.igssn:igssn:CLAIMED:INTERFACE:HP IGSSN PCI AVIO LAN Adapter:2:
[root@hostname:/]#

 

The netconf file is populated using lan0 and has no mention of lan2. I know I can get the interface up by changing the netconf file to use lan2 but I really need the interface to use lan0 so the systems are all the same.

 

[root@hostname:/]# more /etc/rc.config.d/netconf | grep lan0
INTERFACE_NAME[0]="lan0"
[root@hostname:/]# more /etc/rc.config.d/netconf | grep lan2
[root@hostname:/]#

 

Any ideas how I can update or force this?

 

TIA

3 REPLIES 3
dipesh_2
Regular Advisor

Re: NIC is being detected as lan2 should be lan0

Can you check the nwmgr output
poiulkjh
Occasional Contributor

Re: NIC is being detected as lan2 should be lan0

Thanks for taking the time to respond.

 

Yeah nwmgr and lanscan, etc all report the PPA as lan2. Just can't seem to get lan0 even though there are only 2 NIC's. Even with one NIC I have the same issue.

 

[root@hostname:/usr/local/bin]# nwmgr

Name/          Interface Station          Sub-   Interface      Related
ClassInstance  State     Address        system   Type           Interface
============== ========= ============== ======== ============== =========
lan2           UP        0x1AB647345EDE igssn    1000Base-T    
lan1           UP        0xE659A4E35422 igssn    1000Base-T    
lan900         DOWN      0x000000000000 hp_apa   hp_apa        
lan901         DOWN      0x000000000000 hp_apa   hp_apa        
lan902         DOWN      0x000000000000 hp_apa   hp_apa        
lan903         DOWN      0x000000000000 hp_apa   hp_apa        
lan904         DOWN      0x000000000000 hp_apa   hp_apa        

poiulkjh
Occasional Contributor
Solution

Re: NIC is being detected as lan2 should be lan0

The PPA numbers can be reset or hard coded via the following methods. Thx to HP Support for the assist.

I went with proc 2

-- ioinit -rC lan

-- Updated /etc/rc.config.d/netconf so the PPA number was 0 and 1 again

-- shutdown -r now

-- ioscan -FnC lan showed lan0 and lan1

 

Procedure-1:

 

1) Verify current instance number assignment for lan class.

 

# ioscan -fnNkClan

Class     I  H/W Path     Driver S/W State   H/W Type     Description

======================================================================

lan       0  0/1/2/0      iether   CLAIMED     INTERFACE    HP  PCI-X 1000Base-T Dual-port Built-in

lan       1  0/1/2/1      iether   CLAIMED     INTERFACE    HP  PCI-X 1000Base-T Dual-port Built-in

lan       2  0/2/1/0/4/0  btlan    CLAIMED     INTERFACE    HP A5506B PCI 10/100Base-TX 4 Port

lan       3  0/2/1/0/5/0  btlan    CLAIMED     INTERFACE    HP A5506B PCI 10/100Base-TX 4 Port

lan       4  0/2/1/0/6/0  btlan    CLAIMED     INTERFACE    HP A5506B PCI 10/100Base-TX 4 Port

lan       5  0/2/1/0/7/0  btlan    CLAIMED     INTERFACE    HP A5506B PCI 10/100Base-TX 4 Port

 

 

2) Generate infile for lan class, which will be used by ioinit

 

# mkdir /tmp/hp

# cd /tmp/hp

# ioscan -kNf | grep ^lan | awk '{printf "%s %s %s\n",$3,$1,$2}' > infile

 

 

3) Edit and modify the infile as per requirements.

 

# vi infile

 

  After then, change the list from

 

0/1/2/0 lan 0

0/1/2/1 lan 1                     <<<<<<

0/2/1/0/4/0 lan 2

0/2/1/0/5/0 lan 3

0/2/1/0/6/0 lan 4

0/2/1/0/7/0 lan 5

 

to

 

0/1/2/1 lan 9                     <<<<<<<<<<<

 

Save file and exit.

 

4) execute ioinit with the infile

# ioinit -rf ./infile

 

System will reboot after the completion. Please check again with ioscan after the reboot.

 

5) Verify new instance number assignment.

 

# ioscan -fnC lan

Class     I  H/W Path     Driver S/W State   H/W Type     Description

======================================================================

lan       0  0/1/2/0      iether   CLAIMED     INTERFACE    HP  PCI-X 1000Base-T Dual-port Built-in

lan       9  0/1/2/1      iether   CLAIMED     INTERFACE    HP  PCI-X 1000Base-T Dual-port Built-in               <<< we have lan9 now

lan       2  0/2/1/0/4/0  btlan    CLAIMED     INTERFACE    HP A5506B PCI 10/100Base-TX 4 Port

lan       3  0/2/1/0/5/0  btlan    CLAIMED     INTERFACE    HP A5506B PCI 10/100Base-TX 4 Port

lan       4  0/2/1/0/6/0  btlan    CLAIMED     INTERFACE    HP A5506B PCI 10/100Base-TX 4 Port

lan       5  0/2/1/0/7/0  btlan    CLAIMED     INTERFACE    HP A5506B PCI 10/100Base-TX 4 Port

 

6) remove old device files if they exist.

 

Procedure-2:

 

  • You may use following procedure to reassign the instance numbers starting from 0.

 

From the man page of ioinit(1M):

-C class_name

Forces the kernel to reassign instance numbers starting from 0 for all existing devices with the given class_name. This option must be used with the option. On successful completion the system is rebooted immediately.

 

  • To force it back to start with instance numbers from 0, run:

# ioinit -rC lan

 

  • The server will reboot after the completion. Please check again with ioscan after the reboot.