Link to home
Start Free TrialLog in
Avatar of Rita Byrne
Rita ByrneFlag for Ireland

asked on

Solaris: how to set which network card comes up

I've got two NICs in a Server, bge0 & bge1. I only want one UP at a time; that was bge0 but has now been changed to bge1. Problem is that when the Server is rebooted, bge0 is UP, not bge1. Have to bring it up manually with ifconfig. How can I get it to default to bge1?
Avatar of Joseph Gan
Joseph Gan
Flag of Australia image

To bring bge1 up

# ifconfig bge1 plumb
# ifconfig bge1 up
# ifconfig -a

To bring bge0 down

# ifconfig bge0 down
# ifconfig bge0 unplumb
# ifconfig -a
ASKER CERTIFIED SOLUTION
Avatar of parparov
parparov
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
ganjos, the asker asked how to preserve these changes across reboot.
Parparov is correct.  Here is an official link on the use of /etc/hostname.interface files from Oracle.

http://download.oracle.com/docs/cd/E19455-01/806-0916/ipconfig-13/index.html
Avatar of Rita Byrne

ASKER

Thanks for all feedback. I'd copied hostname.bge0 to hostname.bge1; I guess if both exist '0' takes precedence.