116 
[DeviceC] cfd service-instance 1 md MD ma MA_A 
# Create a MEP list in service instance 1, create and enable outward-facing MEP 1001, and 
enable CCM sending in service instance 1 on GigabitEthernet 1/0/1. 
[DeviceC] cfd meplist 1001 1002 service-instance 1 
[DeviceC] interface gigabitethernet 1/0/1 
[DeviceC-GigabitEthernet1/0/1] cfd mep 1001 service-instance 1 outbound 
[DeviceC-GigabitEthernet1/0/1] cfd mep service-instance 1 mep 1001 enable 
[DeviceC-GigabitEthernet1/0/1] cfd cc service-instance 1 mep 1001 enable 
[DeviceC-GigabitEthernet1/0/1] quit 
# Create MA MA_B for the MD and configure the MA to serve VLAN 110, and create service 
instance 2 for the MD and MA. 
[DeviceC] cfd ma MA_B md MD vlan 110 
[DeviceC] cfd service-instance 2 md MD ma MA_B 
# Create a MEP list in service instance 2, create and enable outward-facing MEP 2001, and 
enable CCM sending in service instance 2 on GigabitEthernet 1/0/2. 
[DeviceC] cfd meplist 2001 2002 service-instance 2 
[DeviceC] interface gigabitethernet 1/0/2 
[DeviceC-GigabitEthernet1/0/2] cfd mep 2001 service-instance 2 outbound 
[DeviceC-GigabitEthernet1/0/2] cfd mep service-instance 2 mep 2001 enable 
[DeviceC-GigabitEthernet1/0/2] cfd cc service-instance 2 mep 2001 enable 
[DeviceC-GigabitEthernet1/0/2] quit 
# Configure the collaboration between the master port GigabitEthernet 1/0/1 of smart link group 
1 and the CC function of CFD, and bring up the port. 
[DeviceC] interface gigabitethernet 1/0/1 
[DeviceC-GigabitEthernet1/0/1] port smart-link group 1 track cfd cc 
[DeviceC-GigabitEthernet1/0/1] undo shutdown 
[DeviceC-GigabitEthernet1/0/1] quit 
# Configure the collaboration between the master port GigabitEthernet 1/0/2 of smart link group 
2 and the CC function of CFD, and bring up the port. 
[DeviceC] interface gigabitethernet 1/0/2 
[DeviceC-GigabitEthernet1/0/2] port smart-link group 2 track cfd cc 
[DeviceC-GigabitEthernet1/0/2] undo shutdown 
[DeviceC-GigabitEthernet1/0/2] quit 
4.  Configure Device D: 
# Create VLAN 1 through VLAN 200. 
<DeviceD> system-view 
[DeviceD] vlan 1 to 200 
# Configure 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 
GigabitEthernet 1/0/1. 
[DeviceD] interface gigabitethernet 1/0/1 
[DeviceD-GigabitEthernet1/0/1] port link-type trunk 
[DeviceD-GigabitEthernet1/0/1] port trunk permit vlan 1 to 200 
[DeviceD-GigabitEthernet1/0/1] smart-link flush enable control-vlan 10 110 
[DeviceD-GigabitEthernet1/0/1] quit