15
• Configure the interconnection interfaces between Border 1 and DCI switch to enable Layer 3
interconnect between the local and remote VTEPs.
[border1] interface Ten-GigabitEthernet1/0/17
[border1-Ten-GigabitEthernet1/0/17] port link-mode route
[border1-Ten-GigabitEthernet1/0/17] ip address 12.1.1.1 255.255.255.252
[border1-Ten-GigabitEthernet1/0/17] ospf network-type p2p
[border1-Ten-GigabitEthernet1/0/17] ospf 1 area 0.0.0.0
[border1-Ten-GigabitEthernet1/0/17] quit
• Configure BGP:
The command descriptions are as follows:
peer ebgp as-number 1000: 1000, AS number of remote DC.
peer 10.1.2.8 group ebgp: 10.1.2.8 is the VTEP IP address of Border 1 (DC 2) (real
IP address of the device as a DR member device).
peer 10.1.2.9 group ebgp: 10.1.2.9 is the VTEP IP address of Border 2 (DC 2) (real IP
address of the device as a DR member device).
peer ebgp route-policy SDN_POLICY_DCI_L3CONNECT export: The
SDN_POLICY_DCI_L3CONNECT name is fixed and when the Layer 3 DC
interconnection is created, the controller issues the route policy. Verify the configuration by
executing the display current-configuration configuration route-policy
command on the device.
peer { group-name } re-originated [ imet | mac-ip ] replace-rt:
Regenerate the EVPN route.
[border1] bgp 100
[border1-bgp-default] group ebgp external
[border1-bgp-default] peer ebgp as-number 1000
[border1-bgp-default] peer ebgp connect-interface LoopBack0
[border1-bgp-default] peer ebgpebgp-max-hop 64
[border1-bgp-default] peer 10.1.2.8 group ebgp
[border1-bgp-default] peer 10.1.2.9 group ebgp
[border1-bgp-default] address-family l2vpn evpn
[border1-bgp-default-evpn] nexthopevpn-drni group-address
[border1-bgp-default-evpn] peer ebgp enable
[border1-bgp-default-evpn] peer ebgp route-policy SDN_POLICY_DCI_L3CONNECT export
[border1-bgp-default-evpn] peer ebgp router-mac-local dci
[border1-bgp-default-evpn] peer ebgp re-originated replace-rt
[border1-bgp-default-evpn] peer ebgp re-originated mac-IP replace-r
[border1-bgp-default-evpn] peer ebgp re-originated imet replace-rt
[border1-bgp-default-evpn] peer evpn re-originated replace-rt
[border1-bgp-default-evpn] peer evpn re-originated mac-IP replace-rt
[border1-bgp-default-evpn] peer evpn re-originated imet replace-rt
[border1-bgp-default-evpn] quit
[border1-bgp-default] quit
• Configure a route policy:
Execute the route-policy SDN_PREDEF_deny_default command on the ED device to filter
the default routes to prevent loops. This route policy will not be restored by the controller, and
is used when a border device creates a VPN at the creation of overlay Layer 3 DC
interconnect (with firewall traversal).
[border1] ip prefix-list SDN_PREDEF_default index 10 permit 0.0.0.0 0
[border1] ipv6 prefix-list SDN_PREDEF_default index 10 permit :: 0