Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?




Hierarchy Level


Specify a routing instance of type MAC-VRF. A MAC-VRF routing instance is a type of virtual-switch routing instance.

You can use MAC-VRF routing instances in Ethernet VPN (EVPN) environments to create MAC-based virtual routing and forwarding (VRF) instances. With MAC-VRF instances, you can manage multiple tenants with customer-specific VRF tables to isolate or group customer or tenant workloads.

In routing instances of type mac-vrf, configure basic parameters such as the following :

  • bridge-domain | vlans—Specify the bridge domains or the VLANs associated with the MAC-VRF routing instance. You must specify VLANs in the MAC-VRF routing instance or specify a bridge domain that you configure elsewhere in the configuration. If you do not specify either parameter, the configuration editor displays the error message: "Warning: bridge-domains must be configured for mac-vrf instance".The device prevents you from committing the configuration.

  • protocol evpn—Set the protocol to use in the MAC-VRF instance. In this case, you must select EVPN as the protocol.

  • service-type (vlan-aware | vlan-based | vlan-bundle)—Select an EVPN service type for this MAC-VRF instance.

    See service-type and Understanding VLAN-Aware Bundle and VLAN-Based Service for EVPN for more on these service types.

  • forwarding-instance identifier—Map the MAC-VRF instance to a specific forwarding instance. Only some platforms support this option. See forwarding-instance identifier and MAC-VRF Routing Instance Type Overview for more on how MAC-VRF instances might map to forwarding instances.

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 20.4R1.