Operating System - HP-UX
1753518 Members
5073 Online
108795 Solutions
New Discussion юеВ

Re: Change the LAN name on HP-UX 11iv3

 
SOLVED
Go to solution
Jayaprakash Subramanian
Frequent Advisor

Change the LAN name on HP-UX 11iv3

Hello All,

I need to change the LAN interface name from lan 0 to lan 1. I did the steps as suggested on "http://forums11.itrc.hp.com/service/forums/questionanswer.do?threadId=18368" and here the steps i did for that -

1) Created a file /tmp/lanswap

2) Included the hardware path and the word lan followed by the new interface number

10/4/4 lan 1

3) Issued the command #ioinit -f /tmp/lanswap

then it show an error as -

ioinit: Instance number 1 already exists for class lan.
Line 1. 10/4/4 lan 1

Is there anything i missed on the steps? How to change the name of the lan. Please Advise.

Thanks,
Jayaprakash S




13 REPLIES 13
Johnson Punniyalingam
Honored Contributor

Re: Change the LAN name on HP-UX 11iv3

>>ioinit: Instance number 1 already exists for class lan.
Line 1. 10/4/4 lan 1<<

Looks Ok for me :)

Also like to see below outputs,

netstat -in
lanscan
Problems are common to all, but attitude makes the difference
Johnson Punniyalingam
Honored Contributor

Re: Change the LAN name on HP-UX 11iv3

Changes will be permanent ? or temporarily only

if permanent-> You need edit,

vi /etc/rc.config.d/netconf -> file to change

Lan interface name from lan 0 to lan 1.
Problems are common to all, but attitude makes the difference
Jayaprakash Subramanian
Frequent Advisor

Re: Change the LAN name on HP-UX 11iv3

Hi Johnson,

The reason i want to change the lan interface name is, i have replaced the hardware from rx8640to rx8620 and the OS is in the EVA. I need to retain the old lan interface names for the new hardware also. Here the old and new card names

Old H/W:

lan1 and lan2

New H/W:

lan0 and lan7

So, i need to change lan0 to lan1 and lan7 to lan2.

here the outputs for
i) netstat -in

# netstat -in
Name Mtu Network Address Ipkts Ierrs Opkts Oerrs Coll
lo0 32808 127.0.0.0 127.0.0.1 7994 0 7994 0 0

ii) lanscan

# lanscan
Hardware Station Crd Hdw Net-Interface NM MAC HP-DLPI DLPI
Path Address In# State NamePPA ID Type Support Mjr#
0/0/0/1/0 0x0012799546E1 0 UP lan0 snap0 1 ETHER Yes 119
0/0/12/1/0/6/0 0x00215A9DA066 7 UP lan7 snap7 2 ETHER Yes 119

Thanks,
Jayaprakash S


Solution

Re: Change the LAN name on HP-UX 11iv3

>> I need to retain the old lan interface names for the new hardware also. Here the old and new card names


Why?

HP-UX doesn't care what lan instance numbers are - neither does Serviceguard or any other product I'm aware of... why do you need to retain the lan numbering???

HTH

Duncan

I am an HPE Employee
Accept or Kudo
Jayaprakash Subramanian
Frequent Advisor

Re: Change the LAN name on HP-UX 11iv3

Hi Duncan,

In the Serviceguard configuration, we need to change the "NETWORK_INTERFACE" that is embedded on the configuration file (i.e cmclconfig.ascii). This has to be changed in case of the hardware change. So i'm thinking of changing the interface names instead of changing on the SG configuration files.

Hope this is clear.

--JP

Re: Change the LAN name on HP-UX 11iv3

>>> So i'm thinking of changing the interface names instead of changing on the SG configuration files.


It is much simpler to change the Serviceguard configuration that adjust the LAN IDs...

Th reason that you rae having a problem is that at some poinjt in the past this image of HP-UX _did_ have a lan1. The ioconfig file keeps track of every hardware component that is currently attached _and_ every component that was attached (so if you temporarily detach a disk for instance it goes back with the same HW path and DSF).

You can tell it to forget about this sort of thing and re-number afresh using some of the ioinit options, but to be honest why bother? Altering the Serviceguard configuration is much more straightforward...

HTH

Duncan

I am an HPE Employee
Accept or Kudo
iazuarah
Advisor

Re: Change the LAN name on HP-UX 11iv3

Hi,

 

I have the same problem. In my case i'm configuring the third node for Oracle RAC on hpux 11iv3 and need that all the lan names for each nodes coincide between them.

 

I applied the same procedure of this post, both have the error that the lanx already exists. How can make this changes ??.

 

This is my scenario:

 

# netstat -rin
Name      Mtu  Network         Address         Ipkts              Ierrs Opkts              Oerrs Coll
lan3      1500 10.0.0.0        10.0.0.15       617                0     601                0     0   
lan2      1500 192.168.20.0    192.168.20.39   6837               0     121                0     0   
lan0      1500 146.219.216.0   146.219.216.15  2862               0     1779               0     0   
lo0      32808 127.0.0.0       127.0.0.1       21660              0     21660              0     0   
lan4*     1500 146.219.216.0   146.219.216.15  4804891            0     2375353            0     0   

 

# ioscan -fnkC lan
Class     I  H/W Path       Driver S/W State   H/W Type     Description
========================================================================
lan       0  1/0/1/1/0/4/0  igelan   CLAIMED     INTERFACE    HP A6794-60001 PCI 1000Base-T
lan       1  1/0/2/1/0      iether   CLAIMED     INTERFACE    HP A7011-60001 PCI/PCI-X 1000Base-SX Dual-port Adapter
lan       2  1/0/2/1/1      iether   CLAIMED     INTERFACE    HP A7011-60001 PCI/PCI-X 1000Base-SX Dual-port Adapter
lan       3  1/0/12/1/0     iether   CLAIMED     INTERFACE    HP A7012-60601 PCI/PCI-X 1000Base-T Dual-port Adapter
lan       4  1/0/12/1/1     iether   CLAIMED     INTERFACE    HP A7012-60601 PCI/PCI-X 1000Base-T Dual-port Adapter

 

The lan2 must be lan3 and viceversa for my porpuse.

 

Regards !!

Torsten.
Acclaimed Contributor

Re: Change the LAN name on HP-UX 11iv3

So you need to move lan2 to a higher number (lan10) to free it up; then move lan3 to lan2, then lan10 to lan3.


Be aware; you will likely have to do this after each backup restore!

Why not just leave as it is and swap the cables?

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
iazuarah
Advisor

Re: Change the LAN name on HP-UX 11iv3

I can't swap the cables because the networks configured are in different kind of switches .. i'm going to apply your suggestions. Regards.