Disclaimer: The information contained in this blog is for informational purposes only and should not be considered as official documentation on any subject matter. The postings on this blog are my own and do not necessarily represent the opinions of my current and previous employers.
12/30/2020
12/29/2020
Arista EOS: how to ping link local address under VRF
Here is the subinterface configuration:
interface Ethernet34.4007
description =>v7:Sp4-ck478
mtu 9214
encapsulation dot1q vlan 4007
vrf cust
ipv6 address fe80::1/64 link-local
To ping the remote link-local address, we could use
PING fe80::(fe80::) from fe80::1%et34.4007 et34.4007: 72 data bytes
80 bytes from fe80::1%et31.4007: icmp_seq=1 ttl=64 time=0.076 ms
80 bytes from fe80::1%et31.4007: icmp_seq=2 ttl=64 time=0.029 ms
80 bytes from fe80::1%et31.4007: icmp_seq=3 ttl=64 time=0.027 ms
80 bytes from fe80::1%et31.4007: icmp_seq=4 ttl=64 time=0.027 ms
80 bytes from fe80::1%et31.4007: icmp_seq=5 ttl=64 time=0.032 ms
12/02/2020
Arista EOS: % - Pending BGP convergence when "show bgp evpn"
BGP summary information for VRF default
Router identifier 100.250.250.30, local AS number 65000
Neighbor Status Codes: m - Under maintenance
Neighbor V AS MsgRcvd MsgSent InQ OutQ Up/Down State PfxRcd PfxAcc
100.250.250.11 4 65000 500 487 0 0 00:02:15 Estab 4 4
100.250.250.12 4 65000 504 488 0 0 00:02:15 Estab 4 4
10/30/2020
BFD flaps in scale environment
In a lab scenario, says between 2 routers, there are hundreds of sub-interfaces and a BGP session with BFD on each subinterface. Then BFD flaps is seen. The scale information is as followed:
- 256 subinterfaces
- 256 ebgp session enabled with BFD
- BFD timers are 50ms x 3
From the above output, you can see 17 of 256 sessions are not up. And HW BFD is enabled (by default in Eos), but no helps.
ghb289#show bfd hardware utilization
Chip Name Number Of HW Sessions* Maximum Number Of HW Sessions*
--------------- ---------------------------- ------------------------------
Jericho0 0 200
Jericho1 128 200
Jericho2 128 200
CoppSystemBfd Et51/2 783529888 57981211712 3985376 294917824
9/30/2020
Arista EOS Lag/ECMP Hashing Features
References/Manual:
- EOS 4.24.2F TOI - Support for dynamic load balancing on ECMP groups (Trident Only)
- EOS 4.22.1F TOI - ECMP Load Balance Profile Support (Sand/Jericho Only)
- EOS 4.21.3F TOI - Symmetric header selection in LAG load-balancing profiles (Jericho Only)
- EOS 4.21.0F TOI - UDF flex hashing improvements (Trident Only)
- EOS 4.20.6F TOI - LAG hashing enhancement for configuring member-selection method (Jericho Only)
- EOS 4.20.5F TOI - LAG hashing on Ingress Interface
- EOS 4.20.5F TOI - Lag Hashing Key Shift
- EOS 4.20.5F TOI - VxLAN over MPLS LAG hashing optimizations for Bridged ports
- EOS 4.20.1F TOI - LAG and ECMP selectable hashing fields (Jericho Only)
- EOS 4.18.0F TOI - Hardware load-balancing for ingress/egress and fabric/egress replication
- EOS 4.17.2F TOI - Configurable field selection for ECMP hash, (Trident Only)
- EOS 4.17.2F TOI - Disable usage of ingress interface in ECMP hashing
- EOS 4.17.1F TOI - Inner IP hashing for MPLSoGRE
- EOS 4.17.0F TOI - Global LAG Hashing Profiles (Jericho Only)
- EOS 4.17.0F TOI - ECMP Hash Visibility
- EOS 4.15.2F TOI - GRE in LAG hash
- EOS 4.15.2F TOI - LAG/ECMP hashing on TTL/Hop Limit
- EOS 4.15.0F TOI - Dynamic and symmetric LAG hashing
- EOS 4.15.0F TOI - Tap aggregation enhancements
9/23/2020
Understanding the output of "show qos interface eth#"
In this post, I like to explain the output of the EOS command - "show qos interface eth#" based on my understanding from EOS document.
wa461.00:58:25#sh qos interfaces e17/1
Ethernet17/1:
Trust Mode: DSCP
Default COS: 0
Default DSCP: 0
Port shaping rate: disabled
Burst-size: disabled
Tx Bandwidth Shape Rate Burst-Size Priority ECN/WRED
Queue (percent) (units) (units)
------------------------------------------------------------------------------------------
7 - / - - / - ( - ) - / - SP / SP D
6 - / - - / - ( - ) - / - SP / SP D
5 - / - - / - ( - ) - / - SP / SP D
4 - / - - / - ( - ) - / - SP / SP D
3 - / - - / - ( - ) - / - SP / SP D
2 20 / 20 1.2 / 1.0 (Gbps) 2048 KB / 2048 KB RR / RR D
1 30 / 30 - / - ( - ) - / - RR / SP D
0 50 / 50 - / - ( - ) - / - RR / SP D
Note: Values are displayed as Operational/Configured
Legend:
RR -> Round Robin
SP -> Strict Priority
- -> Not Applicable / Not Configured
% -> Percentage of line rate
- Values are displayed as Operational/Configured, like RR/SP which means this Q is configured as strict priority but operational as round-robin.
- If one queue is configured as no priority (RR), then all the lower queues are changed to RR.
- In this example, Q 2 is RR, then 0 and 1 are automatically changed to RR.
- And Q 0 and 1 are RR/SP, which means their configuration are SP by default, but operational mode is RR.
- If both interface and tx-queue are configured with shape, which is effective?
- From EOS manual chapter 27.5 - Enabling port shaping on an FM6000 interface disables queue shaping internally. Disabling port shaping restores queue shaping as specified in running-config.
speed forced 10000full
!
tx-queue 0
bandwidth percent 50
!
tx-queue 1
bandwidth percent 30
!
tx-queue 2
no priority
bandwidth percent 20
shape rate 1000000
- Bandwidth vs shape.
- Bandwidth% is the b/w percent this RR queue can get. Says the above configuration:
- In the sample below, the interface 17/1 is 10 Gbps interface
- Q3-7 are the strict priority and, say use total 2 Gbps traffic, which left 8Gbps for Q0-2
- The tx-Q 2 can have 20% of left-over capacity which is 1.6Gbps
- But the shape rate is 1.2Gbps
- So the maximum throughput of tx-Q 2 is 1.2 Gbps, even it is assigned with 1.6Gbps.
EOS: A simple Qos design example
This article - "A Simple Quality of Service Design Example" is a very good starting point for understanding the EOS Qos architecture and starting a Qos design.
Some points:
- 3 ways in the ingress points to map packets to Tx queues:
- qos cos trust + cos-tc map
- qos dscp trust + dscp-tc map
- service-policy + policy-map
- 3 big categories of traffic:
- network-control = control plane
- latency/jitter sensitive traffic
- best-efforts = scavenger traffic
- qos profile =
- policy-map for input
- tx-queue set for output
- "no priority" in a tx-queue, all lower queues become RR
9/22/2020
Support for CPU traffic policy
The default EOS Copp only provides protocol level traffic policy, for example, the maximum throughput of bgp traffic destined to the cpu. But there is no granularity of source address. So this feature - Support for CPU traffic policy is for this purpose.
Set DSCP value for CPU outbound packets
In Arista EOS, the following protocol packets are able to set a DSCP value other than the default value 0:
- RADIUS, TACACS, SNMP, SSH, and sFlow (feature supported from 4.18.1F)
- NTP, DNS, Syslog, Traceroute, OSPF, and OSPF3 protocols (from 4.22.1F)
Notes:
- The setting must be done individually and under the protocol section
- hostname is not supported.
9/13/2020
EOS: % Not supported when show bgp summary
If you see the error message with EOS command - show bgp <AF> summary, it is probably caused the routing mode. To be more specific, you are probably running ribd mode and the CLI - "show bgp <AF> summary" is only supported in multi-agent mode
ghs259#show bgp ipv6 unicast summary
% Not supported
ghs259-CIN-DPA2.23:32:18#show ip route summary
Operating routing protocol model: ribd
Configured routing protocol model: multi-agent (will apply after next reboot)
8/19/2020
Arista EOS - BGP Selective Route Download
In this post, I will share my experience with a relatively old (was released back in 2015) but very useful Arista EOS feature - BGP Selective Route Download (SRD).
The use cases are quite straightforward:
- Program the necessary routes on the routers with small hardware resources. In the above TOI link, only 30K prefixes of 520K (back in 2015) cover 99% traffic. The left small traffic can be directed by the default route.
- Another useful case (for me) is to control what routes be programmed, or even not installed at all. At meanwhile the BGP runs transparently, which processes, receives and advertises the BGP prefixes. A good example is the RR which is not in the data path. Or hardness router in the lab, it just sends bgp updates. The traffic can be handled by a couple of static routes.
8/10/2020
EOS: alias to sum up total num of received bgp prefixes
7/27/2020
EOS: sum up and compare in/egress throughput
Here is a couple of useful tips and commands.
bn309#srnz
Port Name Intvl In Mbps % In Kpps Out Mbps % Out Kpps
Et9/1/1 ixia:LC8 0:05 0.0 0.0% 0 13435.8 35.0% 3543
Et9/2/1 ixia:LC8 0:05 0.0 0.0% 0 13435.3 35.0% 3543
...
Et11/6/1 ixia:LC7 0:05 13433.7 35.0% 3543 0.0 0.0% 0
Et11/11/1 ixia:LC7 0:05 13433.7 35.0% 3543 0.0 0.0% 0
Et11/12/1 ixia:LC7 0:05 13434.6 35.0% 3543 0.0 0.0% 0
Et11/13/1 ixia:LC7 0:05 13432.3 35.0% 3543 0.0 0.0% 0
Et11/14/1 ixia:LC7 0:05 13434.4 35.0% 3543 0.0 0.0% 0
Et11/15/1 ixia:LC7 0:05 13434.3 35.0% 3543 0.0 0.0% 0
Et11/16/1 ixia:LC7 0:05 13433.9 35.0% 3543 0.0 0.0% 0
In the above example, you want to compare ingress from ixia:LC7 and egress of ixia:LC8
bn309#srnz | grep LC7 | awk '{s+=$4}END{print s}'
161206 <<< ingress
bn309#srnz | grep LC8 | awk '{s+=$7}END{print s}'
161198 <<< egress
6/30/2020
"no-internal-vlan" error for routed interfaces
yo411.16:22:08(config-if-Po1201)#show int status errdisabled
Port Name Status Reason
-------------- ---------------- ----------------- ---------------------
Et3/12/1 errdisabled port-channel-shutdown
Et4/12/1 errdisabled port-channel-shutdown
Po1201.3 errdisabled no-internal-vlan
Po1201.2 errdisabled no-internal-vlan
Po1201 errdisabled no-internal-vlan
Basically, the "port-ch-shutdown" error was caused by the Po1201 being down. Checked the EOS document, the system will reserve an internal VLAN for any "no switchport" interfaces. And the internal VLAN ranges start from 1006 to 4094 (ref: EOS Manual section 19.4.3)
yo411.16:22:59(config-if-Po1201)#show vlan internal usage
1006 Port-Channel1900.4002
1007 Ethernet3/36/3
1008 Port-Channel1900
1009 Ethernet3/36/1
1010 Port-Channel1900.4003
1011 Ethernet3/36/4
1012 Ethernet3/36/2
1013 Ethernet3/36/4.2
1014 Ethernet3/36/4.3
And internal VLAN assignment stops at 1015.
yo411.16:23:23(config-if-Po1201)#sh vlan 1015
VLAN Name Status Ports
----- -------------------------------- --------- -------------------------------
1015 VLAN1015 suspended
So the root cause is that there is an accidental configuration of vlan 1015 with a suspended state, and this blocks the internal VLAN assignment.
yo411.16:24:19(config)#no vlan 1006 - 1099
yo411.16:24:36(config)#sh int status errdisabled
After removing the VLAN configuration, there is no internal-VLAN error anymore.
yo411.16:24:47(config)#show vlan internal usage
...
1015 Port-Channel1201.2
1016 Port-Channel1201.3
1017 Port-Channel1201
Another way is to specify the internal VLAN range to an unused space (ref: EOS manual section 21.3)
yo411(config)# vlan internal order descending range 4000 4094
5/31/2020
Arista EVPN VXLAN Configuration Example (3c) - Single-homing, L3 EVPN, Symmetric IRB
- VTEPs only need to hold the VLANs and SVIs of directly connected subnets
- An intermediate IP-VRF to carry the remote subnets
5/30/2020
Arista EVPN VXLAN Configuration Example (3b) - Single-homing, L3 EVPN, Asymmetric IRB
The asymmetric IRB is illustrated as below

