Vms cannot connect to internet

asked 2016-12-19 18:37:36 +0300

safwene gravatar image

I'm using openstack mitaka, I have the controller and the networking (neutron) on the same host and this host is connected to internet via my wifi card (Wlan0), My internal networking is 192.168.1.0/24 and my default gateway is the "192.168.1.1", I have created an internal subnet for the instances (10.0.0.0/24), The instances can ping each other but how can i do to make them connecting to internet ?

edit retag flag offensive close merge delete

Comments

Hi. Did you use Hyper-V for compute? If yes, did you use OVS or hyperv-networking? Make sure the the bridge mappings are correctly configured. Information about host network configuration would be useful also.

danardelean gravatar imagedanardelean ( 2016-12-20 14:51:24 +0300 )edit

Do you have a public network with configuration matching your external network? Is traffic routing accordingly from the private one?

alexpilotti gravatar imagealexpilotti ( 2016-12-20 14:59:03 +0300 )edit

Independently of the configuration neutron, all my nodes are connected to the internet through my wifi card passing through the gateway (192.168.1.1) which is my physical router.

safwene gravatar imagesafwene ( 2016-12-20 15:14:43 +0300 )edit

Concerning the configuration of neutron: I created two networks first: 10.0.0.0/24 my internal network for instances. 192.168.1.0/24 my second network, I designate it as external network. Then I created a virtual router between the two networks with two interfaces, the first 10.0.0.1, 192.168.1.1

safwene gravatar imagesafwene ( 2016-12-20 15:15:38 +0300 )edit

A scenario : I run two instances the first: 10.0.0.2 and the second 10.0.0.3 With a floating ip 192.168.1.2. I can ping between the two instances and also ping the interface of the router's external network (192.168.1.1)

safwene gravatar imagesafwene ( 2016-12-20 15:19:49 +0300 )edit

But the problem here that there is no internet access in the external network, how can I offer access to this network created by neutron knowing that my access provider is the wlan0?

safwene gravatar imagesafwene ( 2016-12-20 15:24:08 +0300 )edit

Please check if you have an external bridge connected to the wlan0 interface (you can do 'ovs-vsctl show' to check if the bridge exists and has a port in wlan0). In /etc/neutron/plugins/ml2/ml2_config.ini check if a network is mapped to that bridge.

danardelean gravatar imagedanardelean ( 2016-12-20 17:26:42 +0300 )edit

As i know the mitaka release of openstack replaced the "open v-switsh" by linuxbridge-agent so i cannot test my configuration by typing 'ovs-vstcl', How can i contact you ? that i can send you the different configuration file maybe it helps you to understand much better the problem, Thank's

safwene gravatar imagesafwene ( 2016-12-20 18:24:53 +0300 )edit

So, outside OpenStack env, you have a LAN 192.168.1.0/24 with 192.168.1.1 as default gw, right? If this is the case, the OpenStack router must NOT have 192.168.1.1 IP on its own interface since that is the LAN gw. However, the router must have an interface with an IP in that range.

danardelean gravatar imagedanardelean ( 2017-01-05 17:27:24 +0300 )edit

The LAN gw IP must be set on the public subnet. If you do a 'neutron subnet-show [ID]' there is a field gateway_ip, here is where you need to set LAN gw.

danardelean gravatar imagedanardelean ( 2017-01-05 17:29:56 +0300 )edit