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?
itwexAsked:
Who is Participating?
 
parparovCommented:
You should move your file /etc/hostname.bge0 to /etc/hostname.bge1
0
 
Joseph GanSystem AdminCommented:
To bring bge1 up

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

To bring bge0 down

# ifconfig bge0 down
# ifconfig bge0 unplumb
# ifconfig -a
0
 
parparovCommented:
ganjos, the asker asked how to preserve these changes across reboot.
0
 
PapertripCommented:
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
0
 
itwexAuthor Commented:
Thanks for all feedback. I'd copied hostname.bge0 to hostname.bge1; I guess if both exist '0' takes precedence.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.