ON THIS PAGE
default-gateway
default-gateway {
(advertise | do-not-advertise | no-gateway-community);
}Hierarchy Level
[edit logical-systems logical-system-name routing-instances routing-instance-name protocols evpn], [edit protocols evpn], [edit routing-instances routing-instance-name protocols evpn]
Description
Specify the behavior for IRB interfaces defined as default gateways in an EVPN fabric.
We require that you configure the no-gateway-community option
if you configure a virtual gateway address on an IRB interface in the EVPN
routing instance for IPv4 or IPv6 using the following commands:
-
set interfaces irb unit unit-number family inet address ipv4-address virtual-gateway-address ipv4-vga -
set interfaces irb unit unit-number family inet6 address ipv6-address virtual-gateway-address ipv6-vga
To configure the no-gateway-community option when you
configure an IRB interface with a virtual gateway address:
-
On supported platforms, you can configure the
no-gateway-communityoption globally:set protocols evpn default-gatewayno-gateway-community -
On platforms that don't support the
no-gateway-communityoption at the global level (such as MX Series routers), configureno-gateway-communityat the EVPN routing instance level in each EVPN instance with an IRB virtual gateway address configured:set routing-instances routing-instance-name protocols evpn default-gatewayno-gateway-community
See Anycast Gateways for more on virtual gateway addresses with EVPN-MPLS. See Example: Configuring a QFX5110 Switch as Layer 2 and 3 VXLAN Gateways in an EVPN-VXLAN Edge-Routed Bridging Overlay for an example configuration in an EVPN-VXLAN fabric with a virtual gateway.
In
an EVPN-VXLAN environment with multihoming, you might use multiple EVPN
routing instances on peer provider edge (PE) devices that share an Ethernet
segment (ES). When you configure anycast gateways with this statement, we
don’t support mixing the default behavior (same as the
advertise option) with the
no-gateway-community option on the links that
participate in the same ES.
As a result, if you configure the default-gateway statement
with the no-gateway-community option in any EVPN routing
instances on any peer PE device that share an ES, you must configure this
statement:
-
In all the routing instances that share the ES on a PE device,
-
On all the peer PE devices that share the ES,
-
Only with either the
no-gateway-communityoption or thedo-not-advertiseoption.
Options
| advertise | Advertise the default gateway MAC address. This is the default behavior. |
| do-not-advertise | Don't advertise the default gateway MAC address. |
| no-gateway-community | Advertise virtual gateway addresses and IRB MAC addresses to EVPN peer devices so that Ethernet-only PE devices learn those MAC addresses. See Description for more details on when to use this option. |