! Pine Networks - SONiC EVPN-VXLAN Configuration
! Leaf-2 - Enterprise SONiC (sonic-cli)
! Paste in configuration mode: sonic-cli -> configure terminal
!
hostname Leaf-2
!
interface Loopback 0
 ip address 10.0.0.2/32
 exit
!
interface Ethernet 1
 description "Link to Spine-1"
 ip address 1.1.1.3/31
 no shutdown
 exit
!
interface Ethernet 2
 description "Link to Spine-2"
 ip address 1.1.1.11/31
 no shutdown
 exit
!
interface Vlan 10
 description "Green-Servers VLAN"
 exit
!
interface Ethernet 3
 description "Link to PC-2"
 switchport access Vlan 10
 no shutdown
 exit
!
interface vxlan vtep2
 source-ip 10.0.0.2
 map vni 100010 vlan 10
 exit
!
router bgp 65102
 router-id 10.0.0.2
 address-family ipv4 unicast
  redistribute connected
  exit
 address-family l2vpn evpn
  advertise-all-vni
  exit
 neighbor 1.1.1.2
  remote-as 65000
  address-family ipv4 unicast
   activate
   exit
  address-family l2vpn evpn
   activate
   exit
  exit
 neighbor 1.1.1.10
  remote-as 65000
  address-family ipv4 unicast
   activate
   exit
  address-family l2vpn evpn
   activate
   exit
  exit
 exit
!
end
