网桥VXLAN服务
题目
- 在 appsrv 和 storagesrv 上搭建 vxlan。需求如下,
- 安装实验网桥
- 新建 vxlan 隧道,网桥名称为 br-vxlan,网桥的出口为 vxlan100,id 为 100.
- appsrv 的隧道地址为 172.16.1.1/24,storagesrv 的隧道地址为172.16.1.2/24.
- 测试网桥之间二层的联通性。
配置
appsrv
# 添加 vxlan100 接口
ip link add vxlan100 type vxlan id 100 dstport 4789 remote 192.168.100.200 local 192.168.100.100 dev ens33
# 配置vxlan接口地址并激活
ip addr add 172.16.1.1/24 dev vxlan100
ip link set vxlan100 up
storagesrv
# 添加 vxlan100 接口
ip link add vxlan100 type vxlan id 100 dstport 4789 remote 192.168.100.100 local 192.168.100.200 dev ens33
# 配置vxlan接口地址并激活
ip addr add 172.16.1.2/24 dev vxlan100
ip link set vxlan100 up
测试

本文来自博客园,作者:未来的你!,转载请注明原文链接:https://www.cnblogs.com/frost-descent/p/16663031.html

浙公网安备 33010602011771号