# Revision history [back]

### unable to access internet on VM using Devstack

Hi All,

I have setup a ubuntu server with devstack running on laptop for first time. The laptop have two connection Ethernet and Wifi. I using Wifi for internet. So in my network interface, it has following configuration [I have given static address to the eth0]

# The loopback network interface
auto lo
iface lo inet loopback

#The primary network interface
auto wlan0
iface wlan0 inet static
gateway 192.168.1.1
dns-nameservers 192.168.1.1 8.8.8.8
wpa-ssid demo
wpa-psk  demo

auto eth0
iface eth0 inet static


I have created a windows 2012 VM, I can ping the machine and can take remote access via assigning floating IP address to it. But the Windows VM have no internet connection.

My Devstack localrc has following configuration

FLOATING_RANGE=192.168.1.224/27
FIXED_RANGE=10.11.12.0/24
FIXED_NETWORK_SIZE=256
FLAT_INTERFACE=eth0
SERVICE_TOKEN=f0fa4797939b91ed8207


Before this set up, I have implemented the Flat_Interface on wlan0. Everything worked perfectly but once the VM is created, we are not able to ping the laptop. So I have reinstalled the devstack but with Flat_Interface on eth0, still not able to access the internet.

The windows VM ipconfig is

Windows IP Configuration

Connection-specific DNS Suffix  . : novalocal
IPv4 Address. . . . . . . . . . . : 10.11.12.2
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . : 10.11.12.1

Media State . . . . . . . . . . . : Media disconnected
Connection-specific DNS Suffix  . : novalocal

Connection-specific DNS Suffix  . :
IPv6 Address. . . . . . . . . . . : 2001:0:9d38:90d7:20bb:17db:f5f4:f3fd
Default Gateway . . . . . . . . . : ::


I have also tried following command to setup default gateway

sudo iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE


How can i resolve the following issue?

Thanks.

 2 retagged

### unable to access internet on VM using Devstack

Hi All,

I have setup a ubuntu server with devstack running on laptop for first time. The laptop have two connection Ethernet and Wifi. I using Wifi for internet. So in my network interface, it has following configuration [I have given static address to the eth0]

# The loopback network interface
auto lo
iface lo inet loopback

#The primary network interface
auto wlan0
iface wlan0 inet static
gateway 192.168.1.1
dns-nameservers 192.168.1.1 8.8.8.8
wpa-ssid demo
wpa-psk  demo

auto eth0
iface eth0 inet static


I have created a windows 2012 VM, I can ping the machine and can take remote access via assigning floating IP address to it. But the Windows VM have no internet connection.

My Devstack localrc has following configuration

FLOATING_RANGE=192.168.1.224/27
FIXED_RANGE=10.11.12.0/24
FIXED_NETWORK_SIZE=256
FLAT_INTERFACE=eth0
SERVICE_TOKEN=f0fa4797939b91ed8207


Before this set up, I have implemented the Flat_Interface on wlan0. Everything worked perfectly but once the VM is created, we are not able to ping the laptop. So I have reinstalled the devstack but with Flat_Interface on eth0, still not able to access the internet.

The windows VM ipconfig is

Windows IP Configuration

Connection-specific DNS Suffix  . : novalocal
IPv4 Address. . . . . . . . . . . : 10.11.12.2
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . : 10.11.12.1

Media State . . . . . . . . . . . : Media disconnected
Connection-specific DNS Suffix  . : novalocal

Connection-specific DNS Suffix  . :
IPv6 Address. . . . . . . . . . . : 2001:0:9d38:90d7:20bb:17db:f5f4:f3fd
Default Gateway . . . . . . . . . : ::


I have also tried following command to setup default gateway

sudo iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE


How can i resolve the following issue?

Thanks.

 3 retagged

### unable to access internet on VM using Devstack

Hi All,

I have setup a ubuntu server with devstack running on laptop for first time. The laptop have two connection Ethernet and Wifi. I using Wifi for internet. So in my network interface, it has following configuration [I have given static address to the eth0]

# The loopback network interface
auto lo
iface lo inet loopback

#The primary network interface
auto wlan0
iface wlan0 inet static
gateway 192.168.1.1
dns-nameservers 192.168.1.1 8.8.8.8
wpa-ssid demo
wpa-psk  demo

auto eth0
iface eth0 inet static


I have created a windows 2012 VM, I can ping the machine and can take remote access via assigning floating IP address to it. But the Windows VM have no internet connection.

My Devstack localrc has following configuration

FLOATING_RANGE=192.168.1.224/27
FIXED_RANGE=10.11.12.0/24
FIXED_NETWORK_SIZE=256
FLAT_INTERFACE=eth0
SERVICE_TOKEN=f0fa4797939b91ed8207


Before this set up, I have implemented the Flat_Interface on wlan0. Everything worked perfectly but once the VM is created, we are not able to ping the laptop. So I have reinstalled the devstack but with Flat_Interface on eth0, still not able to access the internet.

The windows VM ipconfig is

Windows IP Configuration

Connection-specific DNS Suffix  . : novalocal
IPv4 Address. . . . . . . . . . . : 10.11.12.2
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . : 10.11.12.1

Media State . . . . . . . . . . . : Media disconnected
Connection-specific DNS Suffix  . : novalocal

Connection-specific DNS Suffix  . :
IPv6 Address. . . . . . . . . . . : 2001:0:9d38:90d7:20bb:17db:f5f4:f3fd

sudo iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE