Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

openstack AIO deployed by kolla with 2 NIC

Hi I am using Ubuntu 16.04, and using kolla to build and deploy Openstack.

The host's wired NIC(enp1s0f0) is connected to a wifi router which get 192.168.0.103, the wifi NIC(wlp2s0) is connected to the same wifi router which got 192.168.0.105

Now I make a bridge(br96) as below setting

auto enp1s0f0
iface enp1s0f0 inet manual

auto br96
iface br96 inet dhcp 
  pre-up ip link add veth0 type veth peer name veth1
  pre-up ifconfig veth0 up
  pre-up ifconfig veth1 up
  bridge_ports enp1s0f0 veth0
  bridge_maxwait 5
  bridge_stp off
  bridge_hw 68:5b:35:8b:36:a6

I make the bridge br96 the same mac address as enp1s0f0 and then it got 192.168.0.103

When deploying openstack, I use below settings in /etc/kolla/global.yml

kolla_internal_vip_address: "192.168.1.254"
kolla_external_fqdn: "mydns.com"
network_interface: "br96"
neutron_external_interface: "veth1"

I created a private_network for VMs with a subnet as 10.10.69.0/24 and enabled DHCP. then, I created a ubuntu instance which eth0 got 10.10.69.11

Now, I can I configure it can access external network like google.com and have another virtual nic to get IP 192.168.0.x and I can ssh into it from my host?

Is there a simple tutorial how to do that? cause I googled most case are multiple nodes with multiple real NIC. very few resource to develop on one host case.

Below is my current ip a result

2: enp1s0f0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq master br96 state UP group default qlen 1000
    link/ether 68:5b:35:8b:36:a6 brd ff:ff:ff:ff:ff:ff
3: wlp2s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
    link/ether 28:cf:e9:10:e2:8d brd ff:ff:ff:ff:ff:ff
    inet 192.168.0.105/24 brd 192.168.0.255 scope global wlp2s0
       valid_lft forever preferred_lft forever
    inet6 fe80::2b1:cd88:8f5e:cfb6/64 scope link 
       valid_lft forever preferred_lft forever
4: veth1@veth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue master ovs-system state UP group default qlen 1000
    link/ether 4a:1d:d7:50:71:a7 brd ff:ff:ff:ff:ff:ff
    inet6 fe80::481d:d7ff:fe50:71a7/64 scope link 
       valid_lft forever preferred_lft forever
5: veth0@veth1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue master br96 state UP group default qlen 1000
    link/ether f6:9d:4e:a0:5f:fe brd ff:ff:ff:ff:ff:ff
6: br96: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default qlen 1000
    link/ether 68:5b:35:8b:36:a6 brd ff:ff:ff:ff:ff:ff
    inet 192.168.0.103/24 brd 192.168.0.255 scope global br96
       valid_lft forever preferred_lft forever
    inet 192.168.1.254/32 scope global br96
       valid_lft forever preferred_lft forever
    inet6 fe80::6a5b:35ff:fe8b:36a6/64 scope link 
       valid_lft forever preferred_lft forever

openstack AIO deployed by kolla with 2 NIC

Hi I am using Ubuntu 16.04, and using kolla to build and deploy Openstack.

The host's wired NIC(enp1s0f0) is connected to a wifi router which get 192.168.0.103, the wifi NIC(wlp2s0) is connected to the same wifi router which got 192.168.0.105

Now I make a bridge(br96) as below setting

auto enp1s0f0
iface enp1s0f0 inet manual

auto br96
iface br96 inet dhcp 
  pre-up ip link add veth0 type veth peer name veth1
  pre-up ifconfig veth0 up
  pre-up ifconfig veth1 up
  bridge_ports enp1s0f0 veth0
  bridge_maxwait 5
  bridge_stp off
  bridge_hw 68:5b:35:8b:36:a6

I make the bridge br96 the same mac address as enp1s0f0 and then it got 192.168.0.103

When deploying openstack, I use below settings in /etc/kolla/global.yml

kolla_internal_vip_address: "192.168.1.254"
kolla_external_fqdn: "mydns.com"
network_interface: "br96"
neutron_external_interface: "veth1"

I created a private_network for VMs with a subnet as 10.10.69.0/24 and enabled DHCP. then, I created a ubuntu instance which eth0 got 10.10.69.11

Now, I can I configure it can access external network like google.com and have another virtual nic to get IP 192.168.0.x and I can ssh into it from my host?

Is there a simple tutorial how to do that? cause I googled most case are multiple nodes with multiple real NIC. very few resource to develop on one host case.

Below is my current ip a result

