106
[DeviceA-Ten-GigabitEthernet1/0/1] cfd cc service-instance 1 mep 1002 enable
[DeviceA-Ten-GigabitEthernet1/0/1] quit
# Create service instance 2 in which the MA name is based on the VLAN ID in MD_A and
configure the MA to serve VLAN 110.
[DeviceA] cfd service-instance 2 ma-id vlan-based md MD_A vlan 110
# Create a MEP list in service instance 2, create outward-facing MEP 1002, and enable CCM
sending in service instance 2 on Ten-GigabitEthernet 1/0/2.
[DeviceA] cfd meplist 2001 2002 service-instance 2
[DeviceA] interface ten-gigabitethernet 1/0/2
[DeviceA-Ten-GigabitEthernet1/0/2] cfd mep 2002 service-instance 2 outbound
[DeviceA-Ten-GigabitEthernet1/0/2] cfd cc service-instance 2 mep 2002 enable
[DeviceA-Ten-GigabitEthernet1/0/2] quit
2. Configure Device B:
# Create VLAN 1 through VLAN 200.
<DeviceB> system-view
[DeviceB] vlan 1 to 200
# Configure Ten-GigabitEthernet 1/0/1 as a trunk port and assign it to VLANs 1 through 200.
Enable flush message receiving and configure VLAN 10 and VLAN 110 as the receive control
VLANs on Ten-GigabitEthernet 1/0/1.
[DeviceB] interface ten-gigabitethernet 1/0/1
[DeviceB-Ten-GigabitEthernet1/0/1] port link-type trunk
[DeviceB-Ten-GigabitEthernet1/0/1] port trunk permit vlan 1 to 200
[DeviceB-Ten-GigabitEthernet1/0/1] smart-link flush enable control-vlan 10 110
[DeviceB-Ten-GigabitEthernet1/0/1] quit
# Configure Ten-GigabitEthernet 1/0/2 as a trunk port and assign it to VLANs 1 through 200.
Disable the spanning tree feature and enable flush message receiving on it. Configure VLAN 10
and VLAN 110 as the receive control VLANs.
[DeviceB] interface ten-gigabitethernet 1/0/2
[DeviceB-Ten-GigabitEthernet1/0/2] port link-type trunk
[DeviceB-Ten-GigabitEthernet1/0/2] port trunk permit vlan 1 to 200
[DeviceB-Ten-GigabitEthernet1/0/2] undo stp enable
[DeviceB-Ten-GigabitEthernet1/0/2] smart-link flush enable control-vlan 10 110
[DeviceB-Ten-GigabitEthernet1/0/2] quit
3. Configure Device C:
# Create VLAN 1 through VLAN 200, map VLANs 1 through 100 to MSTI 1 and VLANs 101
through 200 to MSTI 2, and activate MST region configuration.
<DeviceC> system-view
[DeviceC] vlan 1 to 200
[DeviceC] stp region-configuration
[DeviceC-mst-region] instance 1 vlan 1 to 100
[DeviceC-mst-region] instance 2 vlan 101 to 200
[DeviceC-mst-region] active region-configuration
[DeviceC-mst-region] quit
# Shut down Ten-GigabitEthernet 1/0/1 and Ten-GigabitEthernet 1/0/2, disable the spanning
tree feature on Ten-GigabitEthernet 1/0/1 and Ten-GigabitEthernet 1/0/2 separately, configure
the ports as trunk ports, and assign them to VLAN 1 through VLAN 200.
[DeviceC] interface ten-gigabitethernet 1/0/1
[DeviceC-Ten-GigabitEthernet1/0/1] shutdown
[DeviceC-Ten-GigabitEthernet1/0/1] undo stp enable