IRB Anycast
This section briefly describes integrated routing and bridging (IRB) feature and its anycast gateway configuration on the QFX5220, QFX5230, QFX5240, and QFX5241 Switches.
Overview
The integrated routing and bridging (IRB) feature enables Layer 2 bridging and Layer 3 IP routing on the same interface, allowing efficient routing between VLANs or bridge domains without a separate router. When specifying an IP or a MAC address for an IRB interface on the multihomed devices, you can use an anycast address. The anycast address enables you to configure the same addresses for the IRB interface on each of the multihomed devices, thereby establishing the devices as anycast gateways.
An IRB anycast gateway uses IRB interfaces on multihomed devices to share the same IP and MAC address as a default gateway, enabling redundancy and load balancing in an EVPN-MPLS, EVPN-VXLAN, or L2VPN setup.
The QFX5220, QFX5230, QFX5240, and QFX5241 switches support IRB on both default routing instances and virtual routing and forwarding (VRF) instances. To segment the traffic on a LAN into separate broadcast domains, separate virtual LANs (VLANs) are created. VLANs limit the amount of traffic flowing across the entire LAN, reducing the possible number of collisions and packet retransmissions within the LAN.
For more information about IRB, see Understanding Integrated Routing and Bridging.
Configure IRB Anycast Gateway
Your IP address subnet scheme helps to determine whether you can use the IRB interface commands to set up your anycast gateway or not. Before you begin the configuration, ensure that:
The router interfaces are configured.
An underlay protocol such as OSPF, ISIS, or BGP is configured.
BGP is configured.
MPLS is configured.
Run the following commands in the CLI at the [edit] hierarchy level.
To configure an IRB interface with an IPv4 or an IPv6 address:
set interfaces irb unit logical-unit-number family inet address ipv4-address/prefix-length set interfaces irb unit logical-unit-number family inet6 address ipv6-address/prefix-length
To configure an IRB interface with a media access control (MAC) address:
set interface irb mac mac-address
To configure a virtual gateway address (VGA) with IPv4 and IPv6 address:
set interfaces irb unit logical-unit-number family inet address primary-ipv4-address/prefix virtual-gateway-address gateway-ipv4-address set interfaces irb unit logical-unit-number family inet6 address primary-ipv6-address/prefix virtual-gateway-address gateway-ipv6-address
To configure a virtual gateway address (VGA) with MAC address:
set interfaces irb unit logical-unit-number virtual-gateway-mac mac-address
Verify IRB Anycast Gateway
Run the following sample commands to verify that the IRB anycast gateway feature is configured.
-
To verify that the interface is up and IP is configured properly:
show interfaces irb terse
-
To verify that IRB anycast IP address or MAC address is configured properly:
show ethernet-switching virtual-gateway
-
To verify that advertised MAC address and IP addresses route is present:
show evpn database show evpn route type mac-ip
-
To verify leaf routing table is reachable:
show route table vrf-name.inet.0
-
To verify end-to-end connectivity:
ping IRB-IP