Showing posts with label ARP. Show all posts
Showing posts with label ARP. Show all posts

12/18/2018

Arista EOS: VARP - GARP

If you have the following VARP configuration:

ip virtual-router mac-address 00:00:33:33:44:44
ip virtual-router mac-address advertisement-interval 1
interface Vlan2000
   ip address 20.0.134.14/16
   ip virtual-router address 20.0.134.1

You will see the incoming GARP every 1 sec (collecting by "bash tcpdump -nvvi vlan2000 -w arp.cap")



Arista EOS
  • Use opcode=2 (reply) as GARP 
  • SrcMAC = vMAC, DstMAC = all FF
  • Send/Target MAC/IP = vMAC/vIP
  • You see 2 GARP in 1 sec because of 2 mlag peers 


10/31/2018

sum dropped pkts in "show platform jericho counter drop"

bn302.12:51:12#show platform jericho counters drops | grep "Counts Match" | awk '{print $9}' | awk '{sum += $1} END {print sum}'
52508425

4/17/2018

Arista L3 Leaf/Spine Step by Step (2c) - VxLAN Bridging, packet walkthru

Step 1: Ping hostX from host2. 

Before that we clear arp so force the host2 to send out broadcast arp req. Also run "bash tcpdump -nvvi vlan2000 arp" to see the arp packet behavior


Step2: host2 sends the arp to vtep2. 




Step 3: Vtep flood ARP req.


Besides flooding out the local vlan ports, the vtep will also do hardware replication to send 1 copy to each remote vtep, which is called HER (head-end-replication)

Please note that, only ONE mlag peer receive this arp request based on the hashing. Because 2 mlag peers share the same loopback, they appear as 1 destination with 2-way ecmp. 




Step 4: Remote Vtep learn and flood


When the remote VTEP receives this arp req, they will do:
1) flood all local ports to reach the destination; 
2) send it to mlag peer via peer link if applied; 
3) learn the MAC address of host2, like

wa462.vtepB1#sh mac address-table dynamic | grep 72b7

2000    444c.a897.72b7    DYNAMIC     Vx1        1       0:00:42 ago

wa463.vtepB2#sh mac address-table dynamic | grep 72b7

2000    444c.a897.72b7    DYNAMIC     Vx1        1       0:00:42 ago

Why flooding to MLAG peer? Say if there is one singly connected host but this arp request was hashed to the other MLAG peer. So we need this step to reach these orphan clients. 

Please note that both MLAG peers assign the srcHost's MAC to interface Vx1. Basically, MLAG peer never learns the MAC via peer link. Instead, they use MLAG message to sync MAC learning. 



Step 5. dstHost unicasts ARP reply back to srcHost

Since VtepX1 nad VtepX2 already learn srcMAC, it knows how to unicast it back to srcVtep

ckp342.vtepX2#sh mac address-table dynamic
Vlan    Mac Address       Type        Ports      Moves   Last Move
----    -----------       ----        -----      -----   ---------
2000    444c.a897.72b7    DYNAMIC     Vx1        1       0:00:03 ago