2: enp1s0f0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq master br96 state UP group default qlen 1000
    link/ether 68:5b:35:8b:36:a6 brd ff:ff:ff:ff:ff:ff
3: wlp2s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
    link/ether 28:cf:e9:10:e2:8d brd ff:ff:ff:ff:ff:ff
    inet 192.168.0.105/24 brd 192.168.0.255 scope global wlp2s0
       valid_lft forever preferred_lft forever
    inet6 fe80::2b1:cd88:8f5e:cfb6/64 scope link 
       valid_lft forever preferred_lft forever
4: veth1@veth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue master ovs-system state UP group default qlen 1000
    link/ether 4a:1d:d7:50:71:a7 brd ff:ff:ff:ff:ff:ff
    inet6 fe80::481d:d7ff:fe50:71a7/64 scope link 
       valid_lft forever preferred_lft forever
5: veth0@veth1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue master br96 state UP group default qlen 1000
    link/ether f6:9d:4e:a0:5f:fe brd ff:ff:ff:ff:ff:ff
6: br96: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default qlen 1000
    link/ether 68:5b:35:8b:36:a6 brd ff:ff:ff:ff:ff:ff
    inet 192.168.0.103/24 brd 192.168.0.255 scope global br96
       valid_lft forever preferred_lft forever
    inet 192.168.1.254/32 scope global br96
       valid_lft forever preferred_lft forever
    inet6 fe80::6a5b:35ff:fe8b:36a6/64 scope link 
       valid_lft forever preferred_lft forever

7: docker0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue state DOWN group default 
    link/ether 02:42:0c:59:7c:ec brd ff:ff:ff:ff:ff:ff
    inet 172.17.0.1/16 scope global docker0
       valid_lft forever preferred_lft forever
    inet6 fe80::42:cff:fe59:7cec/64 scope link 
       valid_lft forever preferred_lft forever

8: ovs-system: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN group default qlen 1
    link/ether 0a:4e:c9:43:4a:00 brd ff:ff:ff:ff:ff:ff
11: br-ex: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN group default qlen 1
    link/ether 32:19:df:a6:d3:42 brd ff:ff:ff:ff:ff:ff
466: br-int: <BROADCAST,MULTICAST> mtu 1450 qdisc noop state DOWN group default qlen 1
    link/ether 4a:cc:84:d7:91:46 brd ff:ff:ff:ff:ff:ff
467: br-tun: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN group default qlen 1
    link/ether b2:75:08:91:50:40 brd ff:ff:ff:ff:ff:ff
469: qbrdc92d1bd-6a: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1450 qdisc noqueue state UP group default qlen 1000
    link/ether 22:48:45:6a:8c:25 brd ff:ff:ff:ff:ff:ff
470: qvodc92d1bd-6a@qvbdc92d1bd-6a: <BROADCAST,MULTICAST,PROMISC,UP,LOWER_UP> mtu 1450 qdisc noqueue master ovs-system state UP group default qlen 1000
    link/ether 96:8f:50:ce:80:df brd ff:ff:ff:ff:ff:ff
    inet6 fe80::948f:50ff:fece:80df/64 scope link 
       valid_lft forever preferred_lft forever
471: qvbdc92d1bd-6a@qvodc92d1bd-6a: <BROADCAST,MULTICAST,PROMISC,UP,LOWER_UP> mtu 1450 qdisc noqueue master qbrdc92d1bd-6a state UP group default qlen 1000
    link/ether 22:48:45:6a:8c:25 brd ff:ff:ff:ff:ff:ff
    inet6 fe80::2048:45ff:fe6a:8c25/64 scope link 
       valid_lft forever preferred_lft forever
473: qbrb1f4b89e-b0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1450 qdisc noqueue state UP group default qlen 1000
    link/ether c6:17:48:f1:b3:db brd ff:ff:ff:ff:ff:ff
474: qvob1f4b89e-b0@qvbb1f4b89e-b0: <BROADCAST,MULTICAST,PROMISC,UP,LOWER_UP> mtu 1450 qdisc noqueue master ovs-system state UP group default qlen 1000
    link/ether da:7a:9f:92:03:54 brd ff:ff:ff:ff:ff:ff
    inet6 fe80::d87a:9fff:fe92:354/64 scope link 
       valid_lft forever preferred_lft forever
475: qvbb1f4b89e-b0@qvob1f4b89e-b0: <BROADCAST,MULTICAST,PROMISC,UP,LOWER_UP> mtu 1450 qdisc noqueue master qbrb1f4b89e-b0 state UP group default qlen 1000
    link/ether c6:17:48:f1:b3:db brd ff:ff:ff:ff:ff:ff
    inet6 fe80::c417:48ff:fef1:b3db/64 scope link 
       valid_lft forever preferred_lft forever
