1833776 Members
2363 Online
110063 Solutions
New Discussion

Change default nic

 
SOLVED
Go to solution
Gene Laoyan
Super Advisor

Change default nic

My server has lano as the default nic, how can I change it to lan1?

Thanks
5 REPLIES 5
IT_2007
Honored Contributor
Solution

Re: Change default nic

You inform everybody they see network change.
This will cause connectivity issue with server. Better do this at server console.
configure /etc/rc.config.d/netconf

and if you want to make 100 Full Duplex permanent then change relative file in /etc/rc.config.d
btlanconf or hpgelanconf.
Change network physical connection from lan0 to 1.
then /sbin/init.d/net stop;/sbin/init.d/net start
DCE
Honored Contributor

Re: Change default nic


If you do not want to modify the files manually -

Use SAM
disable the current lan0 card
enable lan1 card with desired IP address and speed setting

move network cable from lan0 card to lan1 card


Steven E. Protter
Exalted Contributor

Re: Change default nic

Shalom,

You absolutely do not want to use SAM for network configuration. It has a well storied history of breaking network configuration by any means possible.

Manual edit the files.

to make lan1 lan0 you need to probably renumber your hardware instance.

http://www.google.com/url?sa=t&ct=res&cd=4&url=http%3A%2F%2Fforums1.itrc.hp.com%2Fservice%2Fforums%2Fquestionanswer.do%3FthreadId%3D1014733&ei=mrMBRdjRIsyYYdv0-O0E&sig=__VMiqns2DO_mIisC3AAcOJ92xIH0=&sig2=BMpauZVY93CyCQUt26lHRQ


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
Sp4admin
Trusted Contributor

Re: Change default nic

Hi Gene,

You can modify the /etc/rc.config.d/netconf file to change the lan0 to lan1. I use SAM to set the NIC to 100 Full Duplex.

sp,
DCE
Honored Contributor

Re: Change default nic


I respectfully disagree with Mr Protter on the use of SAM for NIC changes. I use it exclusively for NIC changes(and have done so for many years) without ever having any issues as a result. In fact, I have used SAM to correct NIC issues brought on by people who thought they knew how to do the changes by editing the files.