vxlan

VXLAN overlay 网络配置

补充说明

VXLAN 把二层帧封装进 UDP,用于跨主机的大二层网络和容器网络。Linux 内核支持创建 VXLAN 接口,通常配合 bridge 和 FDB 使用。

常用示例

ip link add vxlan0 type vxlan id 42 dstport 4789 \
  remote 10.0.0.2 dev eth0
ip link set vxlan0 up
ip -d link show vxlan0
bridge fdb show dev vxlan0
bridge fdb append 00:00:00:00:00:00 dst 10.0.0.2 dev vxlan0
ip link add br0 type bridge
ip link set vxlan0 master br0
ip link set br0 up

组播模式:

ip link add vxlan0 type vxlan id 42 group 239.1.1.1 dstport 4789 dev eth0

易错点与排错

相关命令