mac
146
Switch(config)#debug gvrp packet receive interface ethernet 1/1
Receive packet, smac 00-21-27-aa-0f-46, dmac 01-80-C2-00-00-21,
length 90, protocol ID:1,attribute type:0x01,
Attribute Index Length Event Value
-------------------- --------- ------- -------
1 10 joinIn 100
2 10 joinEmpty 140
3 10 leaveIn 150
4 10 leaveEmpty 180
4.1.3 dot1q-tunnel enable
Command: dot1q-tunnel enable
no dot1q-tunnel enable
Function: Set the access port of the switch to dot1q-tunnel mode; the no command
restores to default.
Parameter: None.
Command Mode: Port Mode.
Default: Dot1q-tunnel function disabled on the port by default.
Usage Guide: After enabling dot1q-tunnel on the port, data packets without VLAN tag
(referred to as tag) will be packed with a tag when entering through the port; those with tag
will be packed with an external tag. The TPID in the tag is the global configuration TPID. it
default value is 0x8100, and the VLAN ID is the VLAN ID the port belongs to. Data
packets with double tags will be forwarded according to MAC address and external tag, till
the external tag is removed when transmitted outside from the access port. Since the
length of the data packet may be over sized when packed with external tag, it is
recommended to use this command associating the Jumbo function. Normally this
command is used on access ports. This command can not be used when vlan-translation
enabled.
Example: Join port1 into VLAN3, enable dot1q-tunnel function.
Switch(config)#vlan 3
Switch(Config-Vlan3)#switchport interface ethernet 1/1
Switch(Config-Vlan3)#exit
Switch(config)#interface ethernet 1/1
Switch(Config-If-Ethernet1/1)# dot1q-tunnel enable
Switch(Config-If-Ethernet1/1)# exit
Switch(config)#










