VXLAN EVPN

# 何がやりたいか
この検証では、Nexus9000vを使用していますが、バーチャルプラットフォームでもEVPNが動作すること(pingが届くこと)を確認しています。

# Topology
![topology.jpeg](https://qiita-image-store.s3.amazonaws.com/0/228223/df55e097-37c2-7fd3-3926-27a5814f72ce.jpeg)


# Configuration
##R1

```text:R1_config
R1# show running-config 

!Command: show running-config
!Time: Sun Apr 29 17:08:11 2018

version 7.0(3)I7(3)
hostname R1
vdc R1 id 1
  limit-resource vlan minimum 16 maximum 4094
  limit-resource vrf minimum 2 maximum 4096
  limit-resource port-channel minimum 0 maximum 511
  limit-resource u4route-mem minimum 128 maximum 128
  limit-resource u6route-mem minimum 96 maximum 96
  limit-resource m4route-mem minimum 58 maximum 58
  limit-resource m6route-mem minimum 8 maximum 8

nv overlay evpn
feature ospf
feature bgp
feature interface-vlan
feature vn-segment-vlan-based
feature nv overlay

no password strength-check
username admin password 5 $5$FAHPCL$0VJYradaxuwAz6RZI7HxgBsq8X5azbGwqBEtFx6IkN9 
 role network-admin
ip domain-lookup
snmp-server user admin network-admin auth md5 0xa2c57536c73ae969ed49b72706a0fe96
 priv 0xa2c57536c73ae969ed49b72706a0fe96 localizedkey
rmon event 1 description FATAL(1) owner PMON@FATAL
rmon event 2 description CRITICAL(2) owner PMON@CRITICAL
rmon event 3 description ERROR(3) owner PMON@ERROR
rmon event 4 description WARNING(4) owner PMON@WARNING
rmon event 5 description INFORMATION(5) owner PMON@INFO

fabric forwarding anycast-gateway-mac 0000.2222.3333
vlan 1,101-102,1001-1004
vlan 101
  vn-segment 900001
vlan 102
  vn-segment 900002
vlan 1001
  vn-segment 2001001
vlan 1002
  vn-segment 2001002
vlan 1003
  vn-segment 2001003
vlan 1004
  vn-segment 2001004

vrf context management
vrf context vxlan-900001
  vni 900001
  rd auto
  address-family ipv4 unicast
    route-target both auto
    route-target both auto evpn
  address-family ipv6 unicast
    route-target both auto
    route-target both auto evpn
vrf context vxlan-900002
  vni 900002
  rd auto
  address-family ipv4 unicast
    route-target both auto
    route-target both auto evpn
  address-family ipv6 unicast
    route-target both auto
    route-target both auto evpn

interface Vlan1

interface Vlan101
  no shutdown
  vrf member vxlan-900001
  ip forward
  ipv6 forward

interface Vlan102
  no shutdown
  vrf member vxlan-900002
  ip forward
  ipv6 forward

interface Vlan1001
  no shutdown
  vrf member vxlan-900001
  ip address 4.1.1.1/24
  ipv6 address 4:1:0:1::1/64
  fabric forwarding mode anycast-gateway

interface Vlan1002
  no shutdown
  vrf member vxlan-900001
  ip address 4.2.2.1/24
  ipv6 address 4:2:0:2::1/64
  fabric forwarding mode anycast-gateway

interface Vlan1003
  no shutdown
  vrf member vxlan-900002
  ip address 4.3.3.1/24
  ipv6 address 4:3:0:3::1/64
  fabric forwarding mode anycast-gateway

interface Vlan1004
  no shutdown
  vrf member vxlan-900002
  ip address 4.4.4.1/24
  ipv6 address 4:4:0:4::1/64
  fabric forwarding mode anycast-gateway

interface nve1
  no shutdown
  host-reachability protocol bgp
  source-interface loopback1
  member vni 900001 associate-vrf
  member vni 900002 associate-vrf
  member vni 2001001
    ingress-replication protocol bgp
  member vni 2001002
    ingress-replication protocol bgp
  member vni 2001003
    ingress-replication protocol bgp
  member vni 2001004
    ingress-replication protocol bgp

interface Ethernet1/1
  no switchport
  ip address 10.0.12.1/24
  ip router ospf core area 0.0.0.0
  no shutdown

interface Ethernet1/2
  switchport access vlan 1001

interface Ethernet1/3
  switchport access vlan 1002

interface Ethernet1/4
  switchport access vlan 1003

interface Ethernet1/5
  switchport access vlan 1004

interface Ethernet1/6

interface Ethernet1/7

interface Ethernet1/8

interface mgmt0
  vrf member management

interface loopback0
  ip address 10.100.1.1/32
  ip router ospf core area 0.0.0.0

interface loopback1
  ip address 10.101.1.1/32
  ip router ospf core area 0.0.0.0
line console
line vty
boot nxos bootflash:/nxos.7.0.3.I7.3.bin 
router ospf core
  router-id 10.100.1.1
router bgp 65000
  router-id 10.100.1.1
  log-neighbor-changes
  neighbor 10.100.2.2
    remote-as 65000
    update-source loopback0
    address-family l2vpn evpn
      send-community
      send-community extended
  vrf vxlan-900001
    address-family ipv4 unicast
      advertise l2vpn evpn
    address-family ipv6 unicast
      advertise l2vpn evpn
  vrf vxlan-900002
    address-family ipv4 unicast
      advertise l2vpn evpn
    address-family ipv6 unicast
      advertise l2vpn evpn
evpn
  vni 2001001 l2
    rd auto
    route-target import auto
    route-target export auto
  vni 2001002 l2
    rd auto
    route-target import auto
    route-target export auto
  vni 2001003 l2
    rd auto
    route-target import auto
    route-target export auto
  vni 2001004 l2
    rd auto
    route-target import auto
    route-target export auto


R1#      
```

##R2

```text:R2_config
R2# show running-config 

!Command: show running-config
!Time: Sun Apr 29 17:08:29 2018

version 7.0(3)I7(3)
hostname R2
vdc R2 id 1
  limit-resource vlan minimum 16 maximum 4094
  limit-resource vrf minimum 2 maximum 4096
  limit-resource port-channel minimum 0 maximum 511
  limit-resource u4route-mem minimum 128 maximum 128
  limit-resource u6route-mem minimum 96 maximum 96
  limit-resource m4route-mem minimum 58 maximum 58
  limit-resource m6route-mem minimum 8 maximum 8

nv overlay evpn
feature ospf
feature bgp
feature interface-vlan
feature vn-segment-vlan-based
feature nv overlay

no password strength-check
username admin password 5 $5$JKILFN$1w.w3ZVrHVhwxl2ycJazplJsdg9BLOuWy/UtsKqpx5B 
 role network-admin
ip domain-lookup
snmp-server user admin network-admin auth md5 0x0141d232edc2401aa635098d6227588d
 priv 0x0141d232edc2401aa635098d6227588d localizedkey
rmon event 1 description FATAL(1) owner PMON@FATAL
rmon event 2 description CRITICAL(2) owner PMON@CRITICAL
rmon event 3 description ERROR(3) owner PMON@ERROR
rmon event 4 description WARNING(4) owner PMON@WARNING
rmon event 5 description INFORMATION(5) owner PMON@INFO

fabric forwarding anycast-gateway-mac 0000.2222.3333
vlan 1,101-102,1001-1004
vlan 101
  vn-segment 900001
vlan 102
  vn-segment 900002
vlan 1001
  vn-segment 2001001
vlan 1002
  vn-segment 2001002
vlan 1003
  vn-segment 2001003
vlan 1004
  vn-segment 2001004

vrf context management
vrf context vxlan-900001
  vni 900001
  rd auto
  address-family ipv4 unicast
    route-target both auto
    route-target both auto evpn
  address-family ipv6 unicast
    route-target both auto
    route-target both auto evpn
vrf context vxlan-900002
  vni 900002
  rd auto
  address-family ipv4 unicast
    route-target both auto
    route-target both auto evpn
  address-family ipv6 unicast
    route-target both auto
    route-target both auto evpn

interface Vlan1

interface Vlan101
  no shutdown
  vrf member vxlan-900001
  ip forward
  ipv6 forward

interface Vlan102
  no shutdown
  vrf member vxlan-900002
  ip forward
  ipv6 forward

interface Vlan1001
  no shutdown
  vrf member vxlan-900001
  ip address 4.1.1.1/24
  ipv6 address 4:1:0:1::1/64
  fabric forwarding mode anycast-gateway

interface Vlan1002
  no shutdown
  vrf member vxlan-900001
  ip address 4.2.2.1/24
  ipv6 address 4:2:0:2::1/64
  fabric forwarding mode anycast-gateway

interface Vlan1003
  no shutdown
  vrf member vxlan-900002
  ip address 4.3.3.1/24
  ipv6 address 4:3:0:3::1/64
  fabric forwarding mode anycast-gateway

interface Vlan1004
  no shutdown
  vrf member vxlan-900002
  ip address 4.4.4.1/24
  ipv6 address 4:4:0:4::1/64
  fabric forwarding mode anycast-gateway

interface nve1
  no shutdown
  host-reachability protocol bgp
  source-interface loopback1
  member vni 900001 associate-vrf
  member vni 900002 associate-vrf
  member vni 2001001
    ingress-replication protocol bgp
  member vni 2001002
    ingress-replication protocol bgp
  member vni 2001003
    ingress-replication protocol bgp
  member vni 2001004
    ingress-replication protocol bgp

interface Ethernet1/1
  no switchport
  ip address 10.0.12.2/24
  ip router ospf core area 0.0.0.0
  no shutdown

interface Ethernet1/2
  switchport access vlan 1001

interface Ethernet1/3
  switchport access vlan 1002

interface Ethernet1/4
  switchport access vlan 1003

interface Ethernet1/5
  switchport access vlan 1004

interface Ethernet1/6

interface Ethernet1/7

interface Ethernet1/8

interface mgmt0
  vrf member management

interface loopback0
  ip address 10.100.2.2/32
  ip router ospf core area 0.0.0.0

interface loopback1
  ip address 10.101.2.2/32
  ip router ospf core area 0.0.0.0
line console
line vty
boot nxos bootflash:/nxos.7.0.3.I7.3.bin 
router ospf core
  router-id 10.100.2.2
router bgp 65000
  router-id 10.100.2.2
  log-neighbor-changes
  neighbor 10.100.1.1
    remote-as 65000
    update-source loopback0
    address-family l2vpn evpn
      send-community
      send-community extended
  vrf vxlan-900001
    address-family ipv4 unicast
      advertise l2vpn evpn
    address-family ipv6 unicast
      advertise l2vpn evpn
  vrf vxlan-900002
    address-family ipv4 unicast
      advertise l2vpn evpn
    address-family ipv6 unicast
      advertise l2vpn evpn
evpn
  vni 2001001 l2
    rd auto
    route-target import auto
    route-target export auto
  vni 2001002 l2
    rd auto
    route-target import auto
    route-target export auto
  vni 2001003 l2
    rd auto
    route-target import auto
    route-target export auto
  vni 2001004 l2
    rd auto
    route-target import auto
    route-target export auto


R2#      
```

# 確認項目

## VLAN間の通信

```text:log
R1# show nve vni
Codes: CP - Control Plane        DP - Data Plane          
       UC - Unconfigured         SA - Suppress ARP        
       SU - Suppress Unknown Unicast
 
Interface VNI      Multicast-group   State Mode Type [BD/VRF]      Flags
--------- -------- ----------------- ----- ---- ------------------ -----
nve1      900001   n/a               Up    CP   L3 [vxlan-900001]         
nve1      900002   n/a               Up    CP   L3 [vxlan-900002]         
nve1      2001001  UnicastBGP        Up    CP   L2 [1001]                 
nve1      2001002  UnicastBGP        Up    CP   L2 [1002]                 
nve1      2001003  UnicastBGP        Up    CP   L2 [1003]                 
nve1      2001004  UnicastBGP        Up    CP   L2 [1004] 
```

このコマンドでは、``L3 VNI``と``L2 VNI``が確認できます。
VLAN間を跨ぐ通信をする場合は、この``L3 NVI``が必要となります。

あと、下記の設定がないと、pingが通りません。``IPv4``と``IPv6``で、それぞれ必要です。

```text:config
interface Vlan101
  ip forward
  ipv6 forward
```

## showコマンド

### R1

```text:R1_show

R1# 
R1# show nve peers
Interface Peer-IP          State LearnType Uptime   Router-Mac       
--------- ---------------  ----- --------- -------- -----------------
nve1      10.101.2.2       Up    CP        07:53:41 0c4b.ae7f.d507   


R1# 
R1# show nve vni
Codes: CP - Control Plane        DP - Data Plane          
       UC - Unconfigured         SA - Suppress ARP        
       SU - Suppress Unknown Unicast
 
Interface VNI      Multicast-group   State Mode Type [BD/VRF]      Flags
--------- -------- ----------------- ----- ---- ------------------ -----
nve1      900001   n/a               Up    CP   L3 [vxlan-900001]         
nve1      900002   n/a               Up    CP   L3 [vxlan-900002]         
nve1      2001001  UnicastBGP        Up    CP   L2 [1001]                 
nve1      2001002  UnicastBGP        Up    CP   L2 [1002]                 
nve1      2001003  UnicastBGP        Up    CP   L2 [1003]                 
nve1      2001004  UnicastBGP        Up    CP   L2 [1004]                 

R1# 
R1# show nve internal platform interface nve 1 detail
Printing Interface ifindex 0x49000001 detail
|======|=========================|===============|===============|=====|=====|
|Intf  |State                    |PriIP          |SecIP          |Vnis |Peers|
|======|=========================|===============|===============|=====|=====|
|nve1  |UP                       |10.101.1.1     |0.0.0.0        |6    |1    |
|======|=========================|===============|===============|=====|=====|

SW_BD/VNIs of interface nve1:
================================================
|======|======|=========================|======|====|======|========
|Sw BD |Vni   |State                    |Intf  |Type|Vrf-ID|Notified
|======|======|=========================|======|====|======|========
|101   |900001|UP                       |nve1  |CP  |3     |Yes     
|102   |900002|UP                       |nve1  |CP  |4     |Yes     
|1001  |2001001|UP                       |nve1  |CP  |0     |Yes     
|1002  |2001002|UP                       |nve1  |CP  |0     |Yes     
|1003  |2001003|UP                       |nve1  |CP  |0     |Yes     
|1004  |2001004|UP                       |nve1  |CP  |0     |Yes     
|======|======|=========================|======|====|======|========

Peers of interface nve1:
============================================

Peer_ip: 10.101.2.2
  Peer-ID   : 1
  State     : UP
  Learning  : Disabled
  TunnelID  : 0x0
  Mode      : Symmetric
  MAC       : 0000.0000.0000
  Table-ID  : 0x1
  Encap     : 0x1

R1# 
R1# show vxlan interface
 all

show ipv6 route vrf allInterface        Vlan    VPL Ifindex     LTL             HW VP
=========       ====    ===========     ===             =====
Eth1/2          1001    0x533e97ff      0x1801          2050
Eth1/3          1002    0x533ea7fe      0x1802          2051
Eth1/4          1003    0x533eb7fd      0x1803          2052
Eth1/5          1004    0x533ec7fc      0x1804          2053

No port-channels configured (0x0)
R1# 
R1# show bgp l2vpn evpn
BGP routing table information for VRF default, address family L2VPN EVPN
BGP table version is 433, Local Router ID is 10.100.1.1
Status: s-suppressed, x-deleted, S-stale, d-dampened, h-history, *-valid, >-best
Path type: i-internal, e-external, c-confed, l-local, a-aggregate, r-redist, I-injected
Origin codes: i - IGP, e - EGP, ? - incomplete, | - multipath, & - backup

   Network            Next Hop            Metric     LocPrf     Weight Path
Route Distinguisher: 10.100.1.1:33768    (L2VNI 2001001)
*>l[2]:[0]:[0]:[48]:[0050.7966.6803]:[0]:[0.0.0.0]/216
                      10.101.1.1                        100      32768 i
*>i[2]:[0]:[0]:[48]:[0050.7966.6805]:[0]:[0.0.0.0]/216
                      10.101.2.2                        100          0 i
*>l[2]:[0]:[0]:[48]:[0050.7966.6803]:[32]:[4.1.1.101]/272
                      10.101.1.1                        100      32768 i
*>l[2]:[0]:[0]:[48]:[0050.7966.6803]:[128]:[4:1:0:1:2050:79ff:fe66:6801]/368
                      10.101.1.1                        100      32768 i
*>l[3]:[0]:[32]:[10.101.1.1]/88
                      10.101.1.1                        100      32768 i
*>i[3]:[0]:[32]:[10.101.2.2]/88
                      10.101.2.2                        100          0 i

Route Distinguisher: 10.100.1.1:33769    (L2VNI 2001002)
*>l[2]:[0]:[0]:[48]:[0050.7966.6800]:[0]:[0.0.0.0]/216
                      10.101.1.1                        100      32768 i
*>i[2]:[0]:[0]:[48]:[0050.7966.6804]:[0]:[0.0.0.0]/216
                      10.101.2.2                        100          0 i
*>l[2]:[0]:[0]:[48]:[0050.7966.6800]:[32]:[4.2.2.101]/272
                      10.101.1.1                        100      32768 i
*>i[2]:[0]:[0]:[48]:[0050.7966.6804]:[32]:[4.2.2.102]/272
                      10.101.2.2                        100          0 i
*>l[2]:[0]:[0]:[48]:[0050.7966.6800]:[128]:[4:2:0:2:2050:79ff:fe66:6800]/368
                      10.101.1.1                        100      32768 i
*>l[3]:[0]:[32]:[10.101.1.1]/88
                      10.101.1.1                        100      32768 i
*>i[3]:[0]:[32]:[10.101.2.2]/88
                      10.101.2.2                        100          0 i

Route Distinguisher: 10.100.1.1:33770    (L2VNI 2001003)
*>l[2]:[0]:[0]:[48]:[0050.7966.6802]:[0]:[0.0.0.0]/216
                      10.101.1.1                        100      32768 i
*>i[2]:[0]:[0]:[48]:[0050.7966.6806]:[0]:[0.0.0.0]/216
                      10.101.2.2                        100          0 i
*>l[2]:[0]:[0]:[48]:[0050.7966.6802]:[32]:[4.3.3.101]/272
                      10.101.1.1                        100      32768 i
*>l[2]:[0]:[0]:[48]:[0050.7966.6802]:[128]:[4:3:0:3:2050:79ff:fe66:6802]/368
                      10.101.1.1                        100      32768 i
*>l[3]:[0]:[32]:[10.101.1.1]/88
                      10.101.1.1                        100      32768 i
*>i[3]:[0]:[32]:[10.101.2.2]/88
                      10.101.2.2                        100          0 i

Route Distinguisher: 10.100.1.1:33771    (L2VNI 2001004)
*>i[2]:[0]:[0]:[48]:[0050.7966.6801]:[0]:[0.0.0.0]/216
                      10.101.2.2                        100          0 i
*>l[2]:[0]:[0]:[48]:[0050.7966.6807]:[0]:[0.0.0.0]/216
                      10.101.1.1                        100      32768 i
*>i[2]:[0]:[0]:[48]:[0050.7966.6801]:[32]:[4.4.4.102]/272
                      10.101.2.2                        100          0 i
*>l[2]:[0]:[0]:[48]:[0050.7966.6807]:[32]:[4.4.4.101]/272
                      10.101.1.1                        100      32768 i
*>l[2]:[0]:[0]:[48]:[0050.7966.6807]:[128]:[4:4:0:4:2050:79ff:fe66:6803]/368
                      10.101.1.1                        100      32768 i
*>l[2]:[0]:[0]:[48]:[0050.7966.6807]:[128]:[4:4:0:4:2050:79ff:fe66:6807]/368
                      10.101.1.1                        100      32768 i
*>l[3]:[0]:[32]:[10.101.1.1]/88
                      10.101.1.1                        100      32768 i
*>i[3]:[0]:[32]:[10.101.2.2]/88
                      10.101.2.2                        100          0 i

Route Distinguisher: 10.100.2.2:33768
*>i[2]:[0]:[0]:[48]:[0050.7966.6805]:[0]:[0.0.0.0]/216
                      10.101.2.2                        100          0 i
*>i[3]:[0]:[32]:[10.101.2.2]/88
                      10.101.2.2                        100          0 i

Route Distinguisher: 10.100.2.2:33769
*>i[2]:[0]:[0]:[48]:[0050.7966.6804]:[0]:[0.0.0.0]/216
                      10.101.2.2                        100          0 i
*>i[2]:[0]:[0]:[48]:[0050.7966.6804]:[32]:[4.2.2.102]/272
                      10.101.2.2                        100          0 i
*>i[3]:[0]:[32]:[10.101.2.2]/88
                      10.101.2.2                        100          0 i

Route Distinguisher: 10.100.2.2:33770
*>i[2]:[0]:[0]:[48]:[0050.7966.6806]:[0]:[0.0.0.0]/216
                      10.101.2.2                        100          0 i
*>i[3]:[0]:[32]:[10.101.2.2]/88
                      10.101.2.2                        100          0 i

Route Distinguisher: 10.100.2.2:33771
*>i[2]:[0]:[0]:[48]:[0050.7966.6801]:[0]:[0.0.0.0]/216
                      10.101.2.2                        100          0 i
*>i[2]:[0]:[0]:[48]:[0050.7966.6801]:[32]:[4.4.4.102]/272
                      10.101.2.2                        100          0 i
*>i[3]:[0]:[32]:[10.101.2.2]/88
                      10.101.2.2                        100          0 i

Route Distinguisher: 10.100.1.1:3    (L3VNI 900001)
*>i[2]:[0]:[0]:[48]:[0050.7966.6804]:[32]:[4.2.2.102]/272
                      10.101.2.2                        100          0 i

Route Distinguisher: 10.100.1.1:4    (L3VNI 900002)
*>i[2]:[0]:[0]:[48]:[0050.7966.6801]:[32]:[4.4.4.102]/272
                      10.101.2.2                        100          0 i

R1# 
R1# show l2route evpn mac all

Flags -(Rmac):Router MAC (Stt):Static (L):Local (R):Remote (V):vPC link 
(Dup):Duplicate (Spl):Split (Rcv):Recv (AD):Auto-Delete (D):Del Pending
(S):Stale (C):Clear, (Ps):Peer Sync (O):Re-Originated (Nho):NH-Override
(Pf):Permanently-Frozen

Topology    Mac Address    Prod   Flags         Seq No     Next-Hops      
----------- -------------- ------ ------------- ---------- ----------------
101         0c4b.ae7f.d507 VXLAN  Rmac          0          10.101.2.2     
102         0c4b.ae7f.d507 VXLAN  Rmac          0          10.101.2.2     
1001        0050.7966.6803 Local  L,            0          Eth1/2         
1001        0050.7966.6805 BGP    Rcv           0          10.101.2.2     
1002        0050.7966.6800 Local  L,            0          Eth1/3         
1002        0050.7966.6804 BGP    SplRcv        0          10.101.2.2     
1003        0050.7966.6802 Local  L,            0          Eth1/4         
1003        0050.7966.6806 BGP    Rcv           0          10.101.2.2     
1004        0050.7966.6801 BGP    SplRcv        0          10.101.2.2     
1004        0050.7966.6807 Local  L,            0          Eth1/5         
R1# 
R1# show ip route vrf all
IP Route Table for VRF "default"
'*' denotes best ucast next-hop
'**' denotes best mcast next-hop
'[x/y]' denotes [preference/metric]
'%<string>' in via output denotes VRF <string>

10.0.12.0/24, ubest/mbest: 1/0, attached
    *via 10.0.12.1, Eth1/1, [0/0], 07:54:44, direct
10.0.12.1/32, ubest/mbest: 1/0, attached
    *via 10.0.12.1, Eth1/1, [0/0], 07:54:44, local
10.100.1.1/32, ubest/mbest: 2/0, attached
    *via 10.100.1.1, Lo0, [0/0], 07:55:38, local
    *via 10.100.1.1, Lo0, [0/0], 07:55:38, direct
10.100.2.2/32, ubest/mbest: 1/0
    *via 10.0.12.2, Eth1/1, [110/41], 07:54:30, ospf-core, intra
10.101.1.1/32, ubest/mbest: 2/0, attached
    *via 10.101.1.1, Lo1, [0/0], 07:55:39, local
    *via 10.101.1.1, Lo1, [0/0], 07:55:39, direct
10.101.2.2/32, ubest/mbest: 1/0
    *via 10.0.12.2, Eth1/1, [110/41], 07:54:30, ospf-core, intra

IP Route Table for VRF "vxlan-900001"
'*' denotes best ucast next-hop
'**' denotes best mcast next-hop
'[x/y]' denotes [preference/metric]
'%<string>' in via output denotes VRF <string>

4.1.1.0/24, ubest/mbest: 1/0, attached
    *via 4.1.1.1, Vlan1001, [0/0], 07:55:39, direct
4.1.1.1/32, ubest/mbest: 1/0, attached
    *via 4.1.1.1, Vlan1001, [0/0], 07:55:39, local
4.1.1.101/32, ubest/mbest: 1/0, attached
    *via 4.1.1.101, Vlan1001, [190/0], 00:01:58, hmm
4.2.2.0/24, ubest/mbest: 1/0, attached
    *via 4.2.2.1, Vlan1002, [0/0], 07:55:39, direct
4.2.2.1/32, ubest/mbest: 1/0, attached
    *via 4.2.2.1, Vlan1002, [0/0], 07:55:39, local
4.2.2.101/32, ubest/mbest: 1/0, attached
    *via 4.2.2.101, Vlan1002, [190/0], 00:01:53, hmm
4.2.2.102/32, ubest/mbest: 1/0
    *via 10.101.2.2%default, [200/0], 07:53:43, bgp-65000, internal, tag 65000 (evpn) segid: 900001 tunnelid: 0xa650202 encap: VXLAN
 

IP Route Table for VRF "vxlan-900002"
'*' denotes best ucast next-hop
'**' denotes best mcast next-hop
'[x/y]' denotes [preference/metric]
'%<string>' in via output denotes VRF <string>

4.3.3.0/24, ubest/mbest: 1/0, attached
    *via 4.3.3.1, Vlan1003, [0/0], 07:55:39, direct
4.3.3.1/32, ubest/mbest: 1/0, attached
    *via 4.3.3.1, Vlan1003, [0/0], 07:55:39, local
4.3.3.101/32, ubest/mbest: 1/0, attached
    *via 4.3.3.101, Vlan1003, [190/0], 00:01:14, hmm
4.4.4.0/24, ubest/mbest: 1/0, attached
    *via 4.4.4.1, Vlan1004, [0/0], 07:55:39, direct
4.4.4.1/32, ubest/mbest: 1/0, attached
    *via 4.4.4.1, Vlan1004, [0/0], 07:55:39, local
4.4.4.101/32, ubest/mbest: 1/0, attached
    *via 4.4.4.101, Vlan1004, [190/0], 00:01:08, hmm
4.4.4.102/32, ubest/mbest: 1/0
    *via 10.101.2.2%default, [200/0], 00:00:58, bgp-65000, internal, tag 65000 (evpn) segid: 900002 tunnelid: 0xa650202 encap: VXLAN
 

R1# 
R1# show ipv6 route vrf all
IPv6 Routing Table for VRF "default"
'*' denotes best ucast next-hop
'**' denotes best mcast next-hop
'[x/y]' denotes [preference/metric]


IPv6 Routing Table for VRF "vxlan-900001"
'*' denotes best ucast next-hop
'**' denotes best mcast next-hop
'[x/y]' denotes [preference/metric]

4:1:0:1::/64, ubest/mbest: 1/0, attached
    *via 4:1:0:1::1, Vlan1001, [0/0], 07:55:39, direct, 
4:1:0:1::1/128, ubest/mbest: 1/0, attached
    *via 4:1:0:1::1, Vlan1001, [0/0], 07:55:39, local
4:1:0:1:2050:79ff:fe66:6801/128, ubest/mbest: 1/0, attached
    *via 4:1:0:1:2050:79ff:fe66:6801, Vlan1001, [190/0], 00:01:30, hmm
4:2:0:2::/64, ubest/mbest: 1/0, attached
    *via 4:2:0:2::1, Vlan1002, [0/0], 07:55:39, direct, 
4:2:0:2::1/128, ubest/mbest: 1/0, attached
    *via 4:2:0:2::1, Vlan1002, [0/0], 07:55:39, local
4:2:0:2:2050:79ff:fe66:6800/128, ubest/mbest: 1/0, attached
    *via 4:2:0:2:2050:79ff:fe66:6800, Vlan1002, [190/0], 00:01:31, hmm

IPv6 Routing Table for VRF "vxlan-900002"
'*' denotes best ucast next-hop
'**' denotes best mcast next-hop
'[x/y]' denotes [preference/metric]

4:3:0:3::/64, ubest/mbest: 1/0, attached
    *via 4:3:0:3::1, Vlan1003, [0/0], 07:55:39, direct, 
4:3:0:3::1/128, ubest/mbest: 1/0, attached
    *via 4:3:0:3::1, Vlan1003, [0/0], 07:55:39, local
4:3:0:3:2050:79ff:fe66:6802/128, ubest/mbest: 1/0, attached
    *via 4:3:0:3:2050:79ff:fe66:6802, Vlan1003, [190/0], 00:00:53, hmm
4:4:0:4::/64, ubest/mbest: 1/0, attached
    *via 4:4:0:4::1, Vlan1004, [0/0], 07:55:39, direct, 
4:4:0:4::1/128, ubest/mbest: 1/0, attached
    *via 4:4:0:4::1, Vlan1004, [0/0], 07:55:39, local
4:4:0:4:2050:79ff:fe66:6803/128, ubest/mbest: 1/0, attached
    *via 4:4:0:4:2050:79ff:fe66:6803, Vlan1004, [190/0], 00:00:54, hmm
4:4:0:4:2050:79ff:fe66:6807/128, ubest/mbest: 1/0, attached
    *via 4:4:0:4:2050:79ff:fe66:6807, Vlan1004, [190/0], 00:00:44, hmm

R1# 
```


### R2

```text:R2_show

R2# 
R2# show nve peers

sInterface Peer-IP          State LearnType Uptime   Router-Mac       
--------- ---------------  ----- --------- -------- -----------------
nve1      10.101.1.1       Up    CP        07:54:21 0c4b.ae77.2d07   

R2# n
R2# show nve vni
Codes: CP - Control Plane        DP - Data Plane          
       UC - Unconfigured         SA - Suppress ARP        
       SU - Suppress Unknown Unicast
 
Interface VNI      Multicast-group   State Mode Type [BD/VRF]      Flags
--------- -------- ----------------- ----- ---- ------------------ -----
nve1      900001   n/a               Up    CP   L3 [vxlan-900001]         
nve1      900002   n/a               Up    CP   L3 [vxlan-900002]         
nve1      2001001  UnicastBGP        Up    CP   L2 [1001]                 
nve1      2001002  UnicastBGP        Up    CP   L2 [1002]                 
nve1      2001003  UnicastBGP        Up    CP   L2 [1003]                 
nve1      2001004  UnicastBGP        Up    CP   L2 [1004]                 


R2# 
R2# show nve internal platform interface nve 1 detail
Printing Interface ifindex 0x49000001 detail
|======|=========================|===============|===============|=====|=====|
|Intf  |State                    |PriIP          |SecIP          |Vnis |Peers|
|======|=========================|===============|===============|=====|=====|
|nve1  |UP                       |10.101.2.2     |0.0.0.0        |6    |1    |
|======|=========================|===============|===============|=====|=====|

SW_BD/VNIs of interface nve1:
================================================
|======|======|=========================|======|====|======|========
|Sw BD |Vni   |State                    |Intf  |Type|Vrf-ID|Notified
|======|======|=========================|======|====|======|========
|101   |900001|UP                       |nve1  |CP  |3     |Yes     
|102   |900002|UP                       |nve1  |CP  |4     |Yes     
|1001  |2001001|UP                       |nve1  |CP  |0     |Yes     
|1002  |2001002|UP                       |nve1  |CP  |0     |Yes     
|1003  |2001003|UP                       |nve1  |CP  |0     |Yes     
|1004  |2001004|UP                       |nve1  |CP  |0     |Yes     
|======|======|=========================|======|====|======|========

Peers of interface nve1:
============================================

Peer_ip: 10.101.1.1
  Peer-ID   : 1
  State     : UP
  Learning  : Disabled
  TunnelID  : 0x0
  Mode      : Symmetric
  MAC       : 0000.0000.0000
  Table-ID  : 0x1
  Encap     : 0x1


R2# 
R2# show vxlan interface

show bgp l2vpn evpn

show l2route evpn mac all

show ip route vrf all

show ipv6 route vrf all

Interface       Vlan    VPL Ifindex     LTL             HW VP
=========       ====    ===========     ===             =====
Eth1/2          1001    0x533e97ff      0x1801          2050
Eth1/3          1002    0x533ea7fe      0x1802          2051
Eth1/4          1003    0x533eb7fd      0x1803          2052
Eth1/5          1004    0x533ec7fc      0x1804          2053

No port-channels configured (0x0)
R2# 
R2# show bgp l2vpn evpn
BGP routing table information for VRF default, address family L2VPN EVPN
BGP table version is 1154, Local Router ID is 10.100.2.2
Status: s-suppressed, x-deleted, S-stale, d-dampened, h-history, *-valid, >-best
Path type: i-internal, e-external, c-confed, l-local, a-aggregate, r-redist, I-injected
Origin codes: i - IGP, e - EGP, ? - incomplete, | - multipath, & - backup

   Network            Next Hop            Metric     LocPrf     Weight Path
Route Distinguisher: 10.100.1.1:33768
*>i[2]:[0]:[0]:[48]:[0050.7966.6803]:[0]:[0.0.0.0]/216
                      10.101.1.1                        100          0 i
*>i[2]:[0]:[0]:[48]:[0050.7966.6803]:[32]:[4.1.1.101]/272
                      10.101.1.1                        100          0 i
*>i[2]:[0]:[0]:[48]:[0050.7966.6803]:[128]:[4:1:0:1:2050:79ff:fe66:6801]/368
                      10.101.1.1                        100          0 i
*>i[3]:[0]:[32]:[10.101.1.1]/88
                      10.101.1.1                        100          0 i

Route Distinguisher: 10.100.1.1:33769
*>i[2]:[0]:[0]:[48]:[0050.7966.6800]:[0]:[0.0.0.0]/216
                      10.101.1.1                        100          0 i
*>i[2]:[0]:[0]:[48]:[0050.7966.6800]:[32]:[4.2.2.101]/272
                      10.101.1.1                        100          0 i
*>i[2]:[0]:[0]:[48]:[0050.7966.6800]:[128]:[4:2:0:2:2050:79ff:fe66:6800]/368
                      10.101.1.1                        100          0 i
*>i[3]:[0]:[32]:[10.101.1.1]/88
                      10.101.1.1                        100          0 i

Route Distinguisher: 10.100.1.1:33770
*>i[2]:[0]:[0]:[48]:[0050.7966.6802]:[0]:[0.0.0.0]/216
                      10.101.1.1                        100          0 i
*>i[2]:[0]:[0]:[48]:[0050.7966.6802]:[32]:[4.3.3.101]/272
                      10.101.1.1                        100          0 i
*>i[2]:[0]:[0]:[48]:[0050.7966.6802]:[128]:[4:3:0:3:2050:79ff:fe66:6802]/368
                      10.101.1.1                        100          0 i
*>i[3]:[0]:[32]:[10.101.1.1]/88
                      10.101.1.1                        100          0 i

Route Distinguisher: 10.100.1.1:33771
*>i[2]:[0]:[0]:[48]:[0050.7966.6807]:[0]:[0.0.0.0]/216
                      10.101.1.1                        100          0 i
*>i[2]:[0]:[0]:[48]:[0050.7966.6807]:[32]:[4.4.4.101]/272
                      10.101.1.1                        100          0 i
*>i[2]:[0]:[0]:[48]:[0050.7966.6807]:[128]:[4:4:0:4:2050:79ff:fe66:6803]/368
                      10.101.1.1                        100          0 i
*>i[2]:[0]:[0]:[48]:[0050.7966.6807]:[128]:[4:4:0:4:2050:79ff:fe66:6807]/368
                      10.101.1.1                        100          0 i
*>i[3]:[0]:[32]:[10.101.1.1]/88
                      10.101.1.1                        100          0 i

Route Distinguisher: 10.100.2.2:33768    (L2VNI 2001001)
*>i[2]:[0]:[0]:[48]:[0050.7966.6803]:[0]:[0.0.0.0]/216
                      10.101.1.1                        100          0 i
*>l[2]:[0]:[0]:[48]:[0050.7966.6805]:[0]:[0.0.0.0]/216
                      10.101.2.2                        100      32768 i
*>i[2]:[0]:[0]:[48]:[0050.7966.6803]:[32]:[4.1.1.101]/272
                      10.101.1.1                        100          0 i
*>i[2]:[0]:[0]:[48]:[0050.7966.6803]:[128]:[4:1:0:1:2050:79ff:fe66:6801]/368
                      10.101.1.1                        100          0 i
*>i[3]:[0]:[32]:[10.101.1.1]/88
                      10.101.1.1                        100          0 i
*>l[3]:[0]:[32]:[10.101.2.2]/88
                      10.101.2.2                        100      32768 i

Route Distinguisher: 10.100.2.2:33769    (L2VNI 2001002)
*>i[2]:[0]:[0]:[48]:[0050.7966.6800]:[0]:[0.0.0.0]/216
                      10.101.1.1                        100          0 i
*>l[2]:[0]:[0]:[48]:[0050.7966.6804]:[0]:[0.0.0.0]/216
                      10.101.2.2                        100      32768 i
*>i[2]:[0]:[0]:[48]:[0050.7966.6800]:[32]:[4.2.2.101]/272
                      10.101.1.1                        100          0 i
*>l[2]:[0]:[0]:[48]:[0050.7966.6804]:[32]:[4.2.2.102]/272
                      10.101.2.2                        100      32768 i
*>i[2]:[0]:[0]:[48]:[0050.7966.6800]:[128]:[4:2:0:2:2050:79ff:fe66:6800]/368
                      10.101.1.1                        100          0 i
*>i[3]:[0]:[32]:[10.101.1.1]/88
                      10.101.1.1                        100          0 i
*>l[3]:[0]:[32]:[10.101.2.2]/88
                      10.101.2.2                        100      32768 i

Route Distinguisher: 10.100.2.2:33770    (L2VNI 2001003)
*>i[2]:[0]:[0]:[48]:[0050.7966.6802]:[0]:[0.0.0.0]/216
                      10.101.1.1                        100          0 i
*>l[2]:[0]:[0]:[48]:[0050.7966.6806]:[0]:[0.0.0.0]/216
                      10.101.2.2                        100      32768 i
*>i[2]:[0]:[0]:[48]:[0050.7966.6802]:[32]:[4.3.3.101]/272
                      10.101.1.1                        100          0 i
*>i[2]:[0]:[0]:[48]:[0050.7966.6802]:[128]:[4:3:0:3:2050:79ff:fe66:6802]/368
                      10.101.1.1                        100          0 i
*>i[3]:[0]:[32]:[10.101.1.1]/88
                      10.101.1.1                        100          0 i
*>l[3]:[0]:[32]:[10.101.2.2]/88
                      10.101.2.2                        100      32768 i

Route Distinguisher: 10.100.2.2:33771    (L2VNI 2001004)
*>l[2]:[0]:[0]:[48]:[0050.7966.6801]:[0]:[0.0.0.0]/216
                      10.101.2.2                        100      32768 i
*>i[2]:[0]:[0]:[48]:[0050.7966.6807]:[0]:[0.0.0.0]/216
                      10.101.1.1                        100          0 i
*>l[2]:[0]:[0]:[48]:[0050.7966.6801]:[32]:[4.4.4.102]/272
                      10.101.2.2                        100      32768 i
*>i[2]:[0]:[0]:[48]:[0050.7966.6807]:[32]:[4.4.4.101]/272
                      10.101.1.1                        100          0 i
*>i[2]:[0]:[0]:[48]:[0050.7966.6807]:[128]:[4:4:0:4:2050:79ff:fe66:6803]/368
                      10.101.1.1                        100          0 i
*>i[2]:[0]:[0]:[48]:[0050.7966.6807]:[128]:[4:4:0:4:2050:79ff:fe66:6807]/368
                      10.101.1.1                        100          0 i
*>i[3]:[0]:[32]:[10.101.1.1]/88
                      10.101.1.1                        100          0 i
*>l[3]:[0]:[32]:[10.101.2.2]/88
                      10.101.2.2                        100      32768 i

Route Distinguisher: 10.100.2.2:3    (L3VNI 900001)
*>i[2]:[0]:[0]:[48]:[0050.7966.6800]:[32]:[4.2.2.101]/272
                      10.101.1.1                        100          0 i
*>i[2]:[0]:[0]:[48]:[0050.7966.6803]:[32]:[4.1.1.101]/272
                      10.101.1.1                        100          0 i
*>i[2]:[0]:[0]:[48]:[0050.7966.6800]:[128]:[4:2:0:2:2050:79ff:fe66:6800]/368
                      10.101.1.1                        100          0 i
*>i[2]:[0]:[0]:[48]:[0050.7966.6803]:[128]:[4:1:0:1:2050:79ff:fe66:6801]/368
                      10.101.1.1                        100          0 i

Route Distinguisher: 10.100.2.2:4    (L3VNI 900002)
*>i[2]:[0]:[0]:[48]:[0050.7966.6802]:[32]:[4.3.3.101]/272
                      10.101.1.1                        100          0 i
*>i[2]:[0]:[0]:[48]:[0050.7966.6807]:[32]:[4.4.4.101]/272
                      10.101.1.1                        100          0 i
*>i[2]:[0]:[0]:[48]:[0050.7966.6802]:[128]:[4:3:0:3:2050:79ff:fe66:6802]/368
                      10.101.1.1                        100          0 i
*>i[2]:[0]:[0]:[48]:[0050.7966.6807]:[128]:[4:4:0:4:2050:79ff:fe66:6803]/368
                      10.101.1.1                        100          0 i
*>i[2]:[0]:[0]:[48]:[0050.7966.6807]:[128]:[4:4:0:4:2050:79ff:fe66:6807]/368
                      10.101.1.1                        100          0 i

R2# 
R2# show l2route evpn mac all

Flags -(Rmac):Router MAC (Stt):Static (L):Local (R):Remote (V):vPC link 
(Dup):Duplicate (Spl):Split (Rcv):Recv (AD):Auto-Delete (D):Del Pending
(S):Stale (C):Clear, (Ps):Peer Sync (O):Re-Originated (Nho):NH-Override
(Pf):Permanently-Frozen

Topology    Mac Address    Prod   Flags         Seq No     Next-Hops      
----------- -------------- ------ ------------- ---------- ----------------
101         0c4b.ae77.2d07 VXLAN  Rmac          0          10.101.1.1     
102         0c4b.ae77.2d07 VXLAN  Rmac          0          10.101.1.1     
1001        0050.7966.6803 BGP    SplRcv        0          10.101.1.1     
1001        0050.7966.6805 Local  L,            0          Eth1/2         
1002        0050.7966.6800 BGP    SplRcv        0          10.101.1.1     
1002        0050.7966.6804 Local  L,            0          Eth1/3         
1003        0050.7966.6802 BGP    SplRcv        0          10.101.1.1     
1003        0050.7966.6806 Local  L,            0          Eth1/4         
1004        0050.7966.6801 Local  L,            0          Eth1/5         
1004        0050.7966.6807 BGP    SplRcv        0          10.101.1.1     
R2# 
R2# show ip route vrf all
IP Route Table for VRF "default"
'*' denotes best ucast next-hop
'**' denotes best mcast next-hop
'[x/y]' denotes [preference/metric]
'%<string>' in via output denotes VRF <string>

10.0.12.0/24, ubest/mbest: 1/0, attached
    *via 10.0.12.2, Eth1/1, [0/0], 1d01h, direct
10.0.12.2/32, ubest/mbest: 1/0, attached
    *via 10.0.12.2, Eth1/1, [0/0], 1d01h, local
10.100.1.1/32, ubest/mbest: 1/0
    *via 10.0.12.1, Eth1/1, [110/41], 07:55:10, ospf-core, intra
10.100.2.2/32, ubest/mbest: 2/0, attached
    *via 10.100.2.2, Lo0, [0/0], 1d01h, local
    *via 10.100.2.2, Lo0, [0/0], 1d01h, direct
10.101.1.1/32, ubest/mbest: 1/0
    *via 10.0.12.1, Eth1/1, [110/41], 07:55:10, ospf-core, intra
10.101.2.2/32, ubest/mbest: 2/0, attached
    *via 10.101.2.2, Lo1, [0/0], 1d01h, local
    *via 10.101.2.2, Lo1, [0/0], 1d01h, direct

IP Route Table for VRF "vxlan-900001"
'*' denotes best ucast next-hop
'**' denotes best mcast next-hop
'[x/y]' denotes [preference/metric]
'%<string>' in via output denotes VRF <string>

4.1.1.0/24, ubest/mbest: 1/0, attached
    *via 4.1.1.1, Vlan1001, [0/0], 1d01h, direct
4.1.1.1/32, ubest/mbest: 1/0, attached
    *via 4.1.1.1, Vlan1001, [0/0], 1d01h, local
4.1.1.101/32, ubest/mbest: 1/0
    *via 10.101.1.1%default, [200/0], 00:02:38, bgp-65000, internal, tag 65000 (evpn) segid: 900001 tunnelid: 0xa650101 encap: VXLAN
 
4.2.2.0/24, ubest/mbest: 1/0, attached
    *via 4.2.2.1, Vlan1002, [0/0], 1d01h, direct
4.2.2.1/32, ubest/mbest: 1/0, attached
    *via 4.2.2.1, Vlan1002, [0/0], 1d01h, local
4.2.2.101/32, ubest/mbest: 1/0
    *via 10.101.1.1%default, [200/0], 00:02:33, bgp-65000, internal, tag 65000 (evpn) segid: 900001 tunnelid: 0xa650101 encap: VXLAN
 
4.2.2.102/32, ubest/mbest: 1/0, attached
    *via 4.2.2.102, Vlan1002, [190/0], 08:02:41, hmm

IP Route Table for VRF "vxlan-900002"
'*' denotes best ucast next-hop
'**' denotes best mcast next-hop
'[x/y]' denotes [preference/metric]
'%<string>' in via output denotes VRF <string>

4.3.3.0/24, ubest/mbest: 1/0, attached
    *via 4.3.3.1, Vlan1003, [0/0], 1d01h, direct
4.3.3.1/32, ubest/mbest: 1/0, attached
    *via 4.3.3.1, Vlan1003, [0/0], 1d01h, local
4.3.3.101/32, ubest/mbest: 1/0
    *via 10.101.1.1%default, [200/0], 00:01:54, bgp-65000, internal, tag 65000 (evpn) segid: 900002 tunnelid: 0xa650101 encap: VXLAN
 
4.4.4.0/24, ubest/mbest: 1/0, attached
    *via 4.4.4.1, Vlan1004, [0/0], 1d01h, direct
4.4.4.1/32, ubest/mbest: 1/0, attached
    *via 4.4.4.1, Vlan1004, [0/0], 1d01h, local
4.4.4.101/32, ubest/mbest: 1/0
    *via 10.101.1.1%default, [200/0], 00:01:48, bgp-65000, internal, tag 65000 (evpn) segid: 900002 tunnelid: 0xa650101 encap: VXLAN
 
4.4.4.102/32, ubest/mbest: 1/0, attached
    *via 4.4.4.102, Vlan1004, [190/0], 00:01:38, hmm

R2# 
R2# show ipv6 route vrf all
IPv6 Routing Table for VRF "default"
'*' denotes best ucast next-hop
'**' denotes best mcast next-hop
'[x/y]' denotes [preference/metric]


IPv6 Routing Table for VRF "vxlan-900001"
'*' denotes best ucast next-hop
'**' denotes best mcast next-hop
'[x/y]' denotes [preference/metric]

4:1:0:1::/64, ubest/mbest: 1/0, attached
    *via 4:1:0:1::1, Vlan1001, [0/0], 1d01h, direct, 
4:1:0:1::1/128, ubest/mbest: 1/0, attached
    *via 4:1:0:1::1, Vlan1001, [0/0], 1d01h, local
4:1:0:1:2050:79ff:fe66:6801/128, ubest/mbest: 1/0
    *via ::ffff:10.101.1.1%default:IPv4, [200/0], 00:02:08, bgp-65000, internal, tag 65000 (evpn) segid 900001 tunnel: 0xa650101 encap: VXLAN

4:2:0:2::/64, ubest/mbest: 1/0, attached
    *via 4:2:0:2::1, Vlan1002, [0/0], 1d01h, direct, 
4:2:0:2::1/128, ubest/mbest: 1/0, attached
    *via 4:2:0:2::1, Vlan1002, [0/0], 1d01h, local
4:2:0:2:2050:79ff:fe66:6800/128, ubest/mbest: 1/0
    *via ::ffff:10.101.1.1%default:IPv4, [200/0], 00:02:09, bgp-65000, internal, tag 65000 (evpn) segid 900001 tunnel: 0xa650101 encap: VXLAN


IPv6 Routing Table for VRF "vxlan-900002"
'*' denotes best ucast next-hop
'**' denotes best mcast next-hop
'[x/y]' denotes [preference/metric]

4:3:0:3::/64, ubest/mbest: 1/0, attached
    *via 4:3:0:3::1, Vlan1003, [0/0], 1d01h, direct, 
4:3:0:3::1/128, ubest/mbest: 1/0, attached
    *via 4:3:0:3::1, Vlan1003, [0/0], 1d01h, local
4:3:0:3:2050:79ff:fe66:6802/128, ubest/mbest: 1/0
    *via ::ffff:10.101.1.1%default:IPv4, [200/0], 00:01:31, bgp-65000, internal, tag 65000 (evpn) segid 900002 tunnel: 0xa650101 encap: VXLAN

4:4:0:4::/64, ubest/mbest: 1/0, attached
    *via 4:4:0:4::1, Vlan1004, [0/0], 1d01h, direct, 
4:4:0:4::1/128, ubest/mbest: 1/0, attached
    *via 4:4:0:4::1, Vlan1004, [0/0], 1d01h, local
4:4:0:4:2050:79ff:fe66:6803/128, ubest/mbest: 1/0
    *via ::ffff:10.101.1.1%default:IPv4, [200/0], 00:01:32, bgp-65000, internal, tag 65000 (evpn) segid 900002 tunnel: 0xa650101 encap: VXLAN

4:4:0:4:2050:79ff:fe66:6807/128, ubest/mbest: 1/0
    *via ::ffff:10.101.1.1%default:IPv4, [200/0], 00:01:23, bgp-65000, internal, tag 65000 (evpn) segid 900002 tunnel: 0xa650101 encap: VXLAN


R2# 
```

## Wireshark

![ws.jpg](https://qiita-image-store.s3.amazonaws.com/0/228223/2ad70b38-2f98-9581-00b5-2570fcc76c1f.jpeg)

上の画像ファイルを``ws.jpg``というファイル名で保存して、下記の通り、``unzip``コマンドで解凍すると``Wireshark``のファイルが展開されます。

```text:unzip_command
$ unzip ws.jpg 
Archive:  ws.jpg
warning [ws.jpg]:  8450 extra bytes at beginning or within zipfile
  (attempting to process anyway)
  inflating: evpn_bgp_basic.pcapng 
```

このファイルでは、R1-R2間を``no shut``してから、下記のコマンドでpingが通るまでのキャプチャー結果です。

```text:PC-1
ping 4.1.1.102
ping 4.2.2.101
ping 4.2.2.102
ping 4:2:0:2:2050:79ff:fe66:6800
ping 4:1:0:1:2050:79ff:fe66:6804
ping 4:2:0:2:2050:79ff:fe66:6805
```

```text:PC-3
ping 4.3.3.102
ping 4.4.4.101
ping 4.4.4.102
ping 4:4:0:4:2050:79ff:fe66:6803
ping 4:3:0:3:2050:79ff:fe66:6806
ping 4:4:0:4:2050:79ff:fe66:6807
```

VXLANのパケットなので、IPヘッダーにUDPヘッダーが付いていることが確認できます。

L2間のpingでは、VNI(VXLAN Network ID)として``2001001``が指定されていることと、VLAN間のpingでは、``900001``が指定されていることが確認できます。

実際のキャプチャー結果を見ないと実感が湧かないですよね。