H3C Technologies H3C S3100 Series Switches User Manual
Page 224

Operation Manual – MSTP
H3C S3100-52P Ethernet Switch
Chapter 1 MSTP Configuration
1-49
[H3C] vlan 10
[H3C-Vlan10] port Ethernet 0/1
3) Configure Switch C
# Enable MSTP.
[H3C] stp enable
# Enable the BPDU Tunnel function.
[H3C] vlan-vpn tunnel
# Add Ethernet1/0/1 to VLAN 10.
[H3C] vlan 10
[H3C-Vlan10] port Ethernet 1/0/1
[H3C-Vlan10] quit
# Disable the STP feature on Ethernet1/0/1 and then enable the VLAN VPN function on
it.
[H3C] interface Ethernet 1/0/1
[H3C-Ethernet1/0/1] port access vlan 10
[H3C-Ethernet1/0/1] stp disable
[H3C-Ethernet1/0/1] vlan-vpn enable
[H3C-Ethernet1/0/1] quit
# Configure Ethernet1/0/2 as a trunk port.
[H3C] interface Ethernet 1/0/2
[H3C-Ethernet1/0/2] port link-type trunk
# Add the trunk port to all VLANs.
[H3C-Ethernet1/0/2] port trunk permit vlan all
4) Configure Switch D
# Enable MSTP.
[H3C] stp enable
# Enable the BPDU Tunnel function.
[H3C] vlan-vpn tunnel
# Add Ethernet1/0/2 to VLAN 10.
[H3C] vlan 10
[H3C-Vlan10] port Ethernet 1/0/2
# Disable STP on Ethernet1/0/2 and then enable the VLAN VPN function on it.
[H3C] interface Ethernet 1/0/2
[H3C-Ethernet1/0/2] port access vlan 10
[H3C-Ethernet1/0/2] stp disable