Go to main content

Managing Network Datalinks in Oracle® Solaris 11.4

Exit Print View

Updated: November 2020
 
 

Deleting a VLAN

To delete a VLAN configuration,you must first delete any existing IP configurations on the VLAN. Otherwise, the operation fails. This requirement applies whether you are using the normal dladm delete-vlan command or the dladm delete-phys command, which covers a wider scope of L2 components.

Example 21  Deleting a VLAN Configuration

This example shows how to delete the VLAN web1.

$ 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

$ ipadm delete-ip web1
$ dladm delete-vlan web1