1-6# Set the global TPID value of Switch A to 0x9200 and configure GigabitEthernet 1/0/12 as a VLAN VPNuplink port, so that Switch A can intercommunicate with devices in the public network.[SwitchA] vlan-vpn tpid 9200[SwitchA] interface GigabitEthernet1/0/12[SwitchA-GigabitEthernet1/0/12] port link-type trunk[SwitchA-GigabitEthernet1/0/12] port trunk permit vlan 1040[SwitchA-GigabitEthernet1/0/12] vlan-vpn uplink enablez Configure Switch B.# Enable the VLAN-VPN feature on GigabitEthernet 1/0/21 of Switch B and tag the packets received onthis port with the tag of VLAN 1040 as the outer VLAN tag. system-view[SwitchB] vlan 1040[SwitchB-vlan1040] port GigabitEthernet 1/0/21[SwitchB-vlan1040] quit[SwitchB] interface GigabitEthernet 1/0/21[SwitchB-GigabitEthernet1/0/21] vlan-vpn enable# Set the global TPID value of Switch B to 0x9200 and configure GigabitEthernet 1/0/22 as a VLANVPN uplink port, so that Switch B can intercommunicate with devices in the public network.[SwitchB-GigabitEthernet1/0/21] quit[SwitchB] vlan-vpn tpid 9200[SwitchB] interface GigabitEthernet1/0/22[SwitchB-GigabitEthernet1/0/22] port link-type trunk[SwitchB-GigabitEthernet1/0/22] port trunk permit vlan 1040[SwitchB-GigabitEthernet1/0/22] vlan-vpn uplink enablez Do not configure VLAN 1040 as the default VLAN of GigabitEthernet 1/0/12 of Switch A andGigabitEthernet 1/0/22 of Switch B. Otherwise, the outer VLAN tag of a packet will be removedduring transmission.z In this example, both GigabitEthernet 1/0/11 of Switch A and GigabitEthernet 1/0/21 of Switch Bare access ports. In cases where the ports are trunk ports or hybrid ports, you need to configure thetwo ports to remove the outer VLAN tags before transmitting packets of VLAN 1040. Refer to PortBasic Configuration in this manual for detailed configuration.z Configure the devices in the public network# As the devices in the public network are from other vendors, only the basic principles are introducedhere. That is, you need to configure the devices connecting to GigabitEthernet 1/0/12 of Switch A andGigabitEthernet 1/0/22 of Switch B to permit the corresponding ports to transmit tagged packets ofVLAN 1040.Data transfer processThe following describes how a packet is forwarded from Switch A to Switch B in this example.