本博客是为了记录学习过程,所有结果仅仅是本实验的实验结果
环境准备
系统:
[root@172-17-0-8 ~]# uname -a
Linux 172-17-0-8 3.10.0-514.21.1.el7.x86_64 #1 SMP Thu May 25 17:04:51 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux
[root@172-17-0-12 ~]# uname -a
Linux 172-17-0-12 3.10.0-1062.9.1.el7.x86_64 #1 SMP Fri Dec 6 15:49:49 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
实验过程
两台机器都要执行
1.创建vxlan
ip link add vxlan0 type vxlan id 42 dstport 4789 local 172.17.0.12 group 233.1.1.1 dev eth0
[root@172-17-0-12 ~]# ip link show
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT group default qlen 1000
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP mode DEFAULT group default qlen 1000
link/ether 52:54:00:de:1e:8e brd ff:ff: