VM instance NOT getting proper IP
I Have installed devstack method on a single server [NOT VM]. Due to our lab network issue, i need to have the following network setup [for proper routing] :
/etc/network/
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet static
address 192.168.124.81
netmask 255.255.255.0
post-up route add default gw 192.168.124.1 metric 2
pre-down route del default gw 192.168.124.1
# The primary network interface
auto eth1
iface eth1 inet static
address 10.1.62.1
netmask 255.255.192.0
post-up route add default gw 10.1.0.10 metric 1
pre-down route del default gw 10.1.0.10
route -n command shows:
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
0.0.0.0 10.1.0.10 0.0.0.0 UG 1 0 0 eth1
0.0.0.0 192.168.124.1 0.0.0.0 UG 2 0 0 br100
10.0.0.0 0.0.0.0 255.255.255.0 U 0 0 0 br100
10.1.0.0 0.0.0.0 255.255.192.0 U 0 0 0 eth1
192.168.122.0 0.0.0.0 255.255.255.0 U 0 0 0 virbr0
192.168.124.0 0.0.0.0 255.255.255.0 U 0 0 0 br100
ifconfig from host/controller
br100 Link encap:Ethernet HWaddr ac:16:2d:72:0c:98
inet addr:10.0.0.3 Bcast:10.0.0.255 Mask:255.255.255.0
inet6 addr: fe80::6839:
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:88 errors:0 dropped:0 overruns:0 frame:0
TX packets:27 errors:0 dropped:0 overruns:0 carrier:0
RX bytes:41121 (41.1 KB) TX bytes:3600 (3.6 KB)
eth0 Link encap:Ethernet HWaddr ac:16:2d:72:0c:98
inet6 addr: fe80::ae16:
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:524 errors:0 dropped:34 overruns:0 frame:0
TX packets:35 errors:0 dropped:0 overruns:0 carrier:0
RX bytes:202929 (202.9 KB) TX bytes:4928 (4.9 KB)
eth1 Link encap:Ethernet HWaddr ac:16:2d:72:0c:99
inet addr:10.1.62.1 Bcast:10.1.63.255 Mask:255.255.192.0
inet6 addr: fe80::ae16:
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:472730 errors:0 dropped:0 overruns:0 frame:0
TX packets:197095 errors:0 dropped:0 overruns:0 carrier:0
RX bytes:521426236 (521.4 MB) TX bytes:16631717 (16.6 MB)
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:27123 errors:0 dropped:0 overruns:0 frame:0
TX packets:27123 errors:0 dropped:0 overruns:0 carrier:0
RX bytes:43731564 (43.7 MB) TX bytes:43731564 (43.7 MB)
virbr0 Link encap:Ethernet HWaddr 9e:fd:d4:f4:20:9d
inet addr:192.168.122.1 Bcast:192.
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
vnet0 Link encap:Ethernet HWaddr fe:16:3e:e1:40:62
inet6 addr: fe80::fc16:
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:3 errors:0 dropped:0 overruns:0 frame:0
TX packets:14 errors:0 dropped:0 overruns:0 carrier:0
RX bytes:1323 (1.3 KB) TX bytes:2976 (2.9 KB)
ISSUE: When i create a VM instance via command ' nova boot --image cirros-
' , it is getting the public IP assigned in 'nova list' as follows:
nova list
+------
| ID | Name | Status | Networks |
+------
| 44b5a5bd-
+------
But as you can see, there is no IP assigned in vnet0.
My localrc is as follows:
ADMIN_PASSWORD=
MYSQL_PASSWORD=
RABBIT_
SERVICE_
SERVICE_
I run nova secgroup-add-rule default tcp 22 22 0.0.0.0/0 AND nova secgroup-add-rule default icmp -1 -1 0.0.0.0/0 but still not able to ping OR SSH to the instance. This never worked form me.. Plz provide some pointers..
Question information
- Language:
- English Edit question
- Status:
- Solved
- Assignee:
- No assignee Edit question
- Solved by:
- novelkumar
- Solved:
- Last query:
- Last reply: