108
# 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.
[DeviceC] 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 2001. Enable CCM
sending in service instance 2 on Ten-GigabitEthernet 1/0/2.
[DeviceC] cfd meplist 2001 2002 service-instance 2
[DeviceC] interface ten-gigabitethernet 1/0/2
[DeviceC-Ten-GigabitEthernet1/0/2] cfd mep 2001 service-instance 2 outbound
[DeviceC-Ten-GigabitEthernet1/0/2] cfd cc service-instance 2 mep 2001 enable
[DeviceC-Ten-GigabitEthernet1/0/2] quit
# Create track entry 1 that is associated with the CFD CC function of MEP 1001 in service
instance 1.
[DeviceC] track 1 cfd cc service-instance 1 mep 1001
# Configure the collaboration between the primary port Ten-GigabitEthernet 1/0/1 of smart link
group 1 and the CC function of CFD through track entry 1, and bring up the port.
[DeviceC] interface ten-gigabitethernet 1/0/1
[DeviceC-Ten-GigabitEthernet1/0/1] port smart-link group 1 track 1
[DeviceC-Ten-GigabitEthernet1/0/1] undo shutdown
[DeviceC-Ten-GigabitEthernet1/0/1] quit
# Create track entry 1 that is associated with the CFD CC function of MEP 1001 in service
instance 1.
[DeviceC] track 2 cfd cc service-instance 2 mep 2001
# Configure the collaboration between the primary port Ten-GigabitEthernet 1/0/2 of smart link
group 2 and the CC function of CFD through track entry 2, and bring up the port.
[DeviceC] interface ten-gigabitethernet 1/0/2
[DeviceC-Ten-GigabitEthernet1/0/2] port smart-link group 2 track 2
[DeviceC-Ten-GigabitEthernet1/0/2] undo shutdown
[DeviceC-Ten-GigabitEthernet1/0/2] quit
4. Configure Device D:
# Create VLAN 1 through VLAN 200.
<DeviceD> system-view
[DeviceD] 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.
[DeviceD] interface ten-gigabitethernet 1/0/1
[DeviceD-Ten-GigabitEthernet1/0/1] port link-type trunk
[DeviceD-Ten-GigabitEthernet1/0/1] port trunk permit vlan 1 to 200
[DeviceD-Ten-GigabitEthernet1/0/1] smart-link flush enable control-vlan 10 110
[DeviceD-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.
[DeviceD] interface ten-gigabitethernet 1/0/2
[DeviceD-Ten-GigabitEthernet1/0/2] port link-type trunk
[DeviceD-Ten-GigabitEthernet1/0/2] port trunk permit vlan 1 to 200
[DeviceD-Ten-GigabitEthernet1/0/2] undo stp enable
[DeviceD-Ten-GigabitEthernet1/0/2] smart-link flush enable control-vlan 10 110
[DeviceD-Ten-GigabitEthernet1/0/2] quit