Operation
Set the TPID value globally
Enter Ethernet port view
Set the port to be a VLAN-VPN
uplink port
A port cannot be configured as both a VLAN VPN port and a VLAN VPN uplink port at the same
time.
With the TPID being 0x8100, every port can be configured as a VLAN VPN uplink port. However, if
the TPID value is not the default value, you need to use the vlan-vpn uplink enable command to
specify a VLAN VPN uplink port.
A VLAN VPN uplink port does not remove the outer VLAN tags of packets to be sent through it, so
a VLAN VPN uplink port must be configured as a trunk port or hybrid port and configured to keep
the outer VLAN when sending packets of the outer VLAN.
Displaying VLAN-VPN Configuration
After the configuration above, you can execute the display command in any view to view the running
status of VLAN-VPN and verify the configuration.
Table 1-5 Display VLAN-VPN configuration
Operation
Display the VLAN-VPN
configurations of all the ports
VLAN-VPN Configuration Example
Transmitting User Packets through a Tunnel in the Public Network by Using
VLAN-VPN
Network requirements
As shown in
connect the users to the servers through the public network.
vlan-vpn tpid value
interface interface-type
interface-number
vlan-vpn uplink enable
display port vlan-vpn
Figure
1-4, Switch A and Switch B are both S5100-SI/EI series switches. They
Command
Command
You can execute the display
command in any view.
1-4
Description
Required
Do not set the TPID value to
any of the protocol type values
listed in
Table
1-1.
For H3C series switches, the
TPID defaults to 0x8100.
—
Optional
By default, the VLAN-VPN
uplink function is disabled.
Description