1753277 Members
4782 Online
108792 Solutions
New Discussion юеВ

Rename Interface

 
SOLVED
Go to solution
Uday_S_Ankolekar
Honored Contributor

Rename Interface

How do I rename a lan interface?
Currently I lan0, lan3,lan5 and lan6 I want lan0 through lan4

Thanks

Modi
Good Luck..
9 REPLIES 9
Patrick Wallek
Honored Contributor

Re: Rename Interface

Why?

It doesn't really matter what the names are.
Steven E. Protter
Exalted Contributor

Re: Rename Interface

Shalom Modi,

This would require you to renumber your hardware instances.

Its difficult and not without risk.

Here is how:

http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=726164

http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=722697

This is not something I'd do for fun. I had to do it once to force a tape drive to /dev/rmt0 and it was no fun at all.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Uday_S_Ankolekar
Honored Contributor

Re: Rename Interface

Patrick,
It's for documentation purpose. we want to have uniform across all the servers.
It's not a must, but if you have any way to do it then let me know

Steven,

The link you provided does not explain anything!
Good Luck..
Rick Garland
Honored Contributor

Re: Rename Interface

There is a tool that can be provided by the ITRC support.

Check Knowledge Base
Doc ID UTRANKBRC00017098
Doc ID KBRC00013394

Both relate to changing the instance numbers.

As stated, this is unsupported! There are risks involved!

Weigh the risks vs the benefits.




HGN
Honored Contributor

Re: Rename Interface

Hi

I think I would leave it like that since there are risks as mentioned by others here.

Rgds

HGN
Uday_S_Ankolekar
Honored Contributor

Re: Rename Interface

Rick,

I don't those doc_id in Knowledgebase. Cany cut/Paste?

How can I obtain that tool?

-Modi
Good Luck..
Rick Garland
Honored Contributor

Re: Rename Interface

The forum moderators will remove the Docs from the posting. You will have to retrieve from the KB. If you have HP support, call them and have HP deliver to you.

The tool name is 'ioconfig_dump'.

I highly suggest to get these documents somehow and review them.

Again, this is an unsupported utility. HP will say "Good Luck"



Rick Garland
Honored Contributor

Re: Rename Interface

I just searched the Knowledge Base for Doc ID UTRANKBRC00017098 and it is there.

This is the document that deals specifically with changing LAN names


A. Clay Stephenson
Acclaimed Contributor
Solution

Re: Rename Interface

I. cd /
ioscan -f | grep -e "DEVICE" -e "INTERFACE" | grep -v "target" | awk '{printf("%-20.20s %-12.12s %3d\n",$3,$1,($2 + 0))}' > devlist # all of this is one line

This creates a file listing HW Path, Class, and Instance Numbers for the devices. It's the Instance Numbers that you want to change.

II. Vi devlist and assign instance numbers 0, 1,2, ... to lan0, lan1, lan2, ... respectively. Leave the disk assignments as they are. Save the file.

III. Now blow away the ioconfig file and reboot:
cd /stand
mv ioconfig ioconfig.old
cd /etc
mv ioconfig ioconfig.old
shutdown -r 0

IV) The system bootup will stop at ioinitrc message:
/sbin/ioinit -c # this will recreate the missing ioconfig files
/sbin/ioinit -f /devlist -r # this will read in your edited file and reboot. You may see error messages like "Input is identical". Pay no attention.

After the box has rebooted, do a lanscan and make sure your assignments are as you expected.
If it ain't broke, I can fix that.