show commands bgp evpn vxlan tunnel





show commands
1a- eBGP summary
---------------
show BGP summary
show route protocol bgp table <inet.0> receive-protocol bgp <10.1.13.1>

>> Check for SPINE loopbacks 
>> Check eBGP routes learnt  inet.0: x/x/x/x
[Optional: iBGP routes learnt]


1b- iBGP summary
---------------
show bgp summary
show route protocol bgp receive-protocol bgp <10.255.0.1> table <bgp.evpn.0> <detail or extensive>

>> check loopback lo0@ 
>>> Check BGP family:   bgp.rtarget + bgp.evpn.0

>>> services/table:  default-switch.evpn.0  + __default_evpn__.evpn.0

2- VxLAN tunnels and VTEP interfaces:
-------------------------------------
show interface vtep  [ extensive ]
show ethernet-switching vxlan-tunnel-end-point remote
>>> should be two VxLAN tunnels
>>> VNID


3a- Routing table and BGP route
-------------------------------
3a- show route <SPINE loopback>
3b- show route <SPINE loopback> extensive
>> take note of the NH ( example "> to 10.1.23.1 via xe-0/0/1.0" )


3b- EVPN routes:
-----------------
The format of the EVPN routes is EVPN-route-type:route-distinguisher:vni:mac-address.

show route table bgp.evpn.0 evpn-ethernet-tag-id <vni id> evpn-mac-address <mac address>


4- EVPN routes, Mac address learnt:
------------------------------------
show evpn database
show evpn database mac-address 00:50:56:a2:54:66
show evpn database mac-address 00:50:56:a2:54:66 extensive

5- MAc@ advertise in BGP:
--------------------------
show route advertising-protocol bgp 10.255.0.1 evpn-mac-address 00:50:56:a2:54:66

show route forwarding-table table VS1 destination


6- VLANS:
---------
show vlans <bd-7>
show vlans bd-7 extensive



7- Forwarding table: ??????????
---------------------
show route forwarding-table destination <SPINE loopback>


8- Mac Table :
--------------
show ethernet-switching table vlan-name <bd-7>
show ethernet-switching table vlan-id <100>




starting point the IP@ of BMS
from BMS's IP@
{master:0}
jcluser@Spine1> show route table bgp.evpn.0 active-path | match 192.168
2:10.255.0.1:7999::9::00:00:5e:01:00:01::192.168.100.1/304 MAC/IP
2:10.255.0.1:7999::9::02:05:86:71:36:00::192.168.100.4/304 MAC/IP
2:10.255.0.1:7999::10::00:00:5e:01:00:01::192.168.200.1/304 MAC/IP
2:10.255.0.1:7999::10::02:05:86:71:36:00::192.168.200.4/304 MAC/IP
2:10.255.0.2:7999::9::00:00:5e:01:00:01::192.168.100.1/304 MAC/IP
2:10.255.0.2:7999::9::02:05:86:71:85:00::192.168.100.5/304 MAC/IP
2:10.255.0.2:7999::10::00:00:5e:01:00:01::192.168.200.1/304 MAC/IP
2:10.255.0.2:7999::10::02:05:86:71:85:00::192.168.200.5/304 MAC/IP
2:10.255.0.4:7999::10::00:50:56:a2:a1:17::192.168.200.10/304 MAC/IP
5:10.255.0.1:9::0::192.168.100.0::24/248
5:10.255.0.1:9::0::192.168.200.0::24/248
5:10.255.0.2:9::0::192.168.100.0::24/248
5:10.255.0.2:9::0::192.168.200.0::24/248


>>> IP@ and Mac@ of the irb on the Spines
>>> IP@ and Mac@ of the VGA interface on both spine
>>> Loopback IP of the spines
>>> RT: IP@:7999


>>> Why this one:
2:10.255.0.4:7999::10::00:50:56:a2:a1:17::192.168.200.10/304 MAC/IP


CRB, no routing on the Leaf
{master:0}
jcluser@Leaf1> show ethernet-switching mac-learning-log
Mon Jun 29 09:15:42 2020 vlan_name cluster_infra+4001 mac 00:50:56:a2:a7:b0 was learned on xe-0/0/2.0 with flags: 0x2001f
Mon Jun 29 12:34:37 2020 vlan_name bd-9+100 mac 00:00:5e:01:00:01 was learned on esi.1760 with flags: 0x2001f
Mon Jun 29 12:34:37 2020 vlan_name bd-9+100 mac 00:00:5e:01:00:01 was changed on esi.1760 with flags: 0x2001f
Mon Jun 29 12:34:37 2020 vlan_name bd-9+100 mac 02:05:86:71:36:00 was learned on vtep.32769 with flags: 0x2001f
Mon Jun 29 12:34:37 2020 vlan_name bd-9+100 mac 02:05:86:71:85:00 was learned on vtep.32770 with flags: 0x2001f
Mon Jun 29 12:35:45 2020 vlan_name bd-9+100 mac 00:50:56:a2:19:ee was learned on xe-0/0/3.0 with flags: 0x2001f
>>> BMS Mac@:  00:50:56:a2:19:ee


