在Hetzner的OpenStack中,每个接口有多个networking

我试图在hetzner.de中托pipe的几台服务器上运行一个小型的OpenStack设置,目前我正在向两台服务器部署一个基本设置。

所有服务器都运行Ubuntu,它们使用在172.16.0.xnetworking上运行的局域网相互连接。 以下是其中一台服务器上/ etc / network / interfaces的内容:

auto eth1 iface eth1 inet static address 172.16.0.1 broadcast 172.16.0.255 netmask 255.255.255.0 

第一台服务器是一个控制器,通过eth0连接到公共networking(一个IP地址指向它,服务器使用DHCPconfiguration)。 第二个服务器只是一个networking节点,我无法正确configuration中子。

第二台服务器也有两个接口,eth1(局域网)工作正常,但eth0不允许访问互联网。 我相信这可能是一个路由问题。 有一个/ 28块指向eth0 +单个IP,可以使用DHCP进行configuration。 以下是neutron节点上的/ etc / network / interfaces的内容:

 auto eth0 iface eth0 inet manual 

从我读过的,必须手动让中子configuration它。 我遵循OpenStack官方网站的Ubuntu设置指南。 这是ovs-vsctl show的输出:

 ╰─➤ ovs-vsctl show d57fbedc-d9c8-4102-9edf-0b8defa49d98 Bridge br-int fail_mode: secure Port br-int Interface br-int type: internal Port int-br-ex Interface int-br-ex type: patch options: {peer=phy-br-ex} Port "qr-72448652-b4" tag: 1 Interface "qr-72448652-b4" type: internal Port patch-tun Interface patch-tun type: patch options: {peer=patch-int} Port "tapfb4cc7c2-ec" tag: 1 Interface "tapfb4cc7c2-ec" type: internal Bridge br-ex Port "eth0" Interface "eth0" Port phy-br-ex Interface phy-br-ex type: patch options: {peer=int-br-ex} Port "qg-bc735ff4-fe" Interface "qg-bc735ff4-fe" type: internal Port br-ex Interface br-ex type: internal Bridge br-tun Port patch-int Interface patch-int type: patch options: {peer=patch-tun} Port "gre-ac100003" Interface "gre-ac100003" type: gre options: {df_default="true", in_key=flow, local_ip="172.16.0.2", out_key=flow, remote_ip="172.16.0.3"} Port br-tun Interface br-tun type: internal ovs_version: "2.0.2" 

我运行ovs-vsctl add-br br-exovs-vsctl add-port br-ex eth0 。 然后,我运行这个命令将该networking添加到neutron:

 neutron subnet-create ext-net --name ext-subnet --allocation-pool start=xxx193,end=xxx206 --disable-dhcp --gateway xxx193 xxx192/28 

这是networking节点上的路由-n的输出。

 ╭─route -n 127 ↵ Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 10.8.0.0 172.16.0.1 255.255.255.0 UG 0 0 0 eth1 xxx192 0.0.0.0 255.255.255.240 U 0 0 0 br-ex 172.16.0.0 0.0.0.0 255.255.255.0 U 0 0 0 eth1 

显然路由是无效的,但我不知道它应该如何。 关于如何使networking工作的任何提示?