cisco · EVPN VXLAN · 48 pp.

Cisco EVPN VXLAN: Настройка интегрированного маршрутизации и мостирования

Related manuals

Contents

Document text

Information About EVPN VXLAN Integrated Routing and Bridging

Configuring EVPN VXLAN Integrated Routing and Bridging Restrictions for EVPN VXLAN Integrated Routing and Bridging, on page 1 Information About EVPN VXLAN Integrated Routing and Bridging, on page 1 How to Configure EVPN VXLAN Integrated Routing and Bridging, on page 7 Verifying EVPN VXLAN Integrated Routing and Bridging, on page 16 Configuration Examples for EVPN VXLAN Integrated Routing and Bridging, on page 17 Restrictions for EVPN VXLAN Integrated Routing and Bridging This section provides restrictions for both EVPN VXLAN distributed anycast gateway and centralized default gateway functionalities that are used to enable integrated routing and bridging (IRB).

Layer 2 or Layer 3 access control lists (ACLs) are not supported for the received or transmitted packets that have VXLAN encapsulation. EVPN VXLAN Distributed Anycast Gateway The same subnet mask and IP address must be configured on all the switch virtual interfaces (SVIs) that act as a distributed anycast gateway (DAG). EVPN VXLAN Centralized Default Gateway • Only one centralized gateway (CGW) leaf switch or VTEP is supported in an EVPN VXLAN network. • HSRP and VRRP are not supported for the EVPN VXLAN Layer 2 overlay networks when you use centralized gateway.

• Reorigination of route type 2 host routes to route type 5 routes is only supported starting from Cisco IOS XE Amsterdam 17.3.2a release. InformationAboutEVPNVXLANIntegratedRoutingandBridging EVPN VXLAN integrated routing and bridging (IRB) allows the VTEPs or leaf switches in an EVPN VXLAN network to perform both bridging and routing. IRB allows the VTEPs to forward both Layer 2 or bridged and Configuring EVPN VXLAN Integrated Routing and Bridging 1

Page 1

EVPN VXLAN Distributed Anycast Gateway

Layer 3 or routed traffic. A VTEP performs bridging when it forwards traffic to the same subnet. Similarly, a VTEP performs routing when it forwards traffic to a different subnet. The VTEPs in the network forward traffic to each other through the VXLAN gateways. BGP EVPN VXLAN implements IRB in two ways: • Asymmetric IRB • Symmetric IRB Asymmetric IRB In asymmetric IRB, the ingress VTEP performs both bridging and routing whereas the egress VTEP performs only bridging. A packet first moves through a MAC VRF followed by an IP VRF on the network visualization endpoint (NVE) of the ingress VTEP. It then moves only through a MAC VRF on the NVE of the egress VTEP.

The NVE of the ingress VTEP manages all the packet processing associated with intersubnet forwarding semantics. The return traffic during asymmetric IRB goes through a different virtual network instance (VNI) compared to the source traffic. Asymmetric IRB needs the source and destination VNIs to be associated with both the ingress and egress VTEPs. Symmetric IRB In symmetric IRB, both the ingress and egress VTEPs perform both bridging and routing. A packet first moves through a MAC VRF followed by an IP VRF on the NVE of the ingress VTEP. It then moves through an IP VRF followed by a MAC VRF on the NVE of the egress VTEP.

The NVEs of ingress and egress VTEPs equally share all the packet processing associated with intersubnet forwarding semantics. In symmetric IRB, you are required to define only the VNIs of locally attached endpoints on the ingress and egress VTEPs. Symmetric IRB offers better scalability in terms of the number of VNIs that a BGP EVPN VXLAN fabric supports. The following figure shows the implementation of symmetric IRB and the movement of traffic in an EVPN VXLAN network: EVPN VXLAN Distributed Anycast Gateway Distributed anycast gateway is a default gateway addressing mechanism in a BGP EVPN VXLAN fabric.

The feature enables the use of the same gateway IP and MAC address across all the VETPs in an EVPN Configuring EVPN VXLAN Integrated Routing and Bridging EVPN VXLAN Distributed Anycast Gateway Configuring EVPN VXLAN Integrated Routing and Bridging 2

Page 2

EVPN VXLAN Distributed Anycast Gateway

VXLAN network. This ensures that every VTEP functions as the default gateway for the workloads directly connected to it. The feature facilitates flexible workload placement, host mobility, and optimal traffic forwarding across the BGP EVPN VXLAN fabric. The scenario shown in the following figure depicts a distributed gateway. Subnet 1 contains two leaf switches, leaf switch 1 and leaf switch 2, acting together as a distributed default gateway for VLAN 10. Host device 1 is connected to leaf switch 1 and needs to send traffic to host device 3, which is in a different subnet.

