


不同VXLAN之间的主机不能直接进行二层通信,需要通过VXLAN Gateway实现主机的三层通信(vxlan与vxlan之间的互访和vxlan与vlan之间的互访,需要注意的是,vlan与vxlan的访问需要通过vxlan网关进行映射的翻译。)
如下图所示:

通过将MAC地址封装在UDP中,使用UDP 4789端口进行数据转发,数据报文。 如下图,所示:

如下图,所示:

如下图,所示:

由于目前信令下而已尚未实现,多目的流量(Broadcast,Multicast,Unkonwn)利用底层IP网络提供的组播服务实现,即借助数据转发平台实现。
如下图,所示:

当BUM报文进入VXLAN隧道,源端VTEP依据获取的隧道列表对报文进行复制,并分别进行封装。BUM报文出VXLAN隧道,目的端VTEP对报文解封装。


PC1 IP地址配置
IP :100.0.0.10/24
Gateway:100.0.0.1PC2 IP地址配置
IP:200.0.1.10/24
Gateway:200.0.1.2ASA1 接口及IP地址配置
interface GigabitEthernet0/0
nameif inside
security-level 100
ip address 200.0.0.1 255.255.255.0
interface GigabitEthernet0/1
nameif outside
security-level 0
ip address 100.0.0.1 255.255.255.0ASA1 VXLAN相关配置,(开启组播路由,封装VXLAN,配置vni,ACL方向测试流量)
multicast-routing
nve 1
encapsulation vxlan
source-interface inside
default-mcast-group 239.0.0.1
interface vni1
segment-id 6000
nameif VXLAN
security-level 50
ip address 200.0.1.1 255.255.255.0
vtep-nve 1
access-list out extended permit ip any any
access-group out in interface outsideASA2 接口及IP地址配置(为BVI接口配置IP地址)
interface GigabitEthernet0/1
nameif inside
bridge-group 1
security-level 100
interface BVI1
ip address 200.0.1.2 255.255.255.0ASA2 VXLAN相关配置(封装VXLAN,配置vni,ACL方向测试流量)
interface GigabitEthernet0/0
nve-only
nameif outside
security-level 0
ip address 200.0.0.2 255.255.255.0
nve 1
encapsulation vxlan
source-interface outside
interface vni1
segment-id 6000
nameif VXLAN
bridge-group 1
security-level 50
vtep-nve 1
mcast-group 239.0.0.1
access-list in extended permit ip any any
access-group in in interface VXLAN测试PC1与PC2的连通性
PC2> ping 100.0.0.10
84 bytes from 100.0.0.10 icmp_seq=1 ttl=64 time=13.662 ms
84 bytes from 100.0.0.10 icmp_seq=2 ttl=64 time=5.751 ms
84 bytes from 100.0.0.10 icmp_seq=3 ttl=64 time=5.354 ms
84 bytes from 100.0.0.10 icmp_seq=4 ttl=64 time=4.188 ms
84 bytes from 100.0.0.10 icmp_seq=5 ttl=64 time=3.687 ms检测VTEP邻居状态
ASA1# show nve 1
nve 1, source-interface "inside" is up
IP address 200.0.0.1, subnet mask 255.255.255.0
Encapsulation: vxlan
Encapsulated traffic statistics:
154 packets input, 7726 bytes
723 packets output, 74666 bytes
0 packets dropped
Number of configured static peer VTEPs: 0
Number of discovered peer VTEPs: 1
Discovered peer VTEPs:
IP address 200.0.0.2
Default multicast group: 239.0.0.1
Number of VNIs attached to nve 1: 1
VNIs attached:
vni 1: segment-id 6000, mcast-group none抓包查看ASA1与ASA2之间数据包封装
