> -----Original Message-----
> From: Satish Patel [mailto:[email protected]]
> Sent: Wednesday, September 7, 2016 1:10 PM
> To: openstack <[email protected]>
> Subject: [Openstack] dual interface instance not getting IP from DHCP after
> reboot
> 
> 
> but today i have added one more interface on instance eth1 which is not
> getting IP address itself when i reboot VM. I need to run following
> command to get IP
> 
> vm# dhclient eth1
> 
> is that normal?
[Kaustubh] It would depend on the image. I presume you are using pre-built 
cloud images? Ubuntu Trusty cloud image for example, only configures the first 
network interface to ask IP address via DHCP. If you want to have another 
interface query for IP address, you need to have that configuration existing in 
the image. If you look at /etc/network/interfaces file, it includes *.cfg files 
within /etc/network/interfaces.d directory. The file eth0.cfg for example, 
would have something like this:
auto eth0
iface eth0 inet dhcp
You could create eth1.cfg on similar lines. If you are using CentOS or RedHat 
image, the relevant files would be under /etc/sysconfig/network-scripts/.
 
Hope this helps.


-Kaustubh

> 
> _______________________________________________
> Mailing list: http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
> Post to     : [email protected]
> Unsubscribe : http://lists.openstack.org/cgi-
> bin/mailman/listinfo/openstack

_______________________________________________
Mailing list: http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
Post to     : [email protected]
Unsubscribe : http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack

Reply via email to