1837879 Members
3776 Online
110122 Solutions
New Discussion

LAN card instance number

 

LAN card instance number

I have a K360 Server with three lan cards

I need to switch the card instance number (as displayed by lanscan) for two of
the cards:

Hardware Station Crd Hardware Net-Interface
10/4/12.1 0x0060B06E9B9D 2 UP lan2
10/4/16 0x080009DC81C7 0 UP lan0
10/12/6 0x0060B0589A85 1 UP lan1

Can anybody give me a hint how to change

lan2 --> lan1
lan1 --> lan2
2 REPLIES 2
user not active
Frequent Advisor

Re: LAN card instance number

RCEN DOC A5622970 seems useful ?

Problem Description

I am running HP-UX 10.20 on a series 827 server.

How do I change the instance numbers for my LAN cards?

Configuration Info

Operating System - HP-UX
Version - 10.20
Hardware System - HP9000
Series - 827
Subsystem - Networking

Solution

Perform the following steps to change your instance numbers:

1. Create the '/usr/sbin/infile' file to contain the following
information:

path type_of_device name_reference

10/12/6 lan 2
10/4/16 lan 0

Note: This information changes the name of lan0 to lan2 and
lan2 to lan0.

2. Execute the following command:

/usr/sbin/ioinit -f /usr/sbin/infile -r

Note: At this point, your system automatically reboots. When
the system boots, it is possible that your LAN card
configuration will fail.

To resolve a LAN card failure:

Modify the '/etc/rc.config.d/netconf' file by changing
the INTERFACE_NAME[x] to reflect the new LAN interface
name. For example:

INTERFACE_NAME[2]=lan0 and INTERFACE_NAME[0]=lan2

If 'ionit' returns an error, continue with Step 3.

3. Rename the '/etc/ioconfig' and '/stand/ioconfig' files:

mv /etc/ioconfig /etc/ioconfig.old
mv /stand/ioconfig /stand/ioconfig.old

Renaming these files allows you to boot into single-user mode
and recover from your original files.

4. Reboot the system.

Your system will come up to 'ioinitrc' and prompt you with the
following message:

/etc/ioconfig is missing.
Restore it from backup or invoke '/sbin/ioinit -c' to re-create
it from the kernel.

Issue a Ctrl-D to continue your boot sequence.

5. Restore or re-create the '/etc/ioconfig' file per the
instructions in Step 4.

Execute the 'ioscan' command to view the contents of the new
'ioconfig' file.

6. Execute the following sequence of commands:

(in ioinitrc)# /sbin/ioinit -c
(in ioinitrc)# ^d

7. Use the 'infile' to make the desired changes:

(in ioinitrc)# /sbin/ioinit -f infile -r

You will receive several messages, all of which you can ignore.

Ensure that you have tested your infile before executing the
'ioinit' command.

If necessary, you can perform the following steps:

- Restore the original ioconfig.old files.
- Reboot your system.
- Re-start this process.

Alan Riggs_1
Regular Advisor

Re: LAN card instance number

Use ioinit to reassign instance numbers. Be aware, if the reassignment is
successful you will need to reboot your system to access the cards on their new
instance numbers. I have sometimes found it necessary to do the reassignment
twice, since it will fail if you try to assign an instance that is already in
use.

ioinit -f /tmp/iofile

where /tmp/iofile contains:
10/12/6 lan 3
10/4/12.1 lan 1

then run it again where /tmp/iofile contains:
10/12/6 lan 2


man ioinit has good information and warnings about using this command. I have
generally dropped to single user mode before attempting any reassignment of
disk or I/O instances, but that's just me.