When host device 1 tries to send traffic outside of subnet 1, the traffic goes through the configured gateway on leaf switch 1. Host device 1 registers the Address Resolution Protocol (ARP) entries of the gateway VLAN MAC and IP addresses on leaf switch 1. Figure 1: Distributed Gateway Topology When multiple VETPs act together as one single distributed default gateway for the same VLAN, the VLAN IP address remains the same across all of them. This IP address becomes the gateway IP address for any host device in the VLAN that tries to reach an IP address outside its subnet. But, each VTEP retains its own MAC address.

In the preceding figure, consider the scenario where host device 1 moves from leaf switch 1 to leaf switch 2. The host device remains within the same network and still maintains the same ARP entries for gateway MAC and IP addresses. But the MAC addresses of the VLAN interfaces on leaf switch 2 and leaf switch 1 are different. This results in a MAC address mismatch between the ARP entry and the VLAN on leaf switch 2. As a result, any traffic that host device 1 tries to send outside of Subnet 1 is either lost or continuously flooded as unknown unicast.

EVPN VXLAN distributed anycast gateway feature prevents this traffic loss by ensuring that all the VTEPs have the same gateway MAC and IP addresses. Configuring EVPN VXLAN Integrated Routing and Bridging EVPN VXLAN Distributed Anycast Gateway Configuring EVPN VXLAN Integrated Routing and Bridging 3

Page 3

EVPN VXLAN Centralized Default Gateway

Manual MAC address configuration and MAC aliasing are the two methods used to maintain the same MAC address across all VTEPs and configure distributed anycast gateway. Manual MAC Address Configuration Manual MAC address configuration is the conventional method of enabling distributed anycast gateway in an EVPN VXLAN network. In this method, you manually configure the same MAC address on the Layer 2 VNI VLAN SVI on all the VTEPs in the network. You must configure the same MAC address on all the VTEPs in the same Layer 2 VNI. The VLAN SVIs on all the leaf switches must already share the same gateway IP address.

Note In the Distributed Gateway Topology image, to enable distributed anycast gateway in subnet 1, configure the same MAC address on leaf switch 1 and leaf switch 2. This ensures that the ARP entries of gateway MAC and IP addresses on host device 1 match with the MAC and IP addresses of both leaf switch 1 and leaf switch 2. MAC Aliasing MAC aliasing for distributed anycast gateway removes the need to configure the same MAC address explicitly on the VLAN interfaces of every VTEP. MAC aliasing allows the VTEPs to advertise their VLAN MAC addresses as the gateway MAC addresses to all the other VTEPs in the network.

The VTEPs in the network store the advertised MAC address as a gateway MAC address provided their VLAN IP address matches with the gateway IP address. In the Distributed Gateway Topology image, consider the scenario where MAC aliasing is enabled in subnet 1. Leaf switch 1 and leaf switch 2 advertise their MAC addresses to each other as gateway MAC addresses. This allows leaf switch 2 to recognize the MAC address in the ARP entry of host device 1 as a gateway MAC address. It allows host device 1 to send traffic outside of subnet 1 even though its VLAN MAC address does not match with the ARP entry.

MAC aliasing in an EVPN VXLAN network is configured by enabling the default gateway advertisement (using default-gateway advertise command) on all the VTEPs. If the same MAC address is assigned to all the VTEPs and the default-gateway advertise command is configured, only the unique gateway MAC addresses are imported into the default gateway table. Note EVPN VXLAN Centralized Default Gateway In this scenario, the network has a CGW VTEP that performs the Layer 3 gateway function for all the Layer 2 VNIs. All the other VTEPs in the network perform only bridging. The CGW VTEP acts as the Layer 3 gateway and performs routing for the inter-subnet VXLAN traffic.

The CGW VTEP advertises the SVI MAC-IP route for a particular VXLAN-enabled VLAN to all other Layer 2 VTEPs that have the same Layer 2 VNI configured. This allows the VTEPs to import and install the remote SVI MAC-IP route as a VXLAN Layer 3 gateway address. A host device uses the address of an SVI in the same VLAN on the CGW VTEP as its gateway address. Configure the SVI for the Layer 2 VNI VLAN only Configuring EVPN VXLAN Integrated Routing and Bridging Manual MAC Address Configuration Configuring EVPN VXLAN Integrated Routing and Bridging 4

Page 4