Configuring EFM OAM
Configuration Notes and Constraints
When configuring EFM OAM, pay attention to the following notes:
An EFM connection cannot be established between two EFM OAM entities that are both in passive mode.
Only the active mode end can run commands ethernet-oam remote-loopback start interface <interface-name> or ethernet-oam remote-loopback stop interface <interface-name> to start | stop EFM OAM remote loopback tests.
Before starting the EFM OAM remote loopback tests, make sure:
The EFM OAM connection has been established successfully.
Users have to configure command set protocols ethernet-oam interface <interface-name> remote-loopback supported on the responding end to enable reactions to loopback control OAMPDUs from peers.
Remote loopback cannot be configured on the same port as the loopback of the physical port.
Configuring EFM OAM
Step 1 Enable EFM OAM function on both end of the link.
set protocols ethernet-oam interface <interface-name> enable <true | false>
Step 2 Configure the EFM mode for this Ethernet port. By default, the EFM OAM interface works in active mode.
set protocols ethernet-oam interface <interface-name> mode <active | passive>
Step 3 Enable reactions to loopback control OAMPDUs from peers.
set protocols ethernet-oam interface <interface-name> remote-loopback supported
Step 4 (Optional) Configure EFM OAM timeout values.
set protocols ethernet-oam interface <interface-name> remote-loopback timeout <loopback-timeout>
set protocols ethernet-oam interface <interface-name> timeout <oam-timeout>
Step 5 Enable EFM OAM remote loopback tests on the specified port.
NOTEs:
|
ethernet-oam remote-loopback start interface <interface-name>
Step 6 Stop EFM OAM remote loopback tests on the specified port.
ethernet-oam remote-loopback stop interface <interface-name>
Step 7 Commit the configuration.
commit
Step 8 View EFM OAM configuration information, session status and interface statistics.
run show ethernet-oam [interface <interface-name>]
run show ethernet-oam statistics [interface <interface-name>]
Example for Configuring EFM OAM
Networking Requirements
Figure 1. EFM OAM Configuration Example
As shown in Figure 1, the link between Switch C to Switch A is a newly deployed network. The administrator hopes to achieve the following network management:
Test network connectivity and quality before enabling the new network.
Dynamically monitor the link quality after the link is properly enabled.
Follow the configuration roadmap below to configure EFM function:
1. Configure EFM basic functions on Switch A and Switch C devices to achieve automatic detection of link connectivity.
2. Configure EFM remote loopback on Switch A and Switch C to conduct link connectivity and performance testing.
Procedure
Step 1 Configure EFM basic function.
a) Enable EFM OAM function on interface ge-1/1/1 on Switch A.
admin@SwitchA# set protocols ethernet-oam interface ge-1/1/1 enable true
b) Configure the EFM OAM mode for this Ethernet port.
admin@SwitchA# set protocols ethernet-oam interface ge-1/1/1 mode active
admin@SwitchA# commit
c) Enable EFM OAM function on interface ge-1/1/1 on Switch C.
admin@SwitchC# set protocols ethernet-oam interface ge-1/1/1 enable true
d) Configure the mode of EFM OAM mode for this Ethernet port.
e) Verify the Configuration.
If the EFM configurations of Switch A and Switch C are correct, a connection will be established between them after successful negotiation in the Discovery phase. Run the command run show ethernet-oam on Switch A or Switch C, you can see that the EFM OAM protocol status of interface ge-1/1/1 is SEND_ANY.
Step 2 Enable remote loopback.
a) Enable reactions to loopback control OAMPDUs from peers on Switch C.
b) Start EFM OAM remote loopback tests on interface ge-1/1/1 on Switch A.
NOTEs:
|
---|
c) Verify the Configuration.
After successfully configuring EFM remote loopback, run the command run show ethernet-oam, and you can see that the loopback status is local loopback on Switch C and remote loopback on Switch A.
View the statistics information of EFM OAMPDU packets, we can see the number of received Loopback Control OAMPDU packet is 1 on Switch C.
Step 3 Stop EFM remote loopback.
Step 4 Verify the Configuration.
Run the command run show ethernet-oam, and you can see that the loopback status is no loopback on Switch C and Switch A.
View the statistics information of EFM OAMPDU packets, we can see the number of received Loopback Control OAMPDU packet is 2 on Switch C.
Copyright © 2024 Pica8 Inc. All Rights Reserved.