482: qbr579a63c2-10: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1450 qdisc noqueue state UP group default qlen 1000
    link/ether 12:ff:db:12:1f:6f brd ff:ff:ff:ff:ff:ff
483: qvo579a63c2-10@qvb579a63c2-10: <BROADCAST,MULTICAST,PROMISC,UP,LOWER_UP> mtu 1450 qdisc noqueue master ovs-system state UP group default qlen 1000
    link/ether b2:15:07:8a:fd:71 brd ff:ff:ff:ff:ff:ff
    inet6 fe80::b015:7ff:fe8a:fd71/64 scope link 
       valid_lft forever preferred_lft forever
484: qvb579a63c2-10@qvo579a63c2-10: <BROADCAST,MULTICAST,PROMISC,UP,LOWER_UP> mtu 1450 qdisc noqueue master qbr579a63c2-10 state UP group default qlen 1000
    link/ether 12:ff:db:12:1f:6f brd ff:ff:ff:ff:ff:ff
    inet6 fe80::10ff:dbff:fe12:1f6f/64 scope link 
       valid_lft forever preferred_lft forever
485: tap579a63c2-10: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1450 qdisc pfifo_fast master qbr579a63c2-10 state UNKNOWN group default qlen 1000
    link/ether fe:16:3e:4c:a8:47 brd ff:ff:ff:ff:ff:ff

openstack AIO deployed by kolla with 2 NIC

Hi I am using Ubuntu 16.04, and using kolla to build and deploy Openstack.

The host's wired NIC(enp1s0f0) is connected to a wifi router which get 192.168.0.103, the wifi NIC(wlp2s0) is connected to the same wifi router which got 192.168.0.105

Now I make a bridge(br96) as below setting

auto enp1s0f0
iface enp1s0f0 inet manual

auto br96
iface br96 inet dhcp 
  pre-up ip link add veth0 type veth peer name veth1
  pre-up ifconfig veth0 up
  pre-up ifconfig veth1 up
  bridge_ports enp1s0f0 veth0
  bridge_maxwait 5
  bridge_stp off
  bridge_hw 68:5b:35:8b:36:a6

I make the bridge br96 the same mac address as enp1s0f0 and then it got 192.168.0.103

When deploying openstack, I use below settings in /etc/kolla/global.yml

kolla_internal_vip_address: "192.168.1.254"
kolla_external_fqdn: "mydns.com"
network_interface: "br96"
neutron_external_interface: "veth1"

I created a private_network for VMs with a subnet as 10.10.69.0/24 and enabled DHCP. then, I created a ubuntu instance which eth0 got 10.10.69.11

Now, I can I configure it can access external network like google.com and have another virtual nic to get IP 192.168.0.x and I can ssh into it from my host?

Is there a simple tutorial how to do that? cause I googled most case are multiple nodes with multiple real NIC. very few resource to develop on one host case.

Below is my current ip a result

2: enp1s0f0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq master br96 state UP group default qlen 1000
    link/ether 68:5b:35:8b:36:a6 brd ff:ff:ff:ff:ff:ff
3: wlp2s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
    link/ether 28:cf:e9:10:e2:8d brd ff:ff:ff:ff:ff:ff
    inet 192.168.0.105/24 brd 192.168.0.255 scope global wlp2s0
       valid_lft forever preferred_lft forever
    inet6 fe80::2b1:cd88:8f5e:cfb6/64 scope link 
       valid_lft forever preferred_lft forever
4: veth1@veth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue master ovs-system state UP group default qlen 1000
    link/ether 4a:1d:d7:50:71:a7 brd ff:ff:ff:ff:ff:ff
    inet6 fe80::481d:d7ff:fe50:71a7/64 scope link 
       valid_lft forever preferred_lft forever
5: veth0@veth1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue master br96 state UP group default qlen 1000
    link/ether f6:9d:4e:a0:5f:fe brd ff:ff:ff:ff:ff:ff
6: br96: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default qlen 1000
    link/ether 68:5b:35:8b:36:a6 brd ff:ff:ff:ff:ff:ff
    inet 192.168.0.103/24 brd 192.168.0.255 scope global br96
       valid_lft forever preferred_lft forever
    inet 192.168.1.254/32 scope global br96
       valid_lft forever preferred_lft forever
    inet6 fe80::6a5b:35ff:fe8b:36a6/64 scope link 
       valid_lft forever preferred_lft forever

