Assume the System Administrator role or become superuser.
The System Administrator role includes the Network Management profile. To create the role and assign the role to a user, see Chapter 9, Using Role-Based Access Control (Tasks), in System Administration Guide: Security Services.
Determine which VLAN you want to remove.
# dladm show-vlan |
Unplumb the VLAN's IP interface.
# ifconfig vlan-interface unplumb |
where vlan-interface is the IP interface that is configured over the VLAN.
You cannot remove a VLAN that is currently in use.
Remove the VLAN by performing one of the following steps:
# dladm show-vlan LINK VID OVER FLAGS sales 5 subitops0 ---- managers 7 net0 ---- # ifconfig managers unplumb # dladm delete-vlan managers # rm /etc/hostname.managers |