vxlan的配置比较类似gre , 这里我们只需要将gre0 删除,添加vxlan0 端口。
(1)VTEP(VXLAN Tunnel End Point):直接与终端设备比如虚机连接的设备,负责原始以太报文的 VXLAN 封装和解封装,形态可以是虚拟交换机比如 Open vSwitch,也可以是物理交换机。
ovs-vsctl del-port gre0
ovs-vsctl add-port br0 vxlan0 -- set interface vxlan0 type=vxlan options:remote_ip=10.0.2.12 options:key=100
ovs-vsctl add-port ovs-vxlan vxlan0 -- set interface vxlan0 type=vxlan options:remote_ip=192.168.0.102options:key=123
ovs-vsctl add-port ovs-vxlan vxlan0 -- set interface vxlan0 type=vxlan options:remote_ip=192.168.0.101options:key=123

来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/644/viewspace-3168734/ ,如需转载,请注明出处,否则将追究法律责任。