7: docker0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue state DOWN group default 
    link/ether 02:42:0c:59:7c:ec brd ff:ff:ff:ff:ff:ff
    inet 172.17.0.1/16 scope global docker0
       valid_lft forever preferred_lft forever
    inet6 fe80::42:cff:fe59:7cec/64 scope link 
       valid_lft forever preferred_lft forever

8: ovs-system: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN group default qlen 1
    link/ether 0a:4e:c9:43:4a:00 brd ff:ff:ff:ff:ff:ff
11: br-ex: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN group default qlen 1
    link/ether 32:19:df:a6:d3:42 brd ff:ff:ff:ff:ff:ff
466: br-int: <BROADCAST,MULTICAST> mtu 1450 qdisc noop state DOWN group default qlen 1
    link/ether 4a:cc:84:d7:91:46 brd ff:ff:ff:ff:ff:ff
467: br-tun: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN group default qlen 1
    link/ether b2:75:08:91:50:40 brd ff:ff:ff:ff:ff:ff
469: qbrdc92d1bd-6a: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1450 qdisc noqueue state UP group default qlen 1000
    link/ether 22:48:45:6a:8c:25 brd ff:ff:ff:ff:ff:ff
470: qvodc92d1bd-6a@qvbdc92d1bd-6a: <BROADCAST,MULTICAST,PROMISC,UP,LOWER_UP> mtu 1450 qdisc noqueue master ovs-system state UP group default qlen 1000
    link/ether 96:8f:50:ce:80:df brd ff:ff:ff:ff:ff:ff
    inet6 fe80::948f:50ff:fece:80df/64 scope link 
       valid_lft forever preferred_lft forever
471: qvbdc92d1bd-6a@qvodc92d1bd-6a: <BROADCAST,MULTICAST,PROMISC,UP,LOWER_UP> mtu 1450 qdisc noqueue master qbrdc92d1bd-6a state UP group default qlen 1000
    link/ether 22:48:45:6a:8c:25 brd ff:ff:ff:ff:ff:ff
    inet6 fe80::2048:45ff:fe6a:8c25/64 scope link 
       valid_lft forever preferred_lft forever
473: qbrb1f4b89e-b0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1450 qdisc noqueue state UP group default qlen 1000
    link/ether c6:17:48:f1:b3:db brd ff:ff:ff:ff:ff:ff
474: qvob1f4b89e-b0@qvbb1f4b89e-b0: <BROADCAST,MULTICAST,PROMISC,UP,LOWER_UP> mtu 1450 qdisc noqueue master ovs-system state UP group default qlen 1000
    link/ether da:7a:9f:92:03:54 brd ff:ff:ff:ff:ff:ff
    inet6 fe80::d87a:9fff:fe92:354/64 scope link 
       valid_lft forever preferred_lft forever
475: qvbb1f4b89e-b0@qvob1f4b89e-b0: <BROADCAST,MULTICAST,PROMISC,UP,LOWER_UP> mtu 1450 qdisc noqueue master qbrb1f4b89e-b0 state UP group default qlen 1000
    link/ether c6:17:48:f1:b3:db brd ff:ff:ff:ff:ff:ff
    inet6 fe80::c417:48ff:fef1:b3db/64 scope link 
       valid_lft forever preferred_lft forever
482: qbr579a63c2-10: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1450 qdisc noqueue state UP group default qlen 1000
    link/ether 12:ff:db:12:1f:6f brd ff:ff:ff:ff:ff:ff
483: qvo579a63c2-10@qvb579a63c2-10: <BROADCAST,MULTICAST,PROMISC,UP,LOWER_UP> mtu 1450 qdisc noqueue master ovs-system state UP group default qlen 1000
    link/ether b2:15:07:8a:fd:71 brd ff:ff:ff:ff:ff:ff
    inet6 fe80::b015:7ff:fe8a:fd71/64 scope link 
       valid_lft forever preferred_lft forever
484: qvb579a63c2-10@qvo579a63c2-10: <BROADCAST,MULTICAST,PROMISC,UP,LOWER_UP> mtu 1450 qdisc noqueue master qbr579a63c2-10 state UP group default qlen 1000
    link/ether 12:ff:db:12:1f:6f brd ff:ff:ff:ff:ff:ff
    inet6 fe80::10ff:dbff:fe12:1f6f/64 scope link 
       valid_lft forever preferred_lft forever
485: tap579a63c2-10: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1450 qdisc pfifo_fast master qbr579a63c2-10 state UNKNOWN group default qlen 1000
    link/ether fe:16:3e:4c:a8:47 brd ff:ff:ff:ff:ff:ff