H3C Technologies H3C WX3000 Series Unified Switches User Manual
Page 217
22-48
[SwitchC] interface GigabitEthernet1/0/1
[SwitchC-GigabitEthernet1/0/1] port access vlan 10
[SwitchC-GigabitEthernet1/0/1] vlan-vpn enable
[SwitchC-GigabitEthernet1/0/1] quit
# Configure GigabitEthernet 1/0/2 as a trunk port.
[SwitchC] interface GigabitEthernet1/0/2
[SwitchC-GigabitEthernet1/0/2] port link-type trunk
# Add the trunk port to all VLANs.
[SwitchC-GigabitEthernet1/0/2] port trunk permit vlan all
4) Configure Switch D
# Enable MSTP.
[SwitchD] stp enable
# Enable the VLAN-VPN tunnel function.
[SwitchD] vlan-vpn tunnel
# Add GigabitEthernet 1/0/2 to VLAN 10.
[SwitchD] vlan 10
[SwitchD-Vlan10] port GigabitEthernet1/0/2
# Disable STP on GigabitEthernet 1/0/2 and then enable the VLAN VPN function on it.
[SwitchD] interface GigabitEthernet1/0/2
[SwitchD-GigabitEthernet1/0/2] port access vlan 10
[SwitchD-GigabitEthernet1/0/2] stp disable
[SwitchD-GigabitEthernet1/0/2] quit
# Configure GigabitEthernet 1/0/1 as a trunk port.
[SwitchD] interface GigabitEthernet1/0/1
[SwitchD-GigabitEthernet1/0/1] port link-type trunk
# Add the trunk port to all VLANs.
[SwitchD-GigabitEthernet1/0/1] port trunk permit vlan all