openstack AIO deployed by kolla with 2 NIC

asked 2016-12-01 07:27:07 -0500

csj gravatar image

updated 2016-12-02 09:42:03 -0500

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 ...
(more)
edit retag flag offensive close merge delete

Comments

1

Check out some blogs about this: https://fosskb.in/2014/06/10/managing...http://www.cloudenablers.com/blog/ins... If there is any kolla specific question edit the question. Regards

Eduardo Gonzalez gravatar imageEduardo Gonzalez ( 2016-12-02 09:46:05 -0500 )edit