Managing Network Datalinks in Oracle® Solaris 11.2

Exit Print View

Updated: September 2014
 
 

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     OVER     FLAGS
web1      111     net0     ----
auth1     112     net0     ----
app1      113     net0     ----
web2      111     net1     ----
auth2     112     net1     ----
app2      113     net1     ----
web3      111     net2     ----
auth3     113     net2     ----