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?
Unix OS

Avatar of undefined
Last Comment
Rita Byrne
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

Blurred text
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
Avatar of parparov
parparov
Flag of United States of America image

ganjos, the asker asked how to preserve these changes across reboot.
Avatar of Papertrip
Papertrip
Flag of United States of America image

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
Rita Byrne
Flag of Ireland image

ASKER

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

Unix is a multitasking, multi-user computer operating system originally developed in 1969 at Bell Labs. Today, it is a modern OS with many commercial flavors and licensees, including FreeBSD, Hewlett-Packard’s UX, IBM AIX and Apple Mac OS-X. Apart from its command-line interface, most UNIX variations support the standardized X Window System for GUIs, with the exception of the Mac OS, which uses a proprietary system.

33K
Questions
--
Followers
--
Top Experts
Get a personalized solution from industry experts
Ask the experts
Read over 600 more reviews

TRUSTED BY

IBM logoIntel logoMicrosoft logoUbisoft logoSAP logo
Qualcomm logoCitrix Systems logoWorkday logoErnst & Young logo
High performer badgeUsers love us badge
LinkedIn logoFacebook logoX logoInstagram logoTikTok logoYouTube logo