Explanations:
- VTEP on has 1 directly connected VLAN:
- VTEP1 - VLAN 641
- VTEP2 - VLAN 642
- But the VTEPs must have
- 2 x SVI interface, VLAN 641 and 642
- 2 x VLANs under MAC VRF
- 2 x VLAN/VNI bindings under Vxlan interfce
- Routing is performed on the ingress VTEP, and egress VTEP only decapsulates the Vxlan header and switches into destination VLANs.
- The returning traffic does the same, so routing is done on different VTEPs, hence the term Asymmetric IRB
- Advantage:
- Optimal traffic path and no traffic trombone
- Disadvantage:
- VTEPs must have all SVIs and VLANs configured, even not locally connected.
- That means ALL VTEPs hold ALL MAC and ARP of hosts for source and destination VLANs.
- So the scale is the biggest issue. To make things worse, TOR devices normally don't much high capacity.
Arista EVPN VXLAN Configuration Example (3a) - Single-homing, L3 EVPN, Centralized Routing

Explanation:
- A dedicated router - up506/cenRtr is used to route the traffic between vlans;
- All gateway SVIs on the cenRtr
- Advantages:
- Low resource requirement on VTEPs, which only need to know how to reach gateway. So fewer MAC and no ARP
- Easy managed.
- Disadvantages:
- Sub-optimal traffic flow.
- Single point failure
1. IMET:
On centralized router, under vlan 631, only 2 VTEPs - local and VTEP1
up506-CentRtr#show bgp evpn route-type imet vni 631
Network Next Hop Metric LocPref Weight Path
* > RD: 160.255.255.10:630 imet 631 160.255.255.10
160.255.255.10 - 100 0 i Or-ID: 160.255.255.10 C-LST: 180.255.255.1
* > RD: 160.255.255.20:630 imet 631 160.255.255.100
- - - 0 i
Similarly, under vlan 632, only 2 VTEPs - local and VTEP2
Network Next Hop Metric LocPref Weight Path
* > RD: 160.255.255.20:630 imet 632 160.255.255.20
160.255.255.20 - 100 0 i Or-ID: 160.255.255.20 C-LST: 180.255.255.1
* > RD: 160.255.255.20:630 imet 632 160.255.255.100
- - - 0 i
2. MAC-IP:
up506-CentRtr#show bgp evpn route-type mac-ip vni 631
Network Next Hop Metric LocPref Weight Path
* > RD: 160.255.255.10:630 mac-ip 631 444c.a8a5.1140
160.255.255.10 - 100 0 i Or-ID: 160.255.255.10 C-LST: 180.255.255.1
up506-CentRtr#show bgp evpn route-type mac-ip vni 632
Network Next Hop Metric LocPref Weight Path
* > RD: 160.255.255.20:630 mac-ip 632 444c.a8a5.1141
160.255.255.20 - 100 0 i Or-ID: 160.255.255.20 C-LST: 180.255.255.1
Ping check-up:
Host1#ping vrf EvpnHost1 160.63.2.202
PING 160.63.2.202 (160.63.2.202) 72(100) bytes of data.
80 bytes from 160.63.2.202: icmp_seq=1 ttl=63 time=0.157 ms
80 bytes from 160.63.2.202: icmp_seq=2 ttl=63 time=0.112 ms
80 bytes from 160.63.2.202: icmp_seq=3 ttl=63 time=0.144 ms
80 bytes from 160.63.2.202: icmp_seq=4 ttl=63 time=0.106 ms
80 bytes from 160.63.2.202: icmp_seq=5 ttl=63 time=0.133 ms
--- 160.63.2.202 ping statistics ---
5 packets transmitted, 5 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 0.106/0.130/0.157/0.021 ms, ipg/ewma 0.156/0.143 ms
5/21/2020
Arista EVPN VXLAN Configuration Example (2c) - Single-homing, L2 EVPN, Vlan-aware vs Vlan-based

