bridge fdb vxlan nolearning(二)

 

 

现在把vxlan类型改为:

10.10.18.213节点上

ip link add vxlan10 type vxlan id 10 local 10.10.18.213 dstport 4789 nolearning

bridge fdb append to 96:43:7c:c4:79:8e dev vxlan10 dst 10.10.18.214

10.10.18.214节点上

ip link add vxlan10 type vxlan id 10 local 10.10.18.214 dstport 4789 nolearning

bridge fdb append to 32:e3:6a:fe:8b:55 dev vxlan10 dst 10.10.18.213

10.10.18.214节点上

[root@evpn2 ~]# ip netns exec  host3 ping  4.4.4.213
PING 4.4.4.213 (4.4.4.213) 56(84) bytes of data.
From 4.4.4.3 icmp_seq=1 Destination Host Unreachable
From 4.4.4.3 icmp_seq=2 Destination Host Unreachable
From 4.4.4.3 icmp_seq=3 Destination Host Unreachable
^C
--- 4.4.4.213 ping statistics ---
4 packets transmitted, 0 received, +3 errors, 100% packet loss, time 120ms
pipe 4

[root@evpn2 ~]# bridge fdb show | grep vxlan10
32:e3:6a:fe:8b:55 dev dev vxlan10 master br30
6e:99:e1:80:f3:f6 dev dev vxlan10 vlan 1 master br30 permanent
6e:99:e1:80:f3:f6 dev dev vxlan10 master br30 permanent
32:e3:6a:fe:8b:55 dev dev vxlan10 dst 10.10.18.213 self permanent

 

10.10.18.213节点上

[root@evpn2 ~]#  tcpdump  -i enp1s0 -eennvv dst port 4789 
tcpdump: listening on enp1s0, link-type EN10MB (Ethernet), capture size 262144 bytes

arp广播报文都没有

10.10.18.214节点上添加arp item

[root@evpn2 ~]# ip netns exec  host3 ip neighbor add 4.4.4.213  lladdr 32:e3:6a:fe:8b:55 dev eth0 nud permanent

10.10.18.213节点上添加arp item

ip netns exec  host3 ip neighbor add 4.4.4.3 lladdr 96:43:7c:c4:79:8e dev eth0 nud permanent

 

10.10.18.214节点上ping

 

 10.10.18.214节点上tcpdump

[root@evpn2 ~]# ip netns exec host3 tcpdump  -i eth0 -eennvv
tcpdump: listening on eth0, link-type EN10MB (Ethernet), capture size 262144 bytes
10:27:35.538747 96:43:7c:c4:79:8e > 32:e3:6a:fe:8b:55, ethertype IPv4 (0x0800), length 98: (tos 0x0, ttl 64, id 22755, offset 0, flags [DF], proto ICMP (1), length 84)
    4.4.4.3 > 4.4.4.213: ICMP echo request, id 8402, seq 1, length 64
10:27:35.538767 32:e3:6a:fe:8b:55 > 96:43:7c:c4:79:8e, ethertype IPv4 (0x0800), length 98: (tos 0x0, ttl 64, id 36006, offset 0, flags [none], proto ICMP (1), length 84)
    4.4.4.213 > 4.4.4.3: ICMP echo reply, id 8402, seq 1, length 64
10:27:36.616693 96:43:7c:c4:79:8e > 32:e3:6a:fe:8b:55, ethertype IPv4 (0x0800), length 98: (tos 0x0, ttl 64, id 22856, offset 0, flags [DF], proto ICMP (1), length 84)
    4.4.4.3 > 4.4.4.213: ICMP echo request, id 8402, seq 2, length 64
10:27:36.616712 32:e3:6a:fe:8b:55 > 96:43:7c:c4:79:8e, ethertype IPv4 (0x0800), length 98: (tos 0x0, ttl 64, id 36064, offset 0, flags [none], proto ICMP (1), length 84)
    4.4.4.213 > 4.4.4.3: ICMP echo reply, id 8402, seq 2, length 64

 vxlan通信的两个关键表:

1、 arp 表(发送arp请求报文构建)

2、 bridge fdb

posted on 2020-03-27 10:30  tycoon3  阅读(560)  评论(0编辑  收藏  举报

导航