5. 华三VSR镜像实现Vxlan通信
拓扑如下,vsr镜像如何实验参考EVPN专栏中的介绍文档.
5.1 配置
[CE1-Leaf1]dis current-configuration interface
#
interface NULL0
#
interface LoopBack0
ip address 1.1.1.1 255.255.255.255
#
interface GigabitEthernet1/0
ip address 172.16.1.11 255.255.255.0
#
interface GigabitEthernet2/0
xconnect vsi vpna
#
interface GigabitEthernet3/0
ip address 12.1.1.1 255.255.255.0
#
interface Tunnel1 mode vxlan
source 1.1.1.1
destination 3.3.3.3
#
return
[CE1-Leaf1]dis cu
[CE1-Leaf1]dis current-configuration
#
version 7.1.064, Release 0621P18
#
sysname CE1-Leaf1
#
ospf 1 router-id 1.1.1.1
area 0.0.0.0
network 1.1.1.1 0.0.0.0
network 12.1.1.0 0.0.0.255
#
l2vpn enable
#
vsi vp
#
vsi vpna
vxlan 10
tunnel 1
#
interface NULL0
#
interface LoopBack0
ip address 1.1.1.1 255.255.255.255
#
interface GigabitEthernet1/0
ip address 172.16.1.11 255.255.255.0
#
interface GigabitEthernet2/0
xconnect vsi vpna
#
interface GigabitEthernet3/0
ip address 12.1.1.1 255.255.255.0
#
interface Tunnel1 mode vxlan
source 1.1.1.1
destination 3.3.3.3
line vty 0 63
authentication-mode scheme
user-role network-operator
#
ssh server enable
ssh user root service-type all authentication-type password
#
local-user root class manage
password hash $h$6$FtFbaXWl2xpM5c3x$IOb9EtUTjt9WP57jh4M23f/bwxrkU6/7VG9R/ZSjZy84cBicOxG8iCTw/YG9FbxaQDxQIJ43TEpVnitgu3D4ug==
service-type ssh
authorization-attribute user-role network-admin
authorization-attribute user-role network-operator
#
return
[CE2-spine1]dis current-configuration
#
version 7.1.064, Release 0621P18
#
sysname CE2-spine1
#
ospf 1 router-id 2.2.2.2
area 0.0.0.0
network 2.2.2.2 0.0.0.0
network 12.1.1.0 0.0.0.255
network 13.1.1.0 0.0.0.255
#
mirroring-group 1 local
#
password-recovery enable
#
vlan 1
#
irf-port
#
interface NULL0
#
interface LoopBack0
ip address 2.2.2.2 255.255.255.255
#
interface GigabitEthernet1/0
ip address 172.16.1.12 255.255.255.0
mirroring-group 1 monitor-port
#
interface GigabitEthernet2/0
ip address 12.1.1.2 255.255.255.0
mirroring-group 1 mirroring-port both
#
interface GigabitEthernet3/0
ip address 13.1.1.2 255.255.255.0
#
line vty 0 63
authentication-mode scheme
user-role network-operator
#
ssh server enable
#
local-user root class manage
password hash $h$6$jkUroDXWnXR6FEun$4ysoev1VadfkGdkVGekxyM2aZYSOyJeV+dFNmrUIJSR3F8/NqgPPR8Q2a3g4gGLBytpCKc4kpKF4Tnf0jc+/BA==
service-type ssh
authorization-attribute user-role network-admin
authorization-attribute user-role network-operator
#
[CE3-Leaf2]dis current-configuration
#
version 7.1.064, Release 0621P18
#
sysname CE3-Leaf2
#
ospf 1 router-id 3.3.3.3
area 0.0.0.0
network 3.3.3.3 0.0.0.0
network 13.1.1.0 0.0.0.255
#
password-recovery enable
#
vlan 1
#
irf-port
#
l2vpn enable
#
vsi vpna
vxlan 10
tunnel 1
#
interface NULL0
#
interface LoopBack0
ip address 3.3.3.3 255.255.255.255
#
interface GigabitEthernet1/0
ip address 172.16.1.13 255.255.255.0
#
interface GigabitEthernet2/0
xconnect vsi vpna
#
interface GigabitEthernet3/0
ip address 13.1.1.3 255.255.255.0
#
interface Tunnel1 mode vxlan
source 3.3.3.3
destination 1.1.1.1
#
line vty 0 63
authentication-mode scheme
user-role network-operator
#
ssh server enable
#
#
local-user root class manage
password hash $h$6$UHi328UKNUr1Lc7/$Mn6+qb2BXcIgbedpolSSkcyGyOOLvoWz0EOrwH/k9sLJ1J1YDzKQnHaOGDrDb5etdMafJuyK+Z38SpwU4+oDhg==
service-type ssh
authorization-attribute user-role network-admin
authorization-attribute user-role network-operator
#
return
查看vxlan隧道建立情况
查看虚拟交换实例信息
ping测试
arp报文
icmp报文