1833523 Members
2756 Online
110061 Solutions
New Discussion

Change the lan-name

 
SOLVED
Go to solution
Konrad Hegner
Frequent Advisor

Change the lan-name

Hello

OS: HP-UX 11.0
I have to change the lan2 in lan1. I think I have to change the ppa-ID. Know someone how I do this?
Thanks
7 REPLIES 7
Ted Ellis_2
Honored Contributor

Re: Change the lan-name

curious to know the background behind your request?
Konrad Hegner
Frequent Advisor

Re: Change the lan-name

The backgroud is me secret ;-)

No, we installed a Hp-UX system with our lab-machines. We want change know the disk by the costumer with the lab disks. And the costumer system don't have the same lan-name as our lab-system.

We realized this to late. ;-(
S.K. Chan
Honored Contributor

Re: Change the lan-name

Not quite sure if this is the answer you're looking for. On your machine run ..
# lanscan
and you should see which "Network-Interface Name" is available. Let say you want to use lan1. What you do is edit /etc/rc.config.d/netconf and at the line that starts with "INTERFACE_NAME.." put lan1 in it, like so..
INTERFACE_NAME[0]=lan1
Reboot your machine.
James R. Ferguson
Acclaimed Contributor
Solution

Re: Change the lan-name

Hi Konrad:

You need to change the hardware instance number to do this:

Create a file called /tmp/lanswap with the hardware path, the word "lan", and the *new* instance number:

10/4/4 lan 1
10/12/6 lan 2

Now, do:

# ioinit -f /tmp/lanswap
# reboot

Verify the new names with:

# lanscan

# cd /dev
# insf -e
# lssf /dev/lan* #...verify devices and instances

# modify '/etc/rc.config.d/netconf' appropriately

# reboot #...once more...

Regards!

...JRF...


Ted Ellis_2
Honored Contributor

Re: Change the lan-name

try this...

edit the /etc/rc.config.d/netconf file (carefully)

find the entry for your lan2... look something like:


IP_ADDRESS[1]=192.168.33.5
SUBNET_MASK[1]=255.255.255.0
INTERFACE_NAME[1]=lan2
BROADCAST_ADDRESS[1]=192.168.33.255
INTERFACE_STATE[1]=up

change the lan2 to lan1 and reboot... should come back up with a lan1 and not lan2... this is the file read during the boot process that configures the NICs...
Konrad Hegner
Frequent Advisor

Re: Change the lan-name

hi, james

we tried your solution with the ioinit, but it failed because we still have somehow the entry for the lan1 somewhere in the system... we've removed the entries in netconf and the device files and rebooted, but we still have this problem... somehow we have to "delete" the entry for lan1 so that we can reconfigure it...

any ideas?

jerome (working with konrad)
harry d brown jr
Honored Contributor

Re: Change the lan-name

Are you somehow talking about the HOST name and not the name "lan1" or "lan2"?? The reason I ask this is you say your customer doesn't want to use "your" lan name, so again, are you talking about the HOST name???

live free or die
harry
Live Free or Die