Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

 
 

l2-learning

Syntax (MX Series, QFX Series, EX Series)

Syntax (SRX Series)

Hierarchy Level

Description

Configure Layer 2 (L2) address learning and forwarding properties globally.

The remaining statements are explained separately. See CLI Explorer.

Options

crb-proxy-mac Configure proxy MAC address to be used in MAC-IP refresh.

In the case of central routing and bridging deployments, you need to configure the crb-proxy-mac statement on all the leaf nodes. Use the following configuration to configure crb-proxy-mac CLI statement:

On IPv4:

user@host# set protocols l2-learning crb-proxy-mac family inet mac-address

On IPv6:

user@host#set protocols l2-learning crb-proxy-mac family inet6 mac-address

When IRB is not configured on the leaf devices, to do ARP/ND refresh upon ARP/ND timer (Mac-IP timer) expiration, the configured MAC address is used as the source MAC address.

ctxt-history Configure the number and size of files to collect for troubleshooting Layer 2 address learning issues in Ethernet VPN (VPN) networks.
global-le-bridge-domain-aging-time

Specify the aging timer for the Logical Ethernet (LE) bridge-domain. The system learns the MAC address using the next hop (NH) and the bridge-domain (BD), which together form the NHBD. The aging timer, specified in seconds global-le-bridge-domain-aging-time <seconds>, determines how long the system retains the MAC entry in the forwarding table before removing it. Setting a shorter timer removes NHBD entries more quickly.

  • Range: 120 to 1000000 seconds

global-ctx-limit

Set the debug context history limit to define how many events the system logs in process memory for debugging. You can specify a value from 0 to 5000000, representing the number of captured events. Each even consumes up to 200 bytes of memory. By default, the system stores 256000 entries to log Layer 2 process events. To disable this feature, set the global-ctx-limit to 0. The system then frees the memory used for context logging and stop logging further events.

  • Range: 0 to 5000000 event entries

  • Default: 256000 event entries

Required Privilege Level

routing—To view this statement in the configuration.

routing-control—To add this statement to the configuration.

Release Information

Statement introduced in Junos OS Release 8.4.

Statement modified in Junos OS Release 9.5. Support for global mode added in Junos OS Release 15.1X49-D40.

global-le-bridge-domain-aging-time option introduced in Junos OS Release 14.2R5 for the MX Series.

global-mac-ip-limit and global-mac-ip-table-aging-time options introduced in Junos OS Release 17.4R1 for MX Series routers and EX9200 switches.

global-ctx-limit option introduced in Junos OS Release 20.2R3.