Step 1
|
configure terminal
switch# configure terminal
|
Enters global configuration mode.
|
Step 2
|
feature mpls l3vpn
switch# feature mpls l3vpn
|
Enables the MPLS Layer 3 VPN feature.
|
Step 3
|
feature mpls ldp
|
Enables the MPLS Label Distribution Protocol (LDP).
|
Step 4
|
nv overlay evpn
switch(config)# nv overlay evpn
|
Enables the EVPN control plane for VXLAN.
|
Step 5
|
router bgp number
switch(config)# router bgp 100
|
Configures BGP. The value of the number argument is from 1 to 4294967295.
|
Step 6
|
address-family ipv4 unicast
switch(config-router)# address-family ipv4 unicast
|
Configures the address family for IPv4.
|
Step 7
|
redistribute direct route-map route-map-name
switch(config-router-af)# redistribute direct route-map passall
|
Configures the directly connected route map.
|
Step 8
|
exit
switch(config-router-af)# exit
|
|
Step 9
|
address-family l2vpn evpn
switch(config-router)# address-family l2vpn evpn
|
Configures the L2VPN address family.
|
Step 10
|
exit
switch(config-router-af)# exit
|
|
Step 11
|
neighbor address remote-as number
switch(config-router)# neighbor 108.108.108.108 remote-as 22
|
Configures a BGP neighbor. The range of the number argument is from 1 to 65535.
|
Step 12
|
update-source type/id
switch(config-router-neighbor)# update-source loopback100
|
Specifies the source of the BGP session and updates.
|
Step 13
|
ebgp-multihop ttl-value
switch(config-router-neighbor)# ebgp-multihop 10
|
Specifies the multihop TTL for the remote peer. The range of ttl-value is from 2 to 255.
|
Step 14
|
address-family ipv4 unicast
switch(config-router-neighbor)# address-family ipv4 unicast
|
Configures the unicast sub-address family.
|
Step 15
|
send-community extended
switch(config-router-neighbor-af)# send-community extended
|
Configures the community attribute for this neighbor.
|
Step 16
|
exit
switch(config-router-neighbor-af)# exit
|
|
Step 17
|
address-family vpnv4 unicast
switch(config-router-neighbor)# address-family vpnv4 unicast
|
Configures the address family for IPv4.
|
Step 18
|
send-community extended
switch(config-router)# send-community extended
|
Sends the extended community attribute.
|
Step 19
|
import l2vpn evpn reoriginate
switch(config-router)# import l2vpn evpn reoriginate
|
Reoriginates the route with a new RT.
|
Step 20
|
neighbor address remote-as number
switch(config-router)# neighbor 175.175.175.2 remote-as 1
|
|
Step 21
|
address-family ipv4 unicast
switch(config-router)# address-family ipv4 unicast
|
Configures the address family for IPv4.
|
Step 22
|
send-community extended
switch(config-router)# send-community extended
|
Configures the community for BGP neighbors.
|
Step 23
|
address-family ipv6 unicast
switch(config-router)# address-family ipv6 unicast
|
Configures the IPv6 unicast address family, which is required for IPv6 over VXLAN with an IPv4 underlay.
|
Step 24
|
send-community extended
switch(config-router)# send-community extended
|
Configures the community for BGP neighbors.
|
Step 25
|
address-family l2vpn evpn
switch(config-router)# address-family l2vpn evpn
|
Configures the L2VPN address family.
|
Step 26
|
send-community extended
switch(config-router)# send-community extended
|
Configures the community for BGP neighbors.
|
Step 27
|
import vpn unicast reoriginate
switch(config-router)# import vpn unicast reoriginate
|
Reoriginates the route with a new RT.
|