- 在本端和对端配置VXLAN隧道,以本端为例:
ip link add vxlan0 type vxlan id 42 group 239.1.1.1 dev 网口名 dstport 4789
在新生成的vxlan0端口上配置IPv4/IPv6地址。执行ping操作检查VLAN连通性,有结果1。
- 本端开启TX 方向 CheckSum Offload和内层TSO:
ethtool -K <ifname> tx on
ethtool -K <ifname> tx-udp_tnl(vxlan id)-csum-segmentation on
以及内层TSO offload:
ethtool -K <ifname> tx-udp_tnl-segmentation on
- 对端关闭lro gro,两端开启抓包:
ethtool -K <ifname> lro off
ethtool -K <ifname> gro off
- 使用iperf向对端发送TCP(IPv4)报文:
iperf -s(对端)
iperf -c 200.0.0.183 -n 1(本端)
有结果2。
- 关闭本端TX 方向 CheckSum Offload:
ethtool -K XXX tx off
ethtool -K xxx tx-udp_tnl-csum-segmentation off
以及内层TSO分段offload:
ethtool -K XXX tx-udp_tnl-segmentation off,
对端关闭lro gro
重复步骤3操作,有结果3。