Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

How to access internet from VM instance in Openstack?

Hello everyone. I've been scratching my head for last 5 days, almost went to the end of Internet, read a lot of tutorials, made a lot of re installations an re configurations of openstack but at the and of the day could not resolve this problem... So i think you guys ( and girls ) are my last hope.

Okay to the point.

  • LAN - 192.168.0.0/24
  • Router IP (Gateway) - 192.168.0.1
  • MacOS Laptop - 192.168.0.192 / Has internet access
  • CentOS 7 running on VirtualBox with promiscuous mode set for all and with ip 192.168.0.22 / Has internet access

The problem is I cannot ping my physical router ( 192.168.0.1 ) nor access Internet from any of my VM instance and not even from external router ( linux namespace ). What is weird, I can ping VM instances (which have floating IP's) from my MacOS Laptop and CentOS7 VM. Also there is no problem to ssh them in both cases. In addition, firewalld is disabled on my host machine and ipv4 port forwarding is set to 1, port security setting are configured to allow traffic flow on port 80,20 and ICMP both Ingress and Egress.

Hope this set of configurations will help you find the bug.

My ip a command on CentOS 7: link text

My packstack answer file: link text

My /etc/sysconfig/network-scripts/ifcfg-br-ex configuration: link text

My /etc/sysconfig/network-scripts/ifcfg-enp0s3 configuration: link text

brctl show and ovs-vsctl show: link text

neutron net-list: link text

Network topology: link text

How to access internet from VM instance in Openstack?

Hello everyone. I've been scratching my head for last 5 days, almost went to the end of Internet, read a lot of tutorials, made a lot of re installations an re configurations of openstack but at the and of the day could not resolve this problem... So i think you guys ( and girls ) are my last hope.

Okay to the point.

  • LAN - 192.168.0.0/24
  • Router IP (Gateway) - 192.168.0.1
  • MacOS Laptop - 192.168.0.192 / Has internet access
  • CentOS 7 running on VirtualBox with promiscuous mode set for all and with ip 192.168.0.22 / Has internet access

The problem is I cannot ping my physical router ( 192.168.0.1 ) nor access Internet from any of my VM instance and not even from external router ( linux namespace ). What is weird, I can ping VM instances (which have floating IP's) from my MacOS Laptop and CentOS7 VM. Also there is no problem to ssh them in both cases. In addition, firewalld is disabled on my host machine and ipv4 port forwarding is set to 1, port security setting are configured to allow traffic flow on port 80,20 and ICMP both Ingress and Egress.

Hope this set of configurations will help you find the bug.

My ip a command on CentOS 7: link text

My packstack answer file: link text

My /etc/sysconfig/network-scripts/ifcfg-br-ex configuration: link text

My /etc/sysconfig/network-scripts/ifcfg-enp0s3 configuration: link text

brctl show and ovs-vsctl show: link text

neutron net-list: link text

Network topology: link text

UPDATE 19.0.1.20 I've created a new external network in Openstack environment but this time as a gateway I used 192.168.0.22 which is my CentOS host ip (before I used 192.168.0.1) . After this, I can ping my physical router (192.168.0.1) from any place (VM instances, router namespace) but still cannot ping 8.8.8.8... When trying to, I get a "Redirect Host" message. -> https://pastebin.com/bSQhbkBc

How to access internet from VM instance in Openstack?

Hello everyone. I've been scratching my head for last 5 days, almost went to the end of Internet, read a lot of tutorials, made a lot of re installations an re configurations of openstack but at the and of the day could not resolve this problem... So i think you guys ( and girls ) are my last hope.

Okay to the point.

  • LAN - 192.168.0.0/24
  • Router IP (Gateway) - 192.168.0.1
  • MacOS Laptop - 192.168.0.192 / Has internet access
  • CentOS 7 running on VirtualBox with promiscuous mode set for all and with ip 192.168.0.22 / Has internet access

The problem is I cannot ping my physical router ( 192.168.0.1 ) nor access Internet from any of my VM instance and not even from external router ( linux namespace ). What is weird, I can ping VM instances (which have floating IP's) from my MacOS Laptop and CentOS7 VM. Also there is no problem to ssh them in both cases. In addition, firewalld is disabled on my host machine and ipv4 port forwarding is set to 1, port security setting are configured to allow traffic flow on port 80,20 and ICMP both Ingress and Egress.

Hope this set of configurations will help you find the bug.

My ip a command on CentOS 7: link text

My packstack answer file: link text

My /etc/sysconfig/network-scripts/ifcfg-br-ex configuration: link text

My /etc/sysconfig/network-scripts/ifcfg-enp0s3 configuration: link text

brctl show and ovs-vsctl show: link text

neutron net-list: link text

Network topology: link text

UPDATE 19.0.1.20 19.0.1.20

I've created a new external network in Openstack environment but this time as a gateway I used 192.168.0.22 which is my CentOS host ip (before I used 192.168.0.1) . After this, I can ping my physical router (192.168.0.1) from any place (VM instances, router namespace) but still cannot ping 8.8.8.8... When trying to, I get a "Redirect Host" message. -> https://pastebin.com/bSQhbkBc

How to access internet from VM instance in Openstack?

Hello everyone. I've been scratching my head for last 5 days, almost went to the end of Internet, read a lot of tutorials, made a lot of re installations an re configurations of openstack but at the and of the day could not resolve this problem... So i think you guys ( and girls ) are my last hope.

Okay to the point.

  • LAN - 192.168.0.0/24
  • Router IP (Gateway) - 192.168.0.1
  • MacOS Laptop - 192.168.0.192 / Has internet access
  • CentOS 7 running on VirtualBox with promiscuous mode set for all and with ip 192.168.0.22 / Has internet access

The problem is I cannot ping my physical router ( 192.168.0.1 ) nor access Internet from any of my VM instance and not even from external router ( linux namespace ). What is weird, I can ping VM instances (which have floating IP's) from my MacOS Laptop and CentOS7 VM. Also there is no problem to ssh them in both cases. In addition, firewalld is disabled on my host machine and ipv4 port forwarding is set to 1, port security setting are configured to allow traffic flow on port 80,20 and ICMP both Ingress and Egress.

Hope this set of configurations will help you find the bug.

My ip a command on CentOS 7: link text

My packstack answer file: link text

My /etc/sysconfig/network-scripts/ifcfg-br-ex configuration: link text

My /etc/sysconfig/network-scripts/ifcfg-enp0s3 configuration: link text

brctl show and ovs-vsctl show: link text

neutron net-list: link text

Network topology: link text

UPDATE 19.0.1.2019.01.20

I've created a new external network in Openstack environment but this time as a gateway I used 192.168.0.22 which is my CentOS host ip (before I used 192.168.0.1) . After this, I can ping my physical router (192.168.0.1) from any place (VM instances, router namespace) but still cannot ping 8.8.8.8... When trying to, I get a "Redirect Host" message. -> https://pastebin.com/bSQhbkBc