System Administration Guide: Network Interfaces and Network Virtualization

ProcedureHow to Verify the VNIC Configuration for the Global Zone

Before You Begin

The following task assumes that you have created a VNIC for the global zone of your system.

  1. On the system with the virtual network, become superuser or assume the equivalent root role.

    To create and assign the root role, see How to Make root User Into a Role in System Administration Guide: Security Services.

  2. Verify the state of the data links on the system.


    # dladm show-link
    

    Your output should resemble either of the following:

    • For a system that has a publicly accessible virtual network, such as the network that is configured in How to Create a Virtual Network Interface:


      # dladm show-link
      LINK        CLASS    MTU    STATE    OVER
      bge0        phys     1500   up       bge0
      vnic0       vnic     9000   up       bge10

      In this output, both the physical network interface bge0 and the VNIC pseudo-interface vnic0 are configured as data links.

    • For a system with a private virtual network that cannot be accessed by external users, such as the network that is configured in How to Create Etherstubs and VNICs for the Private Virtual Network:


      # dladm show-link
      LINK        CLASS    MTU    STATE    OVER
      e1000g2     phys     1500   unknown  --
      e1000g0     phys     1500   up       --
      vnic0       vnic     9000   up       etherstub0
      vnic1       vnic     9000   up       etherstub0

      The network interface e1000g0 is configured as a data link. The presence of etherstub0 indicates this is a private network. Two VNICs, vnic0 and vnic1, are successfully configured over the etherstub.

  3. Verify that the VNIC is plumbed and running on the IP level of the TCP/IP protocol stack:


    # ifconfig -a
    

    You should receive output similar to the following:


    lo0: flags=2001000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv4,VIRTUAL> mtu 8232 index 1
            inet 127.0.0.1 netmask ff000000
    bge0: flags=1000843 <UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 3
            inet 192.168.8.50 netmask ffffff00 broadcast 192.168.8.255
            ether 8:0:20:c8:f4:1d
    vnic0: flags=201000842<UP,BROADCAST,RUNNING,MULTICAST,IPv4,CoS> mtu 1500 index 2
            inet 192.168.8.10 netmask ffffff00 broadcast 192.168.8.255
            ether 2:8:20:54:f4:74

    Both the network interface bge0 and the VNIC vnic0 are plumbed and up.