Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

 
 

mac-rewrite

Syntax

Hierarchy Level

Description

Enable rewriting of the MAC address for Layer 2 protocol tunneling (L2PT).

When a service provider edge port configured for L2PT receives a control packet for a supported protocol, the device rewrites the multicast destination MAC address with the predefined multicast tunneling MAC address 01:00:0c:cd:cd:d0 and sends the packet on the Q-in-Q tunnel interface. The packet travels across the provider network transparently to the other end of the tunnel, and the destination device restores the original multicast destination MAC address to deliver the packet at its destination.

Refer to protocol for the list of protocols that you can configure for L2PT on different devices.

To see the protocols for which you enabled L2PT on an interface, enter the show mac-rewrite interface command.

To see the MAC addresses installed by L2PT on products except MX Series routers, see show ethernet-switching table. To see the MAC addresses installed by L2PT on MX Series routers, see show bridge mac-table.

On MX Series and ACX Series routers and EX9200 switches with L2PT configured, customer-facing ports should not receive packets with the L2PT MAC address as the destination address unless there is a network tolopogy or configuration error. Any such interface receiving an L2PT packet becomes “Disabled”, and you must subsequently re-enable it using the clear error mac-rewrite command.

The remaining statements are explained separately. See CLI Explorer.

Required Privilege Level

interface—To view this statement in the configuration.

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

Release Information

Statement introduced in Junos OS Release 9.1.

enable-all-if statement added in Junos OS Release 13.3.

Support for PVSTP protocol introduced in Junos OS Release 13.3 for MX Series routers and EX9200 switches.

Statement introduced in Junos OS Release 14.1X53-D10 and 17.3R1 for EX4300 switches.