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
address 192.168.1.201
netmask 255.255.255.0
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
address 172.10.10.10
netmask 255.255.255.0
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
ADMIN_PASSWORD=supersecret
MYSQL_PASSWORD=iheartdatabases
RABBIT_PASSWORD=flopsymopsy
SERVICE_PASSWORD=iheartksl
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
Ethernet adapter Ethernet:
Connection-specific DNS Suffix . : novalocal
Link-local IPv6 Address . . . . . : fe80::954:14a2:4bfb:f247%12
IPv4 Address. . . . . . . . . . . : 10.11.12.2
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . : 10.11.12.1
Tunnel adapter isatap.novalocal:
Media State . . . . . . . . . . . : Media disconnected
Connection-specific DNS Suffix . : novalocal
Tunnel adapter Teredo Tunneling Pseudo-Interface:
Connection-specific DNS Suffix . :
IPv6 Address. . . . . . . . . . . : 2001:0:9d38:90d7:20bb:17db:f5f4:f3fd
Link-local IPv6 Address . . . . . : fe80::20bb:17db:f5f4:f3fd%14
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.