Double VLAN commands
Use these M4500 CLI commands to configure double VLAN (QinQ) tunneling, set the tunnel EtherType, and display DVLAN tunnel interfaces.
This section describes the commands you use to configure double VLAN (DVLAN). Double VLAN tagging is a way to pass VLAN traffic from one customer domain to another through a Metro Core in a simple and cost effective manner. The additional tag on the traffic helps differentiate between customers in the MAN while preserving the VLAN identification of the individual customers when they enter their own 802.1Q domain.
dvlan-tunnel ethertype
This command configures the ethertype for the all interfaces. The two-byte hex ethertype is used as the first 16 bits of the DVLAN tag. The ethertype may have the values of 802.1Q, vman, or custom. If the ethertype has an optional value of custom, then it is a custom tunnel value, and ethertype must be set to a value in the range of 1 to 65535.
| Format | dvlan-tunnel ethertype {802.1Q | vman | custom <1–65535>} |
| Mode | Global Config |
| Parameter | Definition |
|---|---|
| 802.1Q | Configure the ethertype as 0x8100. |
| custom | Configure the value of the custom tag in the range from 1 to 65535. |
| vman | Represents the commonly used value of 0x88A8. |
no dvlan-tunnel ethertype
Use the no form of the command to disassociate globally defined TPID(s) to all interfaces.
| Format | no dvlan-tunnel ethertype |
| Mode | Global Config |
dot1q-tunnel ethertype
This command configures the ethertype for the all interfaces. The two-byte hex ethertype is used as the first 16 bits of the DVLAN tag. The ethertype may have the values of 802.1Q, vman, or custom. If the ethertype has an optional value of custom, then it is a custom tunnel value, and ethertype must be set to a value in the range of 1 to 65535.
| Format | dot1q-tunnel ethertype {802.1Q | vman | custom <1–65535>} |
| Mode | Global Config |
no dot1q-tunnel ethertype
Use the no form of the command to disassociate globally defined TPID(s) to all interfaces.
| Format | no dot1q-tunnel ethertype |
| Mode | Global Config |
mode dot1q-tunnel
This command is used to enable Double VLAN Tunneling on the specified interface.
| Default | disabled |
| Format | mode dot1q-tunnel |
| Mode | Interface Config |
no mode dot1q-tunnel
This command is used to disable Double VLAN Tunneling on the specified interface. By default, Double VLAN Tunneling is disabled.
| Format | no mode dot1q-tunnel |
| Mode | Interface Config |
mode dvlan-tunnel
Use this command to enable Double VLAN Tunneling on the specified interface.
| Default | disabled |
| Format | mode dvlan-tunnel |
| Mode | Interface Config |
no mode dvlan-tunnel
This command is used to disable Double VLAN Tunneling on the specified interface. By default, Double VLAN Tunneling is disabled.
| Format | no mode dvlan-tunnel |
| Mode | Interface Config |
show dot1q-tunnel
Use this command with the optional parameter interface to display all interfaces enabled for Double VLAN Tunneling. Use the optional parameters to display detailed information about Double VLAN Tunneling for the specified interface.
| Format | show dot1q-tunnel [interface [{<slot/port> | port-channel <port-channel-id >}]] |
| Mode |
Privileged EXEC User EXEC |
| Parameter | Definition |
|---|---|
| Interface | slot/port |
| Mode | The administrative mode through which Double VLAN Tunneling can be enabled or disabled. The default value for this field is disabled. |
| EtherType | A 2-byte hex EtherType to be used as the first 16 bits of the DVLAN tunnel. There are three different EtherType tags. The first is 802.1Q, which represents the commonly used value of 0x8100. The second is vMAN, which represents the commonly used value of 0x88A8. If EtherType is not one of these two values, then it is a custom tunnel value, representing any value in the range of 1 to 65535. |
Example: The following shows examples of the CLI display output for the commands show dot1q-tunnel.
(M4500-32C) #show dot1q-tunnel
Ethertype...................................... 0x8100
Interfaces Enabled for DVLAN Tunneling......... None
(M4500-32C) #show dvlan-tunnel interface port-channel 1
Interface Mode EtherType
------------- ------------ ---------------
ch1 Disable 0x8100
show dvlan-tunnel
Use this command with the optional parameter interface to display all interfaces enabled for Double VLAN Tunneling. Use the optional parameters to display detailed information about Double VLAN Tunneling for the specified interface.
| Format | show dvlan-tunnel [interface [{<slot/port> | port-channel <portchannel-id >}]] |
| Mode | Privileged EXEC |
| Parameter | Definition |
|---|---|
| Interface | slot/port |
| Mode | The administrative mode through which Double VLAN Tunneling can be enabled or disabled. The default value for this field is disabled. |
| EtherType | A 2-byte hex EtherType to be used as the first 16 bits of the DVLAN tunnel. There are three different EtherType tags. The first is 802.1Q, which represents the commonly used value of 0x8100. The second is vMAN, which represents the commonly used value of 0x88A8. If EtherType is not one of these two values, then it is a custom tunnel value, representing any value in the range of 1 to 65535. |
User EXEC
Example: The following shows examples of the CLI display output for the commands show dvlan-tunnel.
(M4500-32C) #show dvlan-tunnel
Ethertype...................................... 0x8100
Interfaces Enabled for DVLAN Tunneling......... None
(M4500-32C) #show dvlan-tunnel interface port-channel 1
Interface Mode EtherType
------------- ------------ ---------------
ch1 Disable 0x8100