VirtualBox

Changeset 5848 in vbox


Ignore:
Timestamp:
Nov 27, 2007 6:46:48 AM (17 years ago)
Author:
vboxsync
Message:

Fixed Tap setup script to use an active NIC not iprb0.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Network/solaris/vnicinit_solaris.sh

    r5719 r5848  
    1111fi
    1212
     13# Try obtain a physical NIC that is currently active
     14phys_nic=`/usr/sbin/dladm show-dev | /usr/bin/awk 'NF==7 && $3=="up" { print $1 }'`
     15if [ -z "$phys_nic" ]; then
     16    # Failed to get a currently active NIC, get the first available NIC.
     17    phys_nic=`/usr/sbin/dladm show-link | /usr/bin/nawk '/legacy/ {next} {print $1; exit}'`
     18    if [ -z "$phys_nic" ]; then
     19        # Failed to get any NICs!
     20        echo "Failed to get a physical NIC to bind to."
     21        exit 1
     22    fi
     23fi
    1324vnic_id=0
    1425vnic_name=""
     
    1728# Create the VNIC if required
    1829if [ -z "$2" ]; then
    19     vnic_id=`/usr/lib/vna iprb0 $mac`
     30    # To use a specific physical NIC, replace $phys_nic with the name of the NIC.
     31    vnic_id=`/usr/lib/vna $phys_nic $mac`
    2032    if [ $? != 0 ]; then
    2133        exit 1
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette