OcNOS-SP : Multi-Protocol Label Switching Guide : Multi-Protocol Label Switching Command Reference : EVPN MPLS Commands : mac-holdtime
mac-holdtime
Use this command to set the MAC hold time for a MAC/IP or MAC.
The feature holds the MAC in hardware until BGP has withdrawn from the neighbors. This helps to reduce the flooding to other access ports.
This setting applies when the L2 Subifp is shut down, the physical port on which the access port is down, or the access port is removed from the VNID using the no form of the map vnid command.
When the MAC hold time is configured as -1, then the MAC is not removed from the hardware and is also not withdrawn from EVPN BGP.
Use the no form of this command to remove the MAC hold time for the MAC/IP or MAC.
Note: When a MAC is moved to discard state, traffic to and from this MAC is discarded. This is applicable only on statically configured MAC/MAC-IPs.
Command Syntax
mac-holdtime <-1-300>
no mac-holdtime
Parameters
<-1-300>
MAC hold time in seconds. Specify -1 to "never expire".
Default
The default holdtime for mac is 3 seconds.
Command Mode
EVPN MPLS mode and ACC_IF mode
Note: When configured in both modes, then the ACC_IF mode value takes preference for that access port.
Applicability
This command was introduced in OcNOS version 4.0.
Examples
#configure terminal
(config)#evpn mpls id 3
(config-nvo)#mac-holdtime -1
(config-nvo)#exit
 
Last modified date: 10/17/2023