Managing Network Datalinks in Oracle® Solaris 11.2

Exit Print View

Updated: September 2014
 
 

Modifying the VLAN ID of a VLAN

    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.


    Note -  You can use the dladm modify-vlan -v vid –L datalink command syntax only if a single VLAN exists on the datalink. The command fails if you use it on a datalink that has multiple configured VLANs because each VLAN on a datalink must have unique VLAN IDs.

    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