And the problem is that, flood set is not correct.
snp261#sh l2rib input bgp floodset
L2 RIB EVPN Input flood set:
Vlan Address Type Destination
---------- -------------------- ---------- -------------------
601 0000.0000.0000 All VTEP 160.255.255.20
602 0000.0000.0000 All VTEP 160.255.255.20
611 0000.0000.0000 All VTEP 160.255.255.20
612 0000.0000.0000 All VTEP 160.255.255.20
<<<< there is no VTEP flood set for VLAN 621 and 622
Arista EVPN VXLAN Configuration Example (2b) - Single-homing, L2 EVPN, Vlan-aware

Explanations:
- Configuration is much like the VLAN-based MAC VRF
- Configure VLAN-aware MAC-VRF under router BGP with RD/RT and it can have multiple VLANs
- "redistribute learned" is to advertised the learnt MAC under VLAN as type-2 routes to remote EVPN peers.
- Under interface Vxlan 1, configure VNI values for above VLANs
Control Plane Check-up:
1. IMET, almost same as VLAN-based, but under 1 RD/RT with 2 VNIs/VTEP
snp261-eVtep1#sh bgp evpn route-type imet rd 160.255.255.20:610 detail
BGP routing table information for VRF default
Router identifier 160.255.255.10, local AS number 65161
BGP routing table entry for imet 611 160.255.255.20, Route Distinguisher: 160.255.255.20:610
Paths: 1 available
Local
160.255.255.20 from 160.255.255.1 (180.255.255.1)
Origin IGP, metric -, localpref 100, weight 0, valid, internal, best
Originator: 160.255.255.20, Cluster list: 180.255.255.1
Extended Community: Route-Target-AS:65100:610 TunnelEncap:tunnelTypeVxlan
VNI: 611
PMSI Tunnel: Ingress Replication, MPLS Label: 611, Leaf Information Required: false, Tunnel ID: 160.255.255.20
BGP routing table entry for imet 612 160.255.255.20, Route Distinguisher: 160.255.255.20:610
Paths: 1 available
Local
160.255.255.20 from 160.255.255.1 (180.255.255.1)
Origin IGP, metric -, localpref 100, weight 0, valid, internal, best
Originator: 160.255.255.20, Cluster list: 180.255.255.1
Extended Community: Route-Target-AS:65100:610 TunnelEncap:tunnelTypeVxlan
VNI: 612
PMSI Tunnel: Ingress Replication, MPLS Label: 612, Leaf Information Required: false, Tunnel ID: 160.255.255.20
2. MAC-IP, under 1 RD/RT, but 2 VNI for 2 VLANs
snp261-eVtep1#sh bgp evpn route-type mac-ip rd 160.255.255.20:610 detail
BGP routing table information for VRF default
Router identifier 160.255.255.10, local AS number 65161
BGP routing table entry for mac-ip 611 444c.a8a5.1141, Route Distinguisher: 160.255.255.20:610
Paths: 1 available
Local
160.255.255.20 from 160.255.255.1 (180.255.255.1)
Origin IGP, metric -, localpref 100, weight 0, valid, internal, best
Originator: 160.255.255.20, Cluster list: 180.255.255.1
Extended Community: Route-Target-AS:65100:610 TunnelEncap:tunnelTypeVxlan
VNI: 611 ESI: 0000:0000:0000:0000:0000
BGP routing table entry for mac-ip 612 444c.a8a5.1141, Route Distinguisher: 160.255.255.20:610
Paths: 1 available
Local
160.255.255.20 from 160.255.255.1 (180.255.255.1)
Origin IGP, metric -, localpref 100, weight 0, valid, internal, best
Originator: 160.255.255.20, Cluster list: 180.255.255.1
Extended Community: Route-Target-AS:65100:610 TunnelEncap:tunnelTypeVxlan
VNI: 612 ESI: 0000:0000:0000:0000:0000
Ping check-up:
Host1#ping vrf EvpnHost1 160.61.1.201
PING 160.61.1.201 (160.61.1.201) 72(100) bytes of data.
80 bytes from 160.61.1.201: icmp_seq=1 ttl=64 time=0.790 ms
80 bytes from 160.61.1.201: icmp_seq=2 ttl=64 time=0.134 ms
80 bytes from 160.61.1.201: icmp_seq=3 ttl=64 time=0.102 ms
80 bytes from 160.61.1.201: icmp_seq=4 ttl=64 time=0.107 ms
80 bytes from 160.61.1.201: icmp_seq=5 ttl=64 time=0.117 ms
--- 160.61.1.201 ping statistics ---
5 packets transmitted, 5 received, 0% packet loss, time 4ms
rtt min/avg/max/mdev = 0.102/0.250/0.790/0.270 ms, ipg/ewma 1.000/0.510 ms
Host2#ping vrf EvpnHost1 160.61.2.201
PING 160.61.2.201 (160.61.2.201) 72(100) bytes of data.
80 bytes from 160.61.2.201: icmp_seq=1 ttl=64 time=0.884 ms
80 bytes from 160.61.2.201: icmp_seq=2 ttl=64 time=0.105 ms
80 bytes from 160.61.2.201: icmp_seq=3 ttl=64 time=0.106 ms
80 bytes from 160.61.2.201: icmp_seq=4 ttl=64 time=0.097 ms
80 bytes from 160.61.2.201: icmp_seq=5 ttl=64 time=0.096 ms
--- 160.61.2.201 ping statistics ---
5 packets transmitted, 5 received, 0% packet loss, time 4ms
rtt min/avg/max/mdev = 0.096/0.257/0.884/0.313 ms, ipg/ewma 1.001/0.559 ms
Arista EVPN VXLAN Configuration Example (2a) - Single-homing, L2 EVPN, Vlan-based
- Vlan-based
- 1 VRF (1 RD): 1 VLAN
- ESI = 0
- Vlan-aware Bundled
- 1 VRF (1 RD): n VLANs
- ESI = VNI
Explanations:
- Configure VLAN aka MAC-VRF under router BGP with RD/RT
- "redistribute learned" is to advertised the learnt MAC under VLAN as type-2 routes to remote EVPN peers.
- Under interface Vxlan 1, configure VNI values for above VLANs
EVPN uses 2 types routes for L2EVPN, 1) type-3 IMET, 2) type-2 MAC-IP
1) IMET
snp261-eVtep1#show bgp evpn route-type imet vni 601 detail
BGP routing table information for VRF default
Router identifier 160.255.255.10, local AS number 65161
BGP routing table entry for imet 160.255.255.10, Route Distinguisher: 160.255.255.10:601
Paths: 1 available
Local
- from - (0.0.0.0)
Origin IGP, metric -, localpref -, weight 0, valid, local, best
Extended Community: Route-Target-AS:65100:601 TunnelEncap:tunnelTypeVxlan
VNI: 601
PMSI Tunnel: Ingress Replication, MPLS Label: 601, Leaf Information Required: false, Tunnel ID: 160.255.255.10
BGP routing table entry for imet 160.255.255.20, Route Distinguisher: 160.255.255.20:601
Paths: 1 available
Local
160.255.255.20 from 160.255.255.1 (180.255.255.1)
Origin IGP, metric -, localpref 100, weight 0, valid, internal, best
Originator: 160.255.255.20, Cluster list: 180.255.255.1
Extended Community: Route-Target-AS:65100:601 TunnelEncap:tunnelTypeVxlan << RT to control import
VNI: 601 << VNI for this VLAN
PMSI Tunnel: Ingress Replication, MPLS Label: 601, Leaf Information Required: false, Tunnel ID: 160.255.255.20 << VTEP ID
2) Flood-set, the above IMET prefix is used to form the flood-set
snp261-eV1.16:27:32#show vxlan flood vtep vlan 601
VXLAN Flood VTEP Table
--------------------------------------------------------------------------------
VLANS Ip Address
----------------------------- ------------------------------------------------
601 160.255.255.20
snp261-eV1.16:23:04#show l2rib output floodset vlan 601
L2 RIB Output flood set:
Source: Local Dynamic, Local Static, BGP, VXLAN Static, VXLAN Dynamic
Vlan Address Type Destination
---------- -------------------- ---------- -------------------
601 0000.0000.0000 All VTEP 160.255.255.20
snp261-eV1.16:27:02#show l2rib input bgp floodset vlan 601
L2 RIB EVPN Input flood set:
Vlan Address Type Destination
---------- -------------------- ---------- -------------------
601 0000.0000.0000 All VTEP 160.255.255.20
3) Type-2 MAC-IP EVPN Route
snp261-eVtep1#show bgp evpn route-type mac-ip vni 601 detail
BGP routing table information for VRF default
Router identifier 160.255.255.10, local AS number 65161
BGP routing table entry for mac-ip 444c.a8a5.1140, Route Distinguisher: 160.255.255.10:601
Paths: 1 available
Local
- from - (0.0.0.0)
Origin IGP, metric -, localpref -, weight 0, valid, local, best
Extended Community: Route-Target-AS:65100:601 TunnelEncap:tunnelTypeVxlan
VNI: 601 ESI: 0000:0000:0000:0000:0000
BGP routing table entry for mac-ip 444c.a8a5.1141, Route Distinguisher: 160.255.255.20:601 << mac address
Paths: 1 available
Local
160.255.255.20 from 160.255.255.1 (180.255.255.1)
Origin IGP, metric -, localpref 100, weight 0, valid, internal, best
Originator: 160.255.255.20, Cluster list: 180.255.255.1
Extended Community: Route-Target-AS:65100:601 TunnelEncap:tunnelTypeVxlan << RT to control import
VNI: 601 ESI: 0000:0000:0000:0000:0000 << VNI
snp261-eV1.16:29:56#show mac address-table interface vxlan 1 vlan 601
Mac Address Table
------------------------------------------------------------------
Vlan Mac Address Type Ports Moves Last Move
---- ----------- ---- ----- ----- ---------
601 444c.a8a5.1141 DYNAMIC Vx1 1 4:53:10 ago
5) Clear MAC on remote VTEP to simulate MAC aging out
wa464-eVtep2#clear mac address-table dynamic vlan 601 << clear MAC
snp261-eVtep1#show bgp evpn route-type mac-ip vni 601 detail << NO evpn type-2 prefix
BGP routing table information for VRF default
Router identifier 160.255.255.10, local AS number 65161
BGP routing table entry for mac-ip 444c.a8a5.1140, Route Distinguisher: 160.255.255.10:601
Paths: 1 available
Local
- from - (0.0.0.0)
Origin IGP, metric -, localpref -, weight 0, valid, local, best
Extended Community: Route-Target-AS:65100:601 TunnelEncap:tunnelTypeVxlan
VNI: 601 ESI: 0000:0000:0000:0000:0000
snp261-eVtep1#show mac address-table interface vxlan 1 vlan 601 << no MAC entry
Mac Address Table
------------------------------------------------------------------
Vlan Mac Address Type Ports Moves Last Move
---- ----------- ---- ----- ----- ---------
Data Plane Checkup:
host1 under VTEP1 ping host2 behind VTEP2
PING 160.60.1.201 (160.60.1.201) 72(100) bytes of data.
80 bytes from 160.60.1.201: icmp_seq=1 ttl=64 time=0.135 ms
80 bytes from 160.60.1.201: icmp_seq=2 ttl=64 time=0.100 ms
80 bytes from 160.60.1.201: icmp_seq=3 ttl=64 time=0.092 ms
80 bytes from 160.60.1.201: icmp_seq=4 ttl=64 time=0.088 ms
80 bytes from 160.60.1.201: icmp_seq=5 ttl=64 time=0.089 ms
--- 160.60.1.201 ping statistics ---
5 packets transmitted, 5 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 0.088/0.100/0.135/0.021 ms, ipg/ewma 0.128/0.117 ms
VLAN-based: RD/RT vs VNI = 1:1
From the below output, the different VLANs have different RD and RT values, so 1:1 relationship. (In our case, only one host simulates multiple hosts under different VLANs).
snp261-eV1.18:18:45#sh bgp evpn route-type mac-ip vni 601 detail
BGP routing table entry for mac-ip 444c.a8a5.1141, Route Distinguisher: 160.255.255.20:601
Paths: 1 available
Local
160.255.255.20 from 160.255.255.1 (180.255.255.1)
Origin IGP, metric -, localpref 100, weight 0, valid, internal, best
Originator: 160.255.255.20, Cluster list: 180.255.255.1
Extended Community: Route-Target-AS:65100:601 TunnelEncap:tunnelTypeVxlan
VNI: 601 ESI: 0000:0000:0000:0000:0000
snp261-eV1.18:18:49#sh bgp evpn route-type mac-ip vni 602 detail
BGP routing table entry for mac-ip 444c.a8a5.1141, Route Distinguisher: 160.255.255.20:602
Paths: 1 available
Local
160.255.255.20 from 160.255.255.1 (180.255.255.1)
Origin IGP, metric -, localpref 100, weight 0, valid, internal, best
Originator: 160.255.255.20, Cluster list: 180.255.255.1
Extended Community: Route-Target-AS:65100:602 TunnelEncap:tunnelTypeVxlan
VNI: 602 ESI: 0000:0000:0000:0000:0000



