#configure terminal | Enter configure mode. |
(config)#interface lo | Enter interface mode for loopback. |
(config-if)#ip address 33.33.33.0/31 secondary | Assign secondary IP address. |
(config-if)#exit | Exit interface mode. |
(config)#mac vrf vrf1 | Create mac routing/forwarding instance with vrf1 name and enter into VRF mode |
(config-vrf)# rd 100:11 | Assign RD value |
(config-vrf)# route-target export 200:11 | Assign route-target value for export |
(config-vrf)# route-target import 400:11 | Assign route-target value for import |
(config-vrf)#exit | Exit VRF configuration mode |
(config)#interface xe37 | Enter interface mode for xe37 |
(config-if)#ip address 11.11.11.0/31 | Assign IP address in /31 mask. |
(config-if)#exit | Exit interface mode. |
(config)#interface xe15 | Enter interface mode for xe15 |
(config-if)#switchport | Make it L2 interface |
(config-if)#exit | Exit interface mode. |
(config)#router bgp 100 | Enter BGP router mode |
(config-router)# bgp router-id 1.1.1.1 | Assign BGP router ID |
(config-router)#neighbor 11.11.11.1 remote-as 200 | Specify a neighbor router with peer IP address and remote-as defined |
(config-router)#neighbor 11.11.11.1 fall-over bfd | Configure single-hop BFD session for its BGP peer |
(config-router)#address-family ipv4 unicast | Enter into ipv4 unicast address family |
(config-router-af)#network 33.33.33.0/31 | Advertise loopback network into BGP for VTEP ID reachability |
(config-router-af)#exit-address-family | Exit ipv4 unicast address family mode |
(config-router)#address-family l2vpn evpn | Enter into l2vpn address family mode |
(config-router-af)#neighbor 11.11.11.1 activate | Activate the peer into address family mode |
(config-router-af)#exit-address-family | Exit l2vpn address family mode |
(config-router)#exit | Exit BGP router mode |
(config)# hardware-profile filter vxlan enable | Enable hardware profile for vxlan |
(config)#hardware-profile statistics ac-lif enable | Enable ac-lif for VxLAN access-if port counters |
(config)#nvo vxlan enable | Enable VXLAN |
(config)#nvo vxlan vtep-ip-global 33.33.33.0 | Configure Source vtep-ip-global configuration |
(config)#nvo vxlan id 1 ingress-replication inner-vid-disabled | Configure VXLAN Network identifier with/without inner-vid-disabled configure and enter into VXLAN tenant mode |
(config-nvo)#vxlan host-reachability-protocol evpn-bgp vrf1 | Assign VRF for evpn-bgp to carry EVPN route |
(config-nvo)#exit | Exit VXLAN tenant mode. |
(config)#nvo vxlan access-if port-vlan xe15 1000 inner-vlan 2000 | Enable port-vlan mapping i.e. access port to outer-vlan (SVLAN) and inner-vlan (CVLAN) mapping |
(config-nvo-acc-if)#map vnid 1 | Map VXLAN Identified to access-port for VXLAN |
(config-nvo-acc-if)#exit | Exit VXLAN access-interface mode |
(config)#commit | Commit the candidate configuration to the running configuration |
(config)#exit | Exit configuration mode |
#configure terminal | Enter configure mode. |
(config)#interface xe13/3 | Enter interface mode for xe13/3 |
(config-if)#ip address 11.11.11.1/31 | Assign IP address in /31 mask. |
(config-if)#exit | Exit interface mode. |
(config)#interface xe13/1 | Enter interface mode for xe13/1 |
(config-if)#ip address 12.12.12.1/31 | Assign IP address in /31 mask. |
(config-if)#exit | Exit interface mode |
(config)#router bgp 200 | Enter BGP router mode |
(config-router)# bgp router-id 2.2.2.2 | Assign BGP router ID |
(config-router)#neighbor 11.11.11.0 remote-as 100 | Specify a neighbor router with peer ip address and remote-as defined |
(config-router)#neighbor 11.11.11.0 fall-over bfd | Configure single-hop BFD session for its BGP peer |
(config-router)#neighbor 12.12.12.0 remote-as 300 | Specify a neighbor router with peer ip address and remote-as defined |
(config-router)#neighbor 12.12.12.0 fall-over bfd | Configure single-hop BFD session for its BGP peer |
(config-router)#address-family l2vpn evpn | Enter into l2vpn address family mode |
(config-router-af)#neighbor 11.11.11.0 activate | Activate the peer into address family mode |
(config-router-af)#neighbor 12.12.12.0 activate | Activate the peer into address family mode |
(config-router-af)#exit-address-family | Exit l2vpn address family mode |
(config-router)#commit | Commit the candidate configuration to the running configuration |
(config-router)#exit | Exit BGP router mode |
#configure terminal | Enter configure mode. |
(config)#interface lo | Enter interface mode for loopback. |
(config-if)#ip address 34.34.34.0/31 secondary | Assign secondary IP address. |
(config-if)#exit | Exit interface mode. |
(config)#mac vrf vrf1 | Create mac routing/forwarding instance with vrf1 name and enter into vrf mode |
(config-vrf)#rd 300:11 | Assign RD value |
(config-vrf)#route-target export 400:11 | Assign route-target value for export |
(config-vrf)#route-target import 200:11 | Assign route-target value for import |
(config-vrf)#exit | Exit vrf configuration mode |
(config)#interface xe13 | Enter interface mode for xe13 |
(config-if)#ip address 12.12.12.0/31 | Assign IP address in /31 mask. |
(config-if)#exit | Exit interface mode. |
(config)#interface xe6 | Enter interface mode for xe6 |
(config-if)#switchport | Make it L2 interface |
(config-if)#exit | Exit interface mode. |
(config)#router bgp 300 | Enter BGP router mode |
(config-router)# bgp router-id 3.3.3.3 | Assign BGP router ID |
(config-router)#neighbor 12.12.12.1 remote-as 200 | Specify a neighbor router with peer ip address and remote-as defined |
(config-router)#neighbor 12.12.12.1 fall-over bfd | Configure single-hop BFD session for its BGP peer |
(config-router)#address-family ipv4 unicast | Enter into ipv4 unicast address family |
(config-router-af)#network 34.34.34.0/31 | Advertise loopback network into BGP for VTEP ID reachability |
(config-router-af)#exit-address-family | Exit ipv4 unicast address family mode |
(config-router)#address-family l2vpn evpn | Enter into l2vpn address family mode |
(config-router-af)#neighbor 12.12.12.1 activate | Activate the peer into address family mode |
(config-router-af)#exit-address-family | Exit l2vpn address family mode |
(config-router)#exit | Exit BGP router mode |
(config)# hardware-profile filter vxlan enable | Enable hardware profile for vxlan |
(config)#hardware-profile statistics ac-lif enable | Enable ac-lif for VxLAN access-if port counters |
(config)#nvo vxlan enable | Enable VXLAN |
(config)#nvo vxlan vtep-ip-global 34.34.34.0 | Configure Source vtep-ip-global configuration |
(config)#nvo vxlan id 1 ingress-replication inner-vid-disabled | Configure VXLAN Network identifier with/without inner-vid-disabled configure and enter into VXLAN tenant mode |
(config-nvo)#vxlan host-reachability-protocol evpn-bgp vrf1 | Assign VRF for evpn-bgp to carry EVPN route |
(config-nvo)#exit | Exit VXLAN tenant mode. |
(config)#nvo vxlan access-if port-vlan xe6 1000 inner-vlan 2000 | Enable port-vlan mapping i.e. access port to outer-vlan (SVLAN) and inner-vlan (CVLAN) mapping |
(config-nvo-acc-if)#map vnid 1 | Map VXLAN Identified to access-port for VXLAN |
(config-nvo-acc-if)#exit | Exit VXLAN access-interface mode |
(config)#commit | Commit the candidate configuration to the running configuration |
(config)#exit | Exit configuration mode |