2014年3月10日星期一

Configuring the Ethernet OAM

How to configure the Ethernet OAM on the MA5612

Create a VLAN.
The VLAN ID is 100, and the VLAN is a smart VLAN.
huawei(config)#vlan 100 smart
Add an upstream port to the VLAN.
Add port 0/7 to VLAN 100.
huawei(config)#port vlan 100 0/7 0
(Optional) Set the native VLAN of the port.
This step is to set the packets of the upstream Ethernet port to or not to carry the VLAN tag. Whether the native VLAN needs to be set for the upstream port depends on whether the upper-layer device connected to the upstream port supports packets carrying a VLAN tag. The setting on the MA5600 must be the same as that on the upper-layer device. In this example, the Ethernet packets are of the untagged type.
huawei(config)#interface scu 0/7
huawei(config-if-scu-0/7)#native-vlan 0 100
huawei(config-if-scu-0/7)#quit
Configure an MD.
MDs with the same index or level cannot be created.
The name format and the name of an MD must be unique.
The total length of the names of an MD and its MAs cannot be longer than 44 characters.
huawei(config)#cfm md 2 name-format string huawei level 3
Configure an MA.
The system supports up to 4096 MAs and each MD can be configured with up to 48 MAs. That is, if an MD is configured with 4096 MAs, the other MDs in the system cannot be configured with any MA. An MA of a non-existing MD cannot be created. An existing MA cannot be created again.
The total length of the names of an MD and its MAs cannot be longer than 44 characters.
huawei(config)#cfm ma 2/6 name-format string huawei-6 vlan 100
Configure an MEP.
MEP refers to the maintenance association end points. Ethernet OAM is used to test the link connectivity by using the MEPs at the two ends of a maintenance channel.
By default, the MEP management function is enabled, the priority of sending CFM packets is 7, and the function of sending CC packets is enabled.
huawei(config)#cfm mep 2/6/0 mepid 260 direction outward port
0/7/0 priority 7
Configure an RMEP.
By default, the detection function of the RMEP is disabled.
huawei(config)#cfm remote-mep-detect enable
(Optional) Set the interval for the MA to transmit CCMs. By default, the interval is one minute.
huawei(config)#cfm ma 2/6 cc-interval 10m
Enable the local CFM globally. By default, the local CFM is disabled globally.
huawei(config)#cfm enable
Enable the detection function of the remote MEP detection globally. By default, the remote MEP detection is disabled globally.
huawei(config)#cfm remote-mep-detect enable
Save the data.
huawei(config)#save

 NOTE:
Configuration on Huawei MA5600 B is the same as that on MA5600_A and it is not repeated here.

没有评论:

发表评论