[~HUAWEI]display bridge-domain
The total number of bridge-domains is : 1
--------------------------------------------------------------------------------
MAC_LRN: MAC learning; STAT: Statistics; SPLIT: Split-horizon;
BC: Broadcast; MC: Unknown multicast; UC: Unknown unicast;
*down: Administratively down; FWD: Forward; DSD: Discard;
--------------------------------------------------------------------------------
BDID State MAC-LRN STAT BC MC UC SPLIT Description
--------------------------------------------------------------------------------
10 up enable disable FWD FWD FWD disable
[~HUAWEI]dis
[~HUAWEI]display vx
[~HUAWEI]display vxlan tu
[~HUAWEI]display vxlan tunnel
Number of vxlan tunnel : 1
Tunnel ID Source Destination State Type
--------------------------------------------------------------
4026531841 192.168.56.222 192.168.56.101 up static
[~HUAWEI]display vxlan peer
Number of peers : 1
Vni ID Source Destination Type
--------------------------------------------------------------
1234 192.168.56.222 192.168.56.101 static
在linux server上创建一个 type 为 vxlan的接口,VNI为1234,同时在系统中配置桥接转发表,通过vxlan10接口单播泛洪流量至CE交换机接口地址。
[root-localhost ~]# ip link list vxlan10
5: vxlan10: mtu 1450 qdisc noqueue state UNKNOWN mode DEFAULT qlen 1000
link/ether 76:6e:a8:04:53:c2 brd ff:ff:ff:ff:ff:ff
[root-localhost ~]# bridge -d fdb vxlan10
Command "vxlan10" is unknown, try "bridge fdb help".
[root@localhost ~]# bridge -d fdb
01:00:5e:00:00:01 dev ens32 self permanent
33:33:00:00:00:01 dev ens32 self permanent
33:33:ff:82:70:4f dev ens32 self permanent
01:00:5e:00:00:fb dev ens32 self permanent
00:00:00:00:00:00 dev vxlan10 dst 192.168.56.222 self permanent
33:33:00:00:00:01 dev br10 self permanent
在ensp中使用连接CE的PC平linux server 后端的PC,同时查看PC的ARP表:
Welcome to use PC Simulator!
PC>ipconfig
Link local IPv6 address...........: fe80::5689:98ff:fe0a:273b
IPv6 address......................: :: / 128
IPv6 gateway......................: ::
IPv4 address......................: 2.2.2.44
Subnet mask.......................: 255.255.255.0
Gateway...........................: 0.0.0.0
Physical address..................: 54-89-98-0A-27-3B
DNS server........................:
PC>ping 2.2.2.1
Ping 2.2.2.1: 32 data bytes, Press Ctrl_C to break
From 2.2.2.1: bytes=32 seq=1 ttl=64 time<1 ms
From 2.2.2.1: bytes=32 seq=2 ttl=64 time<1 ms
From 2.2.2.1: bytes=32 seq=3 ttl=64 time<1 ms
From 2.2.2.1: bytes=32 seq=4 ttl=64 time<1 ms
From 2.2.2.1: bytes=32 seq=5 ttl=64 time=15 ms
PC>arp -a
Internet Address Physical Address Type
2.2.2.1 76-6E-A8-04-53-C2 dynamic
在CE连接网云的链路上进行抓包,可以看到原始以太帧已经封装到源为192.168.56.222,目的地址为192.168.56.101的Vxlan UDP包中进行发送了,VNI为1234。
谢谢。