Operating System - HP-UX
1833461 Members
3205 Online
110052 Solutions
New Discussion

Re: Change of lan name Part 2

 
SOLVED
Go to solution
Konrad Hegner
Frequent Advisor

Change of lan name Part 2

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)
7 REPLIES 7
Ted Ellis_2
Honored Contributor

Re: Change of lan name Part 2

hmmm... can you provide the contents of your netconf file? Feel free to sanitize... don't care about the ip numbers
Ted Ellis_2
Honored Contributor

Re: Change of lan name Part 2

when you do a lanscan.. does it show a lan1 available?
Ted Ellis_2
Honored Contributor

Re: Change of lan name Part 2

sorry for not putting all this in a single reply.... run the verbose option

lanscan -v and see what it says about lan1
Konrad Hegner
Frequent Advisor

Re: Change of lan name Part 2

hi, ted...

to answer your question, lanscan -v doesn't show anything about lan1...

our netconf file has the entry for three different interface cards [0] [2] [3] with all the normal entries for Interface name...

i tried forcing [2] to the name lan1, but it causes a duplicate address error and i can't connect...

any help would be great... this is a critical issue...

thanks
jerome
S.K. Chan
Honored Contributor
Solution

Re: Change of lan name Part 2

I see what you're trying to do, you wanted to change the instance number for your lan interface. I didn't quite understand your question in the previus thread. Here is what you should do ..
# cd /
# ioscan -kf|grep -e INTERFACE -e DEVICE|awk '{printf "%s %s %s\n",$3,$1,$2}'>infile

The infile would look something like this ..
......
0/0/2/0 ext_bus 2
0/0/2/0.2 target 3
0/0/2/0.2.0 disk 1
0/0/2/0.7 target 4
0/0/2/1 ext_bus 3
10/4/8 lan 1
.......
10/12/6 lan 0
.....

Before you do anything else, run "lanscan" and you should see (fr the above example) ..
10/4/8=lan1
10/12/6=lan0
Now let say I want to swap the instance numbers. You would vi the infile.. and edit just that 2 lines to look like this ..
....
10/4/8 lan 0
....
10/12/6 lan 1

Do not change the rest of the entries in that file. Test the "ioinit" command against the file :-
# ioinit -f infile 2>&1|more
==> Look for errors with any of the changed lines. If no diagnostic message is displayed for that line then it is good. All other lines that do not change will say something like ..
..
ioinit: Input identical to kernel, line ignored
Input line 1: 0/0/2/0 ext_bus 0
....

The next step is to rename /etc/ioconfig and /stand/ioconfig so that if anything wrong you can go back to original config. Rename them to say ".bak" extension. Reboot the system. It will come up to ioinitrc and give this message:-

/sbin/ioinitrc /etc/ioconfig missing. Restore it from backup or invoke /sbin/ioinit -c to recreate it from kernel.
(in ioinitrc) #

Run this :-
(in ioinitrc) # /sbin/ioinit -f /infile -r
(in ioinitrc) # ^d

The last command in the ioinitrc prompt is CTRL-D. After that the system will reboot and you should get the instance numbers for swapped.


harry d brown jr
Honored Contributor

Re: Change of lan name Part 2

Do you think you could either keep it within the previous thread or provide a link to the previous thread rather than either omitting information or failing to bring everyone up-to-date as to the cirumstances of the situation?

Do you have ANY idea how many "james"'s there are in the world?

:-)))


live free or die
harry
Live Free or Die
harry d brown jr
Honored Contributor

Re: Change of lan name Part 2


Ahh, now I see the related thread.

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???

If you REALLY are talking about "lan1" showing up somewhere, do this:

ls -l /dev/lan*

Can you post :

ioscan -fn

The whole thing as a text file.

then post

/etc/rc.config.d/netconf



live free or die
harry
Live Free or Die