device# configure terminal
device(config)# overlay-gateway GW1
device(config-overlay-gw-GW1)# map vlan 5 vni 5000
device(config-overlay-gw-GW1)# map bridge-domain 1 vni 2000
device(config-overlay-gw-GW1)# ip interface loopback 1
device(config-overlay-gw-GW1)# activate
device(config)# evpn
device(config-evpn-default)# route-target both auto
device(config-evpn-default)# rd auto
device(config-evpn-default)# bridge-domain add 1-2
device(config-evpn-default)# vlan add 11-12
device(config)# router bgp
device(config-bgp-router)# neighbor 7.7.100.7 remote-as 100
device(config-bgp-router)# neighbor 7.7.100.7 update-source loopback 1
neighbor 8.8.100.8 remote-as 100 neighbor 8.8.100.8 update-source loopback 1
device(config-bgp-router)# address-family ipv4 unicast device(config-bgp-router)# address-family ipv6 unicast
device(config-bgp-router)# address-family l2vpn evpn
device(config-bgp-evpn)# neighbor 8.8.100.8 encapsulation vxlan
device(config-bgp-evpn)# neighbor 8.8.100.8 activate
device# show overlay-gateway Overlay Gateway "GW1", ID 1, Admin state up IP address 3.3.3.3 (loopback 1), Vrfdefault-vrf Number of tunnels 1 Packet count: RX 17909 TX 1247 Byte count : RX (500125) TX 356626
device# show tunnel 61441 Tunnel 61441, mode VXLAN Ifindex 0x7c00f001, Admin state up, Operstate up Source IP 3.3.3.3, Vrf: default-vrf Destination IP 1.1.1.1 Active next hops on node 1: IP: 4.4.4.5, Vrf: default-vrf Egress L3 port: Ve45, Outer SMAC: 609c.9f5a.4415 Outer DMAC: 609c.9f5a.0015, ctag: 0 BUM forwarder: yes
device# show vlan 5 VLAN Name State Ports Classification (R)-RSPAN (u)-Untagged (t)-Tagged ================ =============== ========================== =============== ==================== 5 VLAN05 ACTIVE Eth 2/1(t) Eth 2/5(t) tu61441 vni5000
device# show mac-address-table VlanId/BDId Mac-address Type State Ports/LIF/PW 35 (V) 609c.9f5a.5b15 Dynamic Active Po 35 45 (V) 609c.9f5a.4415 Dynamic Active Po 45 5 (V) 0000.0400.0011 Dynamic Active tu61441 5 (V) 0000.0500.0011 Dynamic Active Eth 0/5 5 (V) 0000.0400.0011 Dynamic Active tu61441 5 (V) 0000.0500.0011 Dynamic Active Eth 0/5 Total MAC addresses : 6 device#