8 SDN EVPN Configuration Practice Guide
8 SDN EVPN Configuration Practice Guide
8 SDN EVPN Configuration Practice Guide
Networking Requirements
Configuration Roadmap
The configuration roadmap is as follows:
Data Preparation
Interior Gateway Protocol (IGP) running between devices (OSPF in this example)
EVPN instances' RDs (11:1, 12:1, 21:1, 23:1, and 31:2) and RTs (1:1 and 2:2)
Precautions
Procedure
<HUAWEI> system-view
[*HUAWEI] commit
[*Device1-LoopBack1] quit
[*Device1-10GE1/0/1] quit
[*Device1] ospf
[*Device1-ospf-1] area 0
[*Device1-ospf-1-area-0.0.0.0] quit
[*Device1-ospf-1] quit
[*Device1] commit
# After OSPF is configured, the devices can use OSPF to learn the IP addresses
of each other's loopback interfaces and successfully ping each other. The following
example shows the command output on Device1 after it pings Device3:
5 packet(s) received
2. Configure the VXLAN tunnel mode and enable the VXLAN ACL extension function.
(Perform this step on the CE6870EI/CE6875EI only.)
[*Device1] commit
NOTE:
After modifying the VXLAN tunnel mode or enabling the VXLAN ACL extension
function, save the configuration and restart the device to make the configuration
take effect. Restart the device immediately or after completing all the
configurations.
[~Device1] bridge-domain 10
[*Device1-bd10] quit
[*Device1-10GE1/0/2.1] bridge-domain 10
[*Device1-10GE1/0/2.1] quit
[*Device1] bridge-domain 20
[*Device1-bd20] quit
[*Device1-10GE1/0/3.1] bridge-domain 20
[*Device1-10GE1/0/3.1] quit
[*Device1] commit
4. Configure EVPN as the VXLAN control plane on Device1, Device2, and Device3.
[*Device1] commit
[*Device1-bgp-af-evpn] quit
[*Device1-bgp] quit
[*Device1] commit
[~Device1] bridge-domain 10
[*Device1-bd10] evpn
[*Device1-bd10-evpn] quit
[*Device1-bd10] quit
[*Device1] bridge-domain 20
[*Device1-bd20] evpn
[*Device1-bd20-evpn] route-distinguisher 12:1
[*Device1-bd20-evpn] quit
[*Device1-bd20] quit
[*Device1] commit
[*Device1-Nve1] quit
[*Device1] commit
After completing the configurations, run the display vxlan tunnel and display
vxlan vni commands on Device1, Device2, and Device3 to check the VXLAN
tunnel and VNI information, respectively. The VNIs are Up. The following example
shows the command output on Device1.
Uptime
---------------------------------------------------------------------------
--------
0035h21m
0036h21m
---------------------------------------
5010 10 up
5020 20 up
Configuration Files
#
sysname Device1
#
evpn-overlay enable
#
bridge-domain 10
evpn
route-distinguisher 11:1
#
bridge-domain 20
evpn
route-distinguisher 12:1
#
interface 10GE1/0/1
undo portswitch
#
bridge-domain 10
#
bridge-domain 20
#
interface LoopBack1
interface Nve1
source 2.2.2.2
#
bgp 100
#
ipv4-family unicast
#
l2vpn-family evpn
policy vpn-target
#
ospf 1
area 0.0.0.0
#
return
#
sysname Device1
#
evpn-overlay enable
#
bridge-domain 10
evpn
route-distinguisher 11:1
#
bridge-domain 20
evpn
route-distinguisher 12:1
#
interface 10GE1/0/1
undo portswitch
#
bridge-domain 10
#
bridge-domain 20
#
interface LoopBack1
#
interface Nve1
source 2.2.2.2
#
bgp 100
#
ipv4-family unicast
#
l2vpn-family evpn
policy vpn-target
#
ospf 1
area 0.0.0.0
#
return
#
sysname Device2
#
evpn-overlay enable
#
bridge-domain 10
evpn
route-distinguisher 21:1
#
bridge-domain 20
evpn
route-distinguisher 23:1
#
interface Vbdif10
#
interface Vbdif20
#
interface 10GE1/0/1
undo portswitch
#
interface 10GE1/0/2
undo portswitch
#
interface LoopBack1
#
interface Nve1
source 3.3.3.3
#
bgp 100
#
ipv4-family unicast
#
l2vpn-family evpn
policy vpn-target
#
ospf 1
area 0.0.0.0
#
return
sysname Device2
#
evpn-overlay enable
#
bridge-domain 10
evpn
route-distinguisher 21:1
#
bridge-domain 20
evpn
route-distinguisher 23:1
#
interface Vbdif10
#
interface Vbdif20
#
interface 10GE1/0/1
undo portswitch
#
interface 10GE1/0/2
undo portswitch
ip address 192.168.2.1 255.255.255.0
#
interface LoopBack1
#
interface Nve1
source 3.3.3.3
#
bgp 100
#
ipv4-family unicast
#
l2vpn-family evpn
policy vpn-target
#
ospf 1
area 0.0.0.0
#
return
#
sysname Device2
#
evpn-overlay enable
#
bridge-domain 10
evpn
route-distinguisher 21:1
#
bridge-domain 20
evpn
route-distinguisher 23:1
#
interface Vbdif10
#
interface Vbdif20
#
interface Eth-Trunk1
#
interface 10GE1/0/1
undo portswitch
#
interface 10GE1/0/2
undo portswitch
#
interface 10GE1/0/4
eth-trunk 1
#
interface LoopBack1
#
interface Nve1
source 3.3.3.3
#
bgp 100
#
ipv4-family unicast
#
l2vpn-family evpn
policy vpn-target
peer 2.2.2.2 enable
#
ospf 1
area 0.0.0.0
#
return
#
sysname Device3
#
#
evpn-overlay enable
#
bridge-domain 20
evpn
route-distinguisher 31:2
#
interface 10GE1/0/1
undo portswitch
#
#
interface LoopBack1
#
interface Nve1
source 4.4.4.4
#
bgp 100
#
ipv4-family unicast
#
l2vpn-family evpn
policy vpn-target
#
ospf 1
area 0.0.0.0
#
return
sysname Device3
#
evpn-overlay enable
#
bridge-domain 20
evpn
route-distinguisher 31:2
#
interface 10GE1/0/1
undo portswitch
#
bridge-domain 20
#
interface LoopBack1
#
interface Nve1
source 4.4.4.4
#
bgp 100
#