Go to main content

Managing Network Datalinks in Oracle® Solaris 11.4

Exit Print View

Updated: November 2020
 
 

Displaying VLAN Information

The dladm show-link command displays information about all datalinks, whether they are used for VLANs or not. For VLAN-specific information, use dladm show-vlan instead.

$ 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, the dladm show-phys -v syntax shows 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     --
Example 19  Viewing the Allowed MAC Addresses and Allowed VLAN IDs

In Oracle Solaris Kernel Zones, you can use the dladm show-phys -o syntax displays the allowed MAC addresses and VLAN IDs you can use.

$ 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