device# configure terminal
device(config)# interface loopback 1
device(config-Loopback-1)# ip ospf area 0 device(config-Loopback-1)# ip address 6.6.100.6/32 device(config-Loopback-1)# no shutdown
interface Loopback 2 ip ospf area 0 ip address 6.7.100.67/32 no shutdown
device(config)# vlan 11-12
device(config)# interface ethernet 0/5
device(conf-if-eth-0/5)# switchport
device(conf-if-eth-0/5)# switchport mode trunk
device(conf-if-eth-0/5)# no shutdown
device(conf-if-eth-0/5)# logical-interface ethernet 0/5.1
device(conf-if-eth-lif-0/5.1)# vlan 10 inner-vlan 1
device(conf-if-eth-lif-0/5.1)# no shutdown
logical-interface ethernet 0/5.2 vlan 10 inner-vlan 2
device(config)# bridge-domain 1 p2mp
device(config-bridge-domain-1)# logical-interface ethernet 0/5.1
device(config-bridge-domain-1)# local-switching
device(config-bridge-domain-1)# bpdu-drop-enable
Vc_mode = RAW Mode mtu = 1500 mtu_enforce = NO pw_profile_control_word = 0 pw_profile_flow_label = 0
bridge-domain 2 p2mp logical-interface ethernet 0/5.2 pw-profile default bpdu-drop-enable local-switching
device(config)# overlay-gateway gw1
device(config-overlay-gw-gw1)# type layer-2-extension
device(config-overlay-gw-gw1)# ip interface loopback 2
device(config-overlay-gw-gw1)# map vni auto
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)# cluster c1
device(config-cluster-c1)# peer-interface port-channel 1
device(config-cluster-c1)# peer 7.7.100.7
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