H3C Technologies H3C S10500 Series Switches User Manual

Page 123

Advertising
background image

114

[DeviceA] interface gigabitethernet 1/0/1

[DeviceA-GigabitEthernet1/0/1] cfd mep 1002 service-instance 1 outbound

[DeviceA-GigabitEthernet1/0/1] cfd mep service-instance 1 mep 1002 enable

[DeviceA-GigabitEthernet1/0/1] cfd cc service-instance 1 mep 1002 enable

[DeviceA-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.

[DeviceA] cfd ma MA_B md MD vlan 110

[DeviceA] cfd service-instance 2 md MD ma MA_B

# Create a MEP list in service instance 2, create and enable outward-facing MEP 1002, and enable
CCM sending in service instance 2 on GigabitEthernet 1/0/2.

[DeviceA] cfd meplist 2001 2002 service-instance 2

[DeviceA] interface gigabitethernet 1/0/2

[DeviceA-GigabitEthernet1/0/2] cfd mep 2002 service-instance 2 outbound

[DeviceA-GigabitEthernet1/0/2] cfd mep service-instance 2 mep 2002 enable

[DeviceA-GigabitEthernet1/0/2] cfd cc service-instance 2 mep 2002 enable

[DeviceA-GigabitEthernet1/0/2] quit

2.

Configure Device B.

# Create VLAN 1 through VLAN 200.

<DeviceB> system-view

[DeviceB] 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.

[DeviceB] interface gigabitethernet 1/0/1

[DeviceB-GigabitEthernet1/0/1] port link-type trunk

[DeviceB-GigabitEthernet1/0/1] port trunk permit vlan 1 to 200

[DeviceB-GigabitEthernet1/0/1] smart-link flush enable control-vlan 10 110

[DeviceB-GigabitEthernet1/0/1] quit

# Configure 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, and configure VLAN 10 and VLAN 110

as the receive control VLANs.

[DeviceB] interface gigabitethernet 1/0/2

[DeviceB-GigabitEthernet1/0/2] port link-type trunk

[DeviceB-GigabitEthernet1/0/2] port trunk permit vlan 1 to 200

[DeviceB-GigabitEthernet1/0/2] undo stp enable

[DeviceB-GigabitEthernet1/0/2] smart-link flush enable control-vlan 10 110

[DeviceB-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

Advertising