mac-vrf-instance (Easy EVPN LAG Configuration)
Syntax
mac-vrf-instance instance-id {
access-vlan-id access-vlan-id;
vlan-id-list [ vlan-id-list ... ];
}Hierarchy Level
[edit services evpn evpn-vxlan server]
Description
Specify parameters to generate the configuration statements for a MAC-VRF instance that hosts a server connected to a provider edge (PE) device in an EZ-LAG simplified EVPN-VXLAN configuration. (See No link title for full details on how the EZ-LAG feature works.)
By default, if you don't configure this statement, the EZ-LAG commit script generates the configuration for one MAC-VRF instance with 1 as the default MAC-VRF instance-id (instance name __SERVICES_EVPN_EVPN_VXLAN_MAC_VRF_1 in the generated configuration).
Otherwise, the commit script generates the configuration for a MAC-VRF instance with the specified instance-id. The instance name in the generated configuration is __SERVICES_EVPN_EVPN_VXLAN_MAC_VRF_instance-id.
This statement includes child statements access-vlan-id or
vlan-id-list. In an EZ-LAG simplified configuration, you must
configure at least one access-vlan-id or vlan-id-list
statement at either of the following hierarchy levels:
-
[edit services evpn evpn-vxlan server name mac-vrf-instance instance-id]:In this case, the commit script associates the
access-vlan-idorvlan-id-listoptions with interfaces in the specified user-defined MAC-VRF instance ID (instance name __SERVICES_EVPN_EVPN_VXLAN_MAC_VRF_instance-id in the generated configuration). -
[edit services evpn evpn-vxlan server name]:At this hierarchy level, if you don't configure any user-defined MAC-VRF instance IDs, the commit script associates the
access-vlan-idorvlan-id-listoptions with interfaces in the default MAC-VRF instance (instance-id 1, instance name __SERVICES_EVPN_EVPN_VXLAN_MAC_VRF_1 in the generated configuration).If you configure the
vlan-id-listoption at this hierarchy level but also configure any user-defined MAC-VRF instance IDs, the commit script associates the list of VLANs with trunk interfaces in all user-defined MAC-VRF instances.
See the description for the vlan-id-list option below for details on
how to specify a list of VLAN IDs for trunk interfaces.
Options
| instance-id |
Specify the user-defined MAC-VRF instance ID that hosts the server. The commit script generates the configuration for a MAC-VRF instance with instance name __SERVICES_EVPN_EVPN_VXLAN_MAC_VRF_instance-id.
|
| access-vlan-id access-vlan-id |
Specify that an EVPN peer's interface to a server is an access interface with an associated VLAN ID. Note:
The commit script generates a trunk interface configuration by default when
you use the For each server definition, you must either configure this option with a
VLAN-ID for an access interface, or configure the
|
| vlan-id-list [ vlan-id-number ... ] |
List the VLANs this server hosts. Specify one or more VLANs by VLAN ID number. Use spaces to separate multiple individual VLAN IDs (such as [100 200], or use a dash to indicate a contiguous range of VLAN IDs (such as [100-300]). The commit script generates the statements that configure the specified VLANs. You must configure at least one VLAN ID list for each server to specify the VLANs associated with trunk interfaces to the server. The commit script generates trunk interface configurations by default when you use this option. Note:
Alternatively, for the commit script to generate an access interface
configuration with an associated VLAN, use the
|
Required Privilege Level
system—To view this statement in the configuration.
system-control—To add this statement to the configuration.
Release Information
Statement introduced in Junos OS Release 23.2R1 and Junos OS Evolved Release 23.2R1.
Options native-vlan-id and access-vlan-id added in
Junos OS and Junos OS Evolved Release 26.2R1.