Go to main content

Managing Network Datalinks in Oracle® Solaris 11.3

Exit Print View

Updated: December 2017
 
 

Displaying VLAN Information

You can use the dladm show-link command to display information about VLANs because VLANs are datalinks. Use the dladm show-vlan command to display specific information about the VLANs.

The following example compares the type of information that you can obtain by using either the dladm show-link or dladm show-vlan command. The first example uses the dladm show-link command to display all of the datalinks on the system, including those that are not VLANs. The second example uses the dladm show-vlan command to display a subset of the datalink information that is relevant only to VLANs.

# dladm show-link
LINK     CLASS    MTU      STATE     OVER
net0     phys     1500     up        --         
net1     phys     1500     up        --         
net2     phys     1500     up        --        
web1     vlan     1500     up        net0
auth1    vlan     1500     up        net0
app1     vlan     1500     up        net0
web2     vlan     1500     up        net1
auth2    vlan     1500     up        net1
app2     vlan     1500     up        net1
web3     vlan     1500     up        net2
auth3    vlan     1500     up        net2

# dladm show-vlan
LINK      VID   SVID    PVLAN-TYPE   FLAGS    OVER
web1      111    --       --         ----     net0
auth1     112    --       --         ----     net0
app1      113    --       --         ----     net0 
web2      111    --       --         ----     net1
auth2     112    --       --         ----     net1
app2      113    --       --         ----     net1
web3      111    --       --         ----     net2
auth3     113    --       --         ----     net2
Example 18  Displaying the VLAN IDs That Can be Created on the Datalinks

In Oracle Solaris Kernel Zones, you can use the dladm show-phys command with the –v option to view the VLAN IDs that can be created on each physical datalink.

# dladm show-phys -v
LINK    VID   INUSE  CLIENT
net0    40    yes    vnic0,vnic1
        20    no     --
        15    yes    vnic2
net1    32    no     --
        11    no     --
        10    no     --

For more information, see Using VLANs With Kernel Zones.

Example 19  Viewing the Allowed MAC Addresses and Allowed VLAN IDs

In Oracle Solaris Kernel Zones, you can use the dladm show-phys command with the –o option to view the allowed MAC addresses and allowed VLAN IDs as follows:

# dladm show-phys -o link,media,device,allowed-addresses,allowed-vids
LINK   MEDIA       DEVICE   ALLOWED-ADDRESSES   ALLOWED-VIDS
net0   Ethernet    zvnet0   fa:16:3f,           100-199,
                            fa:80:20:21:22      400-498,500

For more information, see Using Dynamic MAC Addresses and VLAN IDs in Kernel Zones.