Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Why does my instance not receive a DHCP address?

I created a CentOS6.4 image and launched an instance from it. The instance did not receive an IP address via DHCP though it did show an IP against the instance in the dashboard. What do I need to set up for DHCP to work? I configured a static IP, 172.16.100.2 on the instance and have external connectivity so the network is good.

OpenStack Icehouse on Ubuntu 14.04 LTS

qa-openstack01~# nova-manage service list Binary Host Zone Status State Updated_At nova-consoleauth qa-openstack01 internal enabled :-) 2014-08-25 13:11:47 nova-conductor qa-openstack01 internal enabled :-) 2014-08-25 13:11:51 nova-network qa-openstack01 internal enabled :-) 2014-08-25 13:11:55 nova-cert qa-openstack01 internal enabled :-) 2014-08-25 13:11:48 nova-scheduler qa-openstack01 internal enabled :-) 2014-08-25 13:11:48 nova-compute qa-openstack01 nova enabled :-) 2014-08-25 13:11:47

qa-openstack01~# nova-manage network list id IPv4 IPv6 start address DNS1 DNS2 VlanID project uuid 1 172.16.100.0/24 None 172.16.100.2 8.8.4.4 None None None 73d38e7c-1ef1-4d1a-b287-0d684643a928

qa-openstack01~# ifconfig br100 Link encap:Ethernet HWaddr 00:22:64:9b:38:46 inet addr:172.16.100.1 Bcast:172.16.100.255 Mask:255.255.255.0 inet6 addr: fe80::b0a6:27ff:fefa:1ece/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:24336 errors:0 dropped:0 overruns:0 frame:0 TX packets:12717 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:1643645 (1.6 MB) TX bytes:1772781 (1.7 MB)

eth0 Link encap:Ethernet HWaddr 00:22:64:9b:38:46 inet6 addr: fe80::222:64ff:fe9b:3846/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:14997576 errors:0 dropped:135 overruns:0 frame:0 TX packets:1496071 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:22699079975 (22.6 GB) TX bytes:108407007 (108.4 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:65536 Metric:1 RX packets:1256344 errors:0 dropped:0 overruns:0 frame:0 TX packets:1256344 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:21614240521 (21.6 GB) TX bytes:21614240521 (21.6 GB)

virbr0 Link encap:Ethernet HWaddr ce:54:db:b2:ae:07 inet addr:192.168.122.1 Bcast:192.168.122.255 Mask:255.255.255.0 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 collisions:0 txqueuelen:0 RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)

vnet0 Link encap:Ethernet HWaddr fe:16:3e:32:54:3d inet6 addr: fe80::fc16:3eff:fe32:543d/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:428 errors:0 dropped:0 overruns:0 frame:0 TX packets:13829 errors:0 dropped:1026 overruns:0 carrier:0 collisions:0 txqueuelen:500 RX bytes:67770 (67.7 KB) TX bytes:946987 (946.9 KB)

Why does my instance not receive a DHCP address?

I created a CentOS6.4 image and launched an instance from it. The instance did not receive an IP address via DHCP though it did show an IP against the instance in the dashboard. What do I need to set up for DHCP to work? I configured a static IP, 172.16.100.2 on the instance and have external connectivity so the network is good.

OpenStack Icehouse on Ubuntu 14.04 LTS

qa-openstack01~# nova-manage service list
Binary           Host                                 Zone             Status     State Updated_At
nova-consoleauth qa-openstack01                       internal         enabled    :-)   2014-08-25 13:11:47
nova-conductor   qa-openstack01                       internal         enabled    :-)   2014-08-25 13:11:51
nova-network     qa-openstack01                       internal         enabled    :-)   2014-08-25 13:11:55
nova-cert        qa-openstack01                       internal         enabled    :-)   2014-08-25 13:11:48
nova-scheduler   qa-openstack01                       internal         enabled    :-)   2014-08-25 13:11:48
nova-compute     qa-openstack01                       nova             enabled    :-)   2014-08-25 13:11:47

13:11:47 qa-openstack01~# nova-manage network list id IPv4 IPv6 start address DNS1 DNS2 VlanID project uuid 1 172.16.100.0/24 None 172.16.100.2 8.8.4.4 None None None 73d38e7c-1ef1-4d1a-b287-0d684643a928

73d38e7c-1ef1-4d1a-b287-0d684643a928 qa-openstack01~# ifconfig br100 Link encap:Ethernet HWaddr 00:22:64:9b:38:46 inet addr:172.16.100.1 Bcast:172.16.100.255 Mask:255.255.255.0 inet6 addr: fe80::b0a6:27ff:fefa:1ece/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:24336 errors:0 dropped:0 overruns:0 frame:0 TX packets:12717 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:1643645 (1.6 MB) TX bytes:1772781 (1.7 MB)

MB) eth0 Link encap:Ethernet HWaddr 00:22:64:9b:38:46 inet6 addr: fe80::222:64ff:fe9b:3846/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:14997576 errors:0 dropped:135 overruns:0 frame:0 TX packets:1496071 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:22699079975 (22.6 GB) TX bytes:108407007 (108.4 MB)

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:65536 Metric:1 RX packets:1256344 errors:0 dropped:0 overruns:0 frame:0 TX packets:1256344 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:21614240521 (21.6 GB) TX bytes:21614240521 (21.6 GB)

GB) virbr0 Link encap:Ethernet HWaddr ce:54:db:b2:ae:07 inet addr:192.168.122.1 Bcast:192.168.122.255 Mask:255.255.255.0 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 collisions:0 txqueuelen:0 RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)

B) vnet0 Link encap:Ethernet HWaddr fe:16:3e:32:54:3d inet6 addr: fe80::fc16:3eff:fe32:543d/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:428 errors:0 dropped:0 overruns:0 frame:0 TX packets:13829 errors:0 dropped:1026 overruns:0 carrier:0 collisions:0 txqueuelen:500 RX bytes:67770 (67.7 KB) TX bytes:946987 (946.9 KB)

KB)