Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Moving NIC

Status
Not open for further replies.

unixfreak

ISP
Oct 4, 2003
632
GB

Hi, what would be the cleanest and easiest way of moving the main network config from en0 to en2?

mktcpip? And how to remove it? Or am I doing it completely wrong here?
 
this might work:

ifconfig en0 down
ifconfig en0 detach
rmdev -l en0 -d
rmdev -l ent0 -d

do the same for en2, if it's in the box

then

cfgmgr

in some cases, your host will find a network card in a slot before it will find the on board one. if it does, then what was en2 will now be en0.
 

Hi, sorry maybe I should have been more specific. The card is already in there. I just need to move the config to en2.

If I do

ifconfig en0 down
ifconfig en0 detach
rmdev -l en0 -d

Will the IP config completely dissapear, even after a reboot?
 
downing the network interface will take that config offline, ie it will be out of your routing table. if you were to then just boot, it'd all come back.

you can use 'smitty tcpip' to change the configs around. it will run the mktcpip comand for you. go into the 'Minimum Config..' tab to start, if you've never used smit b4...

 
I've had this trouble moving to etherchannel. I've noticed it all depends on what specifically you've done to ent2.

Assuming you already have ent2 as an adapter I would do this:

ifconfig en0 down detach.
smit mktcpip # configure ent2
reboot #understanding this may not be possible for you.

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

ifconfig en0 down detach
rmdev –dl en0
mkdev –l ent2 ( if this is the etherchannel devices )
chdev –l en2 –a state=up
mkdev –l inet0

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


 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top