Solaris: how to set which network card comes up

Posted on 2011-10-04
Last Modified: 2012-05-12
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?
Question by:itwex
    LVL 16

    Expert Comment

    To bring bge1 up

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

    To bring bge0 down

    # ifconfig bge0 down
    # ifconfig bge0 unplumb
    # ifconfig -a
    LVL 9

    Accepted Solution

    You should move your file /etc/hostname.bge0 to /etc/hostname.bge1
    LVL 9

    Expert Comment

    ganjos, the asker asked how to preserve these changes across reboot.
    LVL 21

    Expert Comment

    Parparov is correct.  Here is an official link on the use of /etc/hostname.interface files from Oracle.

    Author Closing Comment

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

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    6 Surprising Benefits of Threat Intelligence

    All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

    Hello fellow BSD lovers, I've created a patch process for patching openjdk6 for BSD (FreeBSD specifically), although I tried to keep all BSD versions in mind when creating my patch. Welcome to OpenJDK6 on BSD First let me start with a little …
    Attention: This article will no longer be maintained. If you have any questions, please feel free to mail me. Please see for the updated article. It is avail…
    This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.
    In a previous video, we went over how to export a DynamoDB table into Amazon S3.  In this video, we show how to load the export from S3 into a DynamoDB table.

    758 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    11 Experts available now in Live!

    Get 1:1 Help Now