To change the VLAN ID of a VLAN, use one of the following commands:
dladm modify-vlan -v vid –L datalink
where vid specifies the new VLAN ID that you are assigning to the VLAN and datalink refers to the underlying link over which the VLAN is configured.
If you modify the VLAN ID on the link, you must also configure the switch port for the new VLAN ID.
dladm modify-vlan -v vid vlan
Use this command to change the unique VLAN IDs of multiple VLANs over a single datalink. Each VLAN on the datalink has a unique VLAN ID so you must change the VLAN IDs one at a time. In the setup shown in Figure 3–3, you would change the VLAN IDs of web1, auth1, and app1 that are configured over net0 as follows:
# dladm modify-vlan -v 123 web1 # dladm modify-vlan -v 456 app1 # dladm modify-vlan -v 789 auth1