Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...





Code Block
titleshow commands
1- BGP summary
---------------
show BGP summary
>> Check for SPINE loopbacks 
>> Check eBGP routes learnt  inet.0: x/x/x/x
[Optional: iBGP routes learnt]

2- VxLAN tunnels
----------------
show ethernet-switching vxlan-tunnel-end-point remote
>>> should be two VxLAN tunnels
>>> VNID


3- 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" )

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>


5- Forwarding table
---------------------
show route forwarding-table destination <SPINE loopback>


6- 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

7- 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


starting point the IP@ of BMS


Code Block
titlefrom 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



Code Block
titleCRB, 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



on Leaf and Spine

show evpn instance default-switch extensive

Code Block
titledefault-switch
{master:0}
jcluser@Spine1>jcluser@Leaf1> show route table bgp.evpn instance default-switch extensive
Instance: default-switch
  Route Distinguisher: .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.13:7999::9::00:50:56:a2:19:ee/304 MAC/IP (1 Encapsulationentry, type:1 VXLANannounced)
TSI:
RTF Duplicate MAC detection threshold: 5
  Duplicate MAC detection window: 180
  MAC database status { 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
Local  Remote   AS  MAC advertisementspath: [64512] I
     Communities: target:64512:8000009 encapsulation:vxlan(0x8)
            2       6Path 2:10.255.0.3:7999::9::00:50:56:a2:19:ee Vector len 4.  Val: 0
        *EVPN   Preference: 170
    MAC+IP advertisements:           Next hop type: Indirect, Next hop index: 0
 4       5     Default gateway MAC advertisementsAddress: 0xb4d8030
     4       0   Number ofNext-hop localreference interfacescount: 16
(1 up)     Interface name  ESI       Protocol next hop: 10.255.0.3
                Indirect Modenext hop: 0x0 - INH Session ID: 0x0
     Status     AC-Role
    .local..5  State: <Secondary Active Int  00:00:00:00:00:00:00:00:00:00  single-homedExt>
       Up         Root
Age: 6:07:39
 Number  of IRB interfaces: 2 (2 up)     Interface name  VLANValidation State: unverified
VNI    Status  L3 context     irb.10    Task: default-switch-evpn
           10     Announcement Upbits (2): 1-BGP Route Target 2-BGP__contrail_bms_lr_e0e87a45-ec87-4c66-9e5f-1a886a8aa50cRT_Background
    irb.9            AS path: I
   9       Up     __contrail_bms_lr_e0e87a45-ec87-4c66-9e5f-1a886a8aa50c
  Number of protect interfaces: 0
  Number of bridge domains: 2 Communities: target:64512:8000009 encapsulation:vxlan(0x8)
     VLAN  Domain ID   Intfs / up   Route IRBLabel: intf9
  Mode             MAC sync  IM route label  SG sync  IM core nexthopESI: 00:00:00:00:00:00:00:00:00:00
        8191  9      Primary Routing       Table default-switch.evpn.0

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


on Leaf and Spine

show evpn instance default-switch extensive


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

{master:0}
jcluser@Spine1> Enabled   10   {master:0} jcluser@Leaf1> show evpn instance default-switch extensive Instance: default-switch   RouteEnabled Distinguisher: 10.255.0.3:7999
 131075
 Encapsulation type:Number VXLANof neighbors: 3
Duplicate MAC detection threshold: 5Address   Duplicate MAC detection window: 180   MAC database status   MAC    MAC+IP        AD      Local  RemoteIM     MAC advertisements:  ES Leaf-label
    10.255.0.2              4  1       4     MAC+IP  advertisements:  2         2         0
      310.255.0.3      Default gateway MAC advertisements:     1  0       0   Number of local interfaces: 3 (3 up)0     Interface name  ESI 1         0
    10.255.0.4             Mode 1         1   Status     AC-Role 0    .local..5       00:00:00:00:00:00:00:00:00:00  single-homed1       Up  0
  Number of   Root
    xe-0/0/2.0ethernet segments: 2
    ESI: 0005:00:00:00fc:00:00:00:00:0009:00
 single-homed     UpLocal interface: irb.9, Status: Up/Forwarding
    Root  Number of  xe-0/0/3.0  remote PEs connected: 1
   00:00:00:00:00:00:00:00:00:00  single-homed   Remote PE Up       MAC label Root Aliasing label Number ofMode
IRB interfaces: 0 (0 up)   Number of protect interfaces: 0 10.255.0.2      Number of9 bridge domains: 1     VLAN  Domain0 ID   Intfs / up    IRB intf   Mode all-active
    ESI: 05:00:00:fc:00:00:00:00:0a:00
     MAC syncLocal  IM route label  SG sync  IM core nexthop
    100   9interface: irb.10, Status: Up/Forwarding
      Number of remote PEs connected: 1
        Remote PE       1 MAC label  1Aliasing label  Mode
        10.255.0.2    Extended   10      Enabled   90               Enabledall-active
  131075
  Number of neighbors: 2
    Address               MAC    MAC+IP        AD        IMRouter-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:              ES Leaf-label     10.255.0.1   1       4
   2 MAC+IP advertisements:       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    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 )


Code Block
titleESI
{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            
MAC
 
label
 MED 
Aliasing
 
label
  
Mode
 Lclpref    AS path
  1:10.255.0.1:0::050000fc000000000900::FFFF:FFFF/192 
9 0
AD/ESI
*                 
all-active
        
10.255.0.
2
1       
9
          
0
  100        
I

all-active ESI: 05:00:00:fc:00:00:00:00:0a:00 Status: Resolved
default-switch.evpn.0: 16 destinations, 30 routes (16 active, 0 holddown, 0 hidden)
  Prefix        
Number
 
of
 
remote
 
PEs
 
connected:
 
2
     Nexthop    
Remote
 
PE
        
MAC
 
label
MED  
Aliasing
 
label
  
Mode
Lclpref    AS path
  
1:10.255.0.1
0 0
:0::050000fc000000000900::FFFF:FFFF/192 AD/ESI
*                
all-active
         10.255.0.
2
1         
0
          
0
100        I

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

{master:0}
jcluser@Leaf1>

───────────────────────────────────────────────────────