subnet-address (Easy EVPN LAG Configuration)
Syntax
subnet-address { inet (ipv4-subnet-addr | [ipv4-subnet-addr1 ipv4-subnet-addr2 ...]); inet6 (ipv6-subnet-addr | [ipv6-subnet-addr1 ipv6-subnet-addr2 ...]); no-irb-address-auto-derive; virtual-gateway-v4-address ipv4-virtual-gateway-address; virtual-gateway-v6-address ipv6-virtual-gateway-address; }
Hierarchy Level
[edit services evpn evpn-vxlan irb irb-instance]
Description
Specify IRB instance subnet address parameters as part of a generated Ethernet VPN (EVPN) fabric configuration.
You use statements at the [edit services evpn]
hierarchy level to
simplify configuring an EVPN fabric with Ethernet segment identifier (ESI) link
aggregation groups (LAGs) in the topology. The feature you enable with statements in
this hierarchy is an easy EVPN LAG configuration feature, also called EZ-LAG.
You only need to configure a few statements to provide the parameters required for an
EVPN core fabric with multihomed or single-homed customer edge (CE) devices (or end
server devices). When you commit the [edit services evpn]
configuration
statements, the device uses a commit script to generate the corresponding standard EVPN
fabric configuration statements.
The commit script uses the parameters you specify at the [edit services evpn
evpn-vxlan irb irb-instance subnet-address]
hierarchy
level to generate IPv4 and/or IPv6 address configurations for an IRB instance as
follows:
-
IRB interface subnet address.
Note:For IPv6 data traffic, you can configure a global IPv6 address and an IPv6 link-local address for the IRB interface.
-
Virtual gateway address
By default, the commit script sets the virtual gateway MAC address for the device (which applies to all IRB instances) as follows:
-
IPv4 virtual gateway MAC address—00:00:5e:00:01:01
-
IPv6 virtual gateway MAC address—00:00:5e:00:02:01
You can override the default virtual gateway MAC addresses using the following
options at the [edit services evpn global-parameters]
hierarchy
level:
-
virtual-gateway (v4-mac | v6-mac) virtual-gateway-mac-address
—To set different virtual gateway MAC addresses for IPv4 traffic or IPv6 traffic -
virtual-gateway-mac virtual-gateway-mac-address
—To set the same virtual gateway MAC address for both IPv4 traffic and IPv6 traffic.
Starting in Junos OS and Junos OS Evolved Release 23.4R1, with the
subnet-address inet
and subnet-address inet6
options, you can specify multiple IRB subnet addresses using a list syntax [
addr1addr2 …]. You can still use the original syntax with a single
subnet address (no list brackets), and use multiple statements with single subnet
addresses to specify multiple IRB addresses.
Also as of those releases, in the generated configuration, the commit script includes
router-advertisement
statements at the [edit
protocols]
hierarchy level as follows to configure the device with default
values to send router advertisement packets for a configured EZ-LAG IRB instance:
-
With an anycast gateway EZ-LAG configuration:
set protocols router-advertisement interface irb.unit max-advertisement-interval 30 set protocols router-advertisement interface irb.unit min-advertisement-interval 10
-
With a virtual gateway address EZ-LAG configuration:
set protocols router-advertisement interface irb.unit max-advertisement-interval 30 set protocols router-advertisement interface irb.unit min-advertisement-interval 10 set protocols router-advertisement interface irb.unit virtual-router-only
Options
inet address(es) |
Specify an IPv4 subnet address or multiple IPv4 subnet addresses for the IRB
interface—you can specify a single address value
You must configure this option or the |
inet6 address(es) |
Specify an IPv6 subnet address or multiple IPv6 subnet addresses for the IRB
interface—you can specify a single address value
You must configure this option or the For IPv6 data traffic on an IRB interface, you can use either multiple statements with single addresses or one statement with an address list to specify the IPv6 global subnet address and the IPv6 link-local address (prefix fe80::) of the IRB interface. For example, if you include the following statements for an IRB interface IPv6 subnet address and an IPv6 link-local address for logical unit 10 in your EZ-LAG configuration: set services evpn evpn-vxlan irb irb_10 subnet-address inet6 2001:db8::10:a:1:1/112 set services evpn evpn-vxlan irb irb_10 subnet-address inet6 fe80::10:a:1:1/112 or: set services evpn evpn-vxlan irb irb_10 subnet-address inet6 [ 2001:db8::10:a:1:1/112 fe80::10:a:1:1/112 ] then the commit script adds the following statements in the generated configuration: set interfaces irb unit 10 family inet6 address 2001:db8::10:a:1:1/112 set interfaces irb unit 10 family inet6 address fe80::10:a:1:1/112 The commit script also includes default set protocols router-advertisement interface irb.10 max-advertisement-interval 30 set protocols router-advertisement interface irb.10 min-advertisement-interval 10 set protocols router-advertisement interface irb.10 virtual-router-only See Routing IPv6 Data Traffic through an EVPN-VXLAN Network with an IPv4 Underlay and IPv6 Neighbor Discovery for more on EVPN-VXLAN IPv6 data traffic and setting IPv6 link-local addresses. |
no-irb-address-auto-derive |
Instruct the commit script to not derive IRB interface subnet addresses in the generated configuration for this IRB instance. For configuration simplicity, with this feature you can set the same IRB
interface subnet address on connected PE devices using this
When you set Note:
This option applies individually to the specified IRB instance. You can alternatively set this option globally at the If you don't set Note:
We strongly recommend that you make sure you set
|
virtual-gateway-v4-address ipv4-virtual-gateway-address |
Specify an IPv4 virtual gateway address for the IRB interface. If you don't include this option to set a specific IPv4 virtual gateway
address, the device derives a virtual gateway IPv4 address for the IRB
interface from the address you specify with the For example, if you configure subnet address |
virtual-gateway-v6-address ipv6-virtual-gateway-address |
Specify an IPv6 virtual gateway address for the IRB interface. If you don't include this option to set a specific IPv6 virtual gateway
address, the device derives a virtual gateway IPv6 address for the IRB
interface from the address you specify with the For example, if you configure subnet address |
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.