大家好,我真的是网络新手,所以我有点迷路了,希望有人能帮助我......
我在接口中有两个具有相同配置的物理节点:
# The primary network interface
#auto eth0
#iface eth0 inet dhcp
auto br0
iface br0 inet dhcp
bridge_ports eth0
bridge_fd 9
bridge_hello 2
bridge_maxage 12
bridge_stp off
我的节点有以下公共 ip:
ubuntu001: 158.42.104.129
ubuntu002: 158.42.104.139我使用 libvirt 的默认配置在每个节点中运行一个虚拟机:
ubuntu001 中的虚拟机:10.1.1.189
ubuntu002 中的虚拟机:10.1.1.59
我想通过“使用 OVS 的 gre 隧道”在虚拟机之间进行 ping,所以我做了下一个,但它没有用:
首先我创建一个OVS桥:
#ovs-vsctl add-br ovs-br0其次,我将我的网桥与它的上行链路连接起来,在这种情况下是 eth0
# ovs-vsctl add-port ovs-br0 eth0第三,我在每个节点上运行一个虚拟机(分别为 ubuntu001:10.1.1.189 和 ubuntu002:10.1.1.59)
第四,我为 GRE 隧道添加一个端口:
# ovs-vsctl add-port ovs-br0 gre0 -- set interface gre0 type=gre options:remote_ip=158.42.104.139 # ovs-vsctl add-port ovs-br0 gre0 -- set接口 gre0 类型=gre 选项:remote_ip=158.42.104.129
我在另一个节点上做了同样的事情,当我使用 ovs-vsctl 显示这个节目时:
root@ubuntu001:~# ovs-vsctl show
41268e02-3996-4caa-b941-e4fe9c718e35
Bridge "ovs-br0"
Port "ovs-br0"
Interface "ovs-br0"
type: internal
Port "gre0"
Interface "gre0"
type: gre
options: {remote_ip="158.42.104.139"}
Port "eth0"
Interface "eth0"
ovs_version: "2.0.2"
root@ubuntu002:~# ovs-vsctl show
f0128df4-1a89-4999-8add-b5076ff055ee
Bridge "ovs-br0"
Port "ovs-br0"
Interface "ovs-br0"
type: internal
Port "gre0"
Interface "gre0"
type: gre
options: {remote_ip="158.42.104.129"}
Port "eth0"
Interface "eth0"
ovs_version: "2.0.2"
我做错了什么或遗漏了什么?