{master:0}
jcluser@Leaf1> show route table bgp.evpn.0 active-path | match 192.168
2:10.255.0.1:7999::9::00:00:5e:01:00:01::192.168.100.1/304 MAC/IP
2:10.255.0.1:7999::9::02:05:86:71:36:00::192.168.100.4/304 MAC/IP
2:10.255.0.2:7999::9::00:00:5e:01:00:01::192.168.100.1/304 MAC/IP
2:10.255.0.2:7999::9::02:05:86:71:85:00::192.168.100.5/304 MAC/IP
>>> IP@ and Mac@ of the irb on the Spines
>>> IP@ and Mac@ of the VGA interface on both spine
>>> Loopback IP of the spines
>>> RT: IP@:7999

{master:0}
jcluser@Leaf1> show ethernet-switching vxlan-tunnel-end-point remote
Logical System Name       Id  SVTEP-IP         IFL   L3-Idx
<default>                 0   10.255.0.3       lo0.0    0
 RVTEP-IP         IFL-Idx   NH-Id
 10.255.0.1       570       1759
    VNID          MC-Group-IP
    9             0.0.0.0
 RVTEP-IP         IFL-Idx   NH-Id
 10.255.0.2       571       1762
    VNID          MC-Group-IP
    9             0.0.0.0
>>> VNID


{master:0}
jcluser@Leaf1> show route table bgp.evpn.0 evpn-ethernet-tag-id 9 evpn-mac-address 00:50:56:a2:19:ee

bgp.evpn.0: 16 destinations, 30 routes (16 active, 0 holddown, 0 hidden)
+ = Active Route, - = Last Active, * = Both

2:10.255.0.3:7999::9::00:50:56:a2:19:ee/304 MAC/IP
                   *[EVPN/170] 03:53:36
                      Indirect


{master:0}
jcluser@Leaf1> show route table bgp.evpn.0 evpn-mac-address 00:50:56:a2:19:ee extensive

bgp.evpn.0: 16 destinations, 30 routes (16 active, 0 holddown, 0 hidden)
2:10.255.0.3:7999::9::00:50:56:a2:19:ee/304 MAC/IP (1 entry, 1 announced)
TSI:
RTF { 64512:8000009/64 }
Page 0 idx 0, (group _contrail_asn-64512 type Internal) Type 1 val 0xb14fb54 (adv_entry)
   Advertised metrics:
     Nexthop: 10.255.0.3
     Localpref: 100
     AS path: [64512] I
     Communities: target:64512:8000009 encapsulation:vxlan(0x8)
Path 2:10.255.0.3:7999::9::00:50:56:a2:19:ee Vector len 4.  Val: 0
        *EVPN   Preference: 170
                Next hop type: Indirect, Next hop index: 0
                Address: 0xb4d8030
                Next-hop reference count: 6
                Protocol next hop: 10.255.0.3
                Indirect next hop: 0x0 - INH Session ID: 0x0
                State: <Secondary Active Int Ext>
                Age: 6:07:39
                Validation State: unverified
                Task: default-switch-evpn
                Announcement bits (2): 1-BGP Route Target 2-BGP_RT_Background
                AS path: I
                Communities: target:64512:8000009 encapsulation:vxlan(0x8)
                Route Label: 9
                ESI: 00:00:00:00:00:00:00:00:00:00
                Primary Routing Table default-switch.evpn.0

{master:0}
jcluser@Leaf1>
>>> VNID / Route Label
>>> default-switch
>>> NH: Leaf1
>>> extended community
>>> ESI = 0  >>>> no dual homing

on Leaf and Spine

show evpn instance default-switch extensive

default-switch
{master:0}
jcluser@Spine1> show evpn instance default-switch extensive
Instance: default-switch
  Route Distinguisher: 10.255.0.1:7999
  Encapsulation type: VXLAN
  Duplicate MAC detection threshold: 5
  Duplicate MAC detection window: 180
  MAC database status                     Local  Remote
    MAC advertisements:                       2       6
    MAC+IP advertisements:                    4       5
    Default gateway MAC advertisements:       4       0
  Number of local interfaces: 1 (1 up)
    Interface name  ESI                            Mode             Status     AC-Role
    .local..5       00:00:00:00:00:00:00:00:00:00  single-homed     Up         Root
  Number of IRB interfaces: 2 (2 up)
    Interface name  VLAN   VNI    Status  L3 context
    irb.10                 10      Up     __contrail_bms_lr_e0e87a45-ec87-4c66-9e5f-1a886a8aa50c
    irb.9                  9       Up     __contrail_bms_lr_e0e87a45-ec87-4c66-9e5f-1a886a8aa50c
  Number of protect interfaces: 0
  Number of bridge domains: 2
    VLAN  Domain ID   Intfs / up    IRB intf   Mode             MAC sync  IM route label  SG sync  IM core nexthop
    8191  9              0    0     irb.9      Extended         Enabled   9               Enabled   131074
    8191  10             0    0     irb.10     Extended         Enabled   10              Enabled   131075
  Number of neighbors: 3
    Address               MAC    MAC+IP        AD        IM        ES Leaf-label
    10.255.0.2              4         4         2         2         0
    10.255.0.3              1         0         0         1         0
    10.255.0.4              1         1         0         1         0
  Number of ethernet segments: 2
    ESI: 05:00:00:fc:00:00:00:00:09:00
      Local interface: irb.9, Status: Up/Forwarding
      Number of remote PEs connected: 1
        Remote PE        MAC label  Aliasing label  Mode
        10.255.0.2       9          0               all-active
    ESI: 05:00:00:fc:00:00:00:00:0a:00
      Local interface: irb.10, Status: Up/Forwarding
      Number of remote PEs connected: 1
        Remote PE        MAC label  Aliasing label  Mode
        10.255.0.2       10         0               all-active
  Router-ID: 10.255.0.1

{master:0}
jcluser@Spine1>


{master:0}
jcluser@Leaf1> show evpn instance default-switch extensive
Instance: default-switch
  Route Distinguisher: 10.255.0.3:7999
  Encapsulation type: VXLAN
  Duplicate MAC detection threshold: 5
  Duplicate MAC detection window: 180
  MAC database status                     Local  Remote
    MAC advertisements:                       1       4
    MAC+IP advertisements:                    0       3
    Default gateway MAC advertisements:       0       0
  Number of local interfaces: 3 (3 up)
    Interface name  ESI                            Mode             Status     AC-Role
    .local..5       00:00:00:00:00:00:00:00:00:00  single-homed     Up         Root
    xe-0/0/2.0      00:00:00:00:00:00:00:00:00:00  single-homed     Up         Root
    xe-0/0/3.0      00:00:00:00:00:00:00:00:00:00  single-homed     Up         Root
  Number of IRB interfaces: 0 (0 up)
  Number of protect interfaces: 0
  Number of bridge domains: 1
    VLAN  Domain ID   Intfs / up    IRB intf   Mode             MAC sync  IM route label  SG sync  IM core nexthop
    100   9              1    1                Extended         Enabled   9               Enabled   131075
  Number of neighbors: 2
    Address               MAC    MAC+IP        AD        IM        ES Leaf-label
    10.255.0.1              2         2         2         1         0
    10.255.0.2              2         2         2         1         0
  Number of ethernet segments: 2
    ESI: 05:00:00:fc:00:00:00:00:09:00
      Status: Resolved
      Number of remote PEs connected: 2
        Remote PE        MAC label  Aliasing label  Mode
        10.255.0.1       9          0               all-active
        10.255.0.2       9          0               all-active
    ESI: 05:00:00:fc:00:00:00:00:0a:00
      Status: Resolved
      Number of remote PEs connected: 2
        Remote PE        MAC label  Aliasing label  Mode
        10.255.0.1       0          0               all-active
        10.255.0.2       0          0               all-active
  Router-ID: 10.255.0.3

{master:0}
jcluser@Leaf1>
esi received from Spine ( CRB )
ESI
{master:0}
jcluser@Leaf1> show route receive-protocol bgp 10.255.0.1 evpn-esi-value 05:00:00:fc:00:00:00:00:09:00 active-path

inet.0: 17 destinations, 27 routes (17 active, 0 holddown, 0 hidden)

:vxlan.inet.0: 13 destinations, 13 routes (13 active, 0 holddown, 0 hidden)

inet6.0: 2 destinations, 2 routes (2 active, 0 holddown, 0 hidden)

bgp.rtarget.0: 9 destinations, 21 routes (9 active, 0 holddown, 0 hidden)

bgp.evpn.0: 16 destinations, 30 routes (16 active, 0 holddown, 0 hidden)
  Prefix                  Nexthop              MED     Lclpref    AS path
  1:10.255.0.1:0::050000fc000000000900::FFFF:FFFF/192 AD/ESI
*                         10.255.0.1                   100        I

default-switch.evpn.0: 16 destinations, 30 routes (16 active, 0 holddown, 0 hidden)
  Prefix                  Nexthop              MED     Lclpref    AS path
  1:10.255.0.1:0::050000fc000000000900::FFFF:FFFF/192 AD/ESI
*                         10.255.0.1                   100        I

default-switch.evpn-mcsn.1: 1 destinations, 1 routes (1 active, 0 holddown, 0 hidden)

{master:0}
jcluser@Leaf1>