The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > OS Specific Forums > AIX
Google UNIX.COM


AIX AIX is IBM's industry-leading UNIX operating system that meets the demands of applications that businesses rely upon in today's marketplace.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
How to change tape device name. fraydey UNIX for Dummies Questions & Answers 2 05-12-2008 06:11 AM
NIC and Device NO to Change Ilias Kappatos UNIX for Dummies Questions & Answers 1 12-24-2007 03:49 AM
%device line change sighbrrguy UNIX for Advanced & Expert Users 1 09-20-2007 08:11 AM
My device files change!!!! lenux78 Linux 2 07-13-2006 06:07 AM
cd rom device rkap UNIX for Dummies Questions & Answers 1 06-23-2005 10:22 AM

Reply
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #1  
Old 10-18-2006
Registered User
 

Join Date: Oct 2006
Posts: 8
Change device name

Hi,
i would to know if is possible to change name of my ethernet device (en0) on AIX.
Help Me!

thanks in advance.

Zio
Reply With Quote
Forum Sponsor
  #2  
Old 10-18-2006
Registered User
 

Join Date: May 2006
Location: England
Posts: 265
Stupid question I know but why do you want to?
Reply With Quote
  #3  
Old 10-18-2006
Registered User
 

Join Date: Oct 2006
Posts: 8
ehhehe you're right!
it's not easy... i have a p595 partition with boot in SAN ok?
I have another partition with NIM that remake the system if the boot is FAILED.
Usually the system have three ethernet device (ent0 - ent1 - ent2) with en0, en1, en2 ok?
If i remove the ethernet device ent1, and the system (in Disaster Situation) fail the boot in SAN, the NIM remake System on onboard disk.
The remaked configuration is with three ethernet device, but now there are only two device and system change ent2 to ent1 ok?
I need to rename ent1 to en2 because there are configuration that need a device with name ent2.

SORRY FOR MY BAD BAD ENGLISH!
I hope that you have understand...

Thanks

Zio
Reply With Quote
  #4  
Old 10-18-2006
Registered User
 

Join Date: Oct 2006
Posts: 8
I think that i change it by odmget and odmchange but i don't know how use these commands.
Reply With Quote
  #5  
Old 10-18-2006
Registered User
 

Join Date: May 2006
Location: England
Posts: 265
Please do not apologise for your English, no need!

Ok try the following. It should work.

ifconfig en# down detach.
smit mktcpip > configure ent2
reboot

If it flips back to ent0 after reboot, I would do this.

ifconfig en# down detach
rmdev –dl en#
mkdev –l ent# ( if this is the etherchannel devices )
chdev –l en# –a state=up
mkdev –l inet0

I would then run "netstat -in" to see all my configured devices.

Good luck.
Reply With Quote
  #6  
Old 10-18-2006
Registered User
 

Join Date: Oct 2006
Posts: 8
Ok, i have found the solution... i Hope

odmget -q "name=en0" CuDv > /tmp/en0.CuDv
odmget -q "name=en0" CuAt > /tmp/en0.CuAt

now i change the name value and after i put the new configuration...

odmadd /tmp/en0.CuAt
odmadd /tmp/en0.CuDv

If you think that it's wrong pls tell me!
i try this tomorrow... hope well!
Reply With Quote
  #7  
Old 10-18-2006
Registered User
 

Join Date: Oct 2006
Posts: 8
Thanks so much JOHN!
i think that your solution is much easy
i try and i say you the responce

Thanks

P.S.
My method, for your opinion, is right?
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes




All times are GMT -7. The time now is 06:44 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0