Platform: Nexus 9300/9000v ยท NX-OS 9.3(9) command model Independent clean lab; not cumulative with other lessons. === SPINE1 === hostname SPINE1 feature ospf router ospf UNDERLAY router-id 10.255.0.1 interface loopback0 ip address 10.255.0.1/32 ip router ospf UNDERLAY area 0.0.0.0 interface Ethernet1/1 no switchport mtu 9216 ip address 192.0.2.1/30 ip ospf network point-to-point ip ospf cost 40 ip router ospf UNDERLAY area 0.0.0.0 no shutdown interface Ethernet1/2 no switchport mtu 9216 ip address 192.0.2.5/30 ip ospf network point-to-point ip ospf cost 40 ip router ospf UNDERLAY area 0.0.0.0 no shutdown feature bgp nv overlay evpn router bgp 65000 router-id 10.255.0.1 address-family l2vpn evpn neighbor 10.255.0.2 remote-as 65000 update-source loopback0 address-family l2vpn evpn send-community send-community extended route-reflector-client neighbor 10.255.0.3 remote-as 65000 update-source loopback0 address-family l2vpn evpn send-community send-community extended route-reflector-client === LEAF1 === hostname LEAF1 feature ospf router ospf UNDERLAY router-id 10.255.0.2 interface loopback0 ip address 10.255.0.2/32 ip router ospf UNDERLAY area 0.0.0.0 interface Ethernet1/1 no switchport mtu 9216 ip address 192.0.2.2/30 ip ospf network point-to-point ip ospf cost 40 ip router ospf UNDERLAY area 0.0.0.0 no shutdown feature nv overlay feature vn-segment-vlan-based vlan 10 vn-segment 10010 interface Ethernet1/2 switchport switchport mode access switchport access vlan 10 spanning-tree port type edge no shutdown interface nve1 no shutdown source-interface loopback0 host-reachability protocol bgp member vni 10010 ingress-replication protocol bgp evpn vni 10010 l2 rd auto route-target import 65000:10010 route-target export 65000:10010 feature bgp nv overlay evpn router bgp 65000 router-id 10.255.0.2 address-family l2vpn evpn neighbor 10.255.0.1 remote-as 65000 update-source loopback0 address-family l2vpn evpn send-community send-community extended feature interface-vlan fabric forwarding anycast-gateway-mac 0000.2222.3333 vlan 2000 vn-segment 100000 vrf context CUSTOMER vni 100000 rd auto address-family ipv4 unicast route-target both 65000:100000 route-target both 65000:100000 evpn interface Vlan2000 no shutdown vrf member CUSTOMER ip forward interface Vlan10 no shutdown vrf member CUSTOMER ip address 10.10.10.254/24 fabric forwarding mode anycast-gateway interface nve1 member vni 100000 associate-vrf ip prefix-list TENANT-CONNECTED seq 10 permit 10.10.10.0/24 route-map TENANT-DIRECT permit 10 match ip address prefix-list TENANT-CONNECTED router bgp 65000 vrf CUSTOMER address-family ipv4 unicast advertise l2vpn evpn redistribute direct route-map TENANT-DIRECT === LEAF2 === hostname LEAF2 feature ospf router ospf UNDERLAY router-id 10.255.0.3 interface loopback0 ip address 10.255.0.3/32 ip router ospf UNDERLAY area 0.0.0.0 interface Ethernet1/1 no switchport mtu 9216 ip address 192.0.2.6/30 ip ospf network point-to-point ip ospf cost 40 ip router ospf UNDERLAY area 0.0.0.0 no shutdown feature nv overlay feature vn-segment-vlan-based vlan 20 vn-segment 10020 interface Ethernet1/2 switchport switchport mode access switchport access vlan 20 spanning-tree port type edge no shutdown interface nve1 no shutdown source-interface loopback0 host-reachability protocol bgp member vni 10020 ingress-replication protocol bgp evpn vni 10020 l2 rd auto route-target import 65000:10020 route-target export 65000:10020 feature bgp nv overlay evpn router bgp 65000 router-id 10.255.0.3 address-family l2vpn evpn neighbor 10.255.0.1 remote-as 65000 update-source loopback0 address-family l2vpn evpn send-community send-community extended feature interface-vlan fabric forwarding anycast-gateway-mac 0000.2222.3333 vlan 2000 vn-segment 100000 vrf context CUSTOMER vni 100000 rd auto address-family ipv4 unicast route-target both 65000:100000 route-target both 65000:100000 evpn interface Vlan2000 no shutdown vrf member CUSTOMER ip forward interface Vlan20 no shutdown vrf member CUSTOMER ip address 10.10.20.254/24 fabric forwarding mode anycast-gateway interface nve1 member vni 100000 associate-vrf ip prefix-list TENANT-CONNECTED seq 10 permit 10.10.20.0/24 route-map TENANT-DIRECT permit 10 match ip address prefix-list TENANT-CONNECTED router bgp 65000 vrf CUSTOMER address-family ipv4 unicast advertise l2vpn evpn redistribute direct route-map TENANT-DIRECT