Ask Your Question

Internal interface added but not external

asked 2017-02-26 02:20:25 -0500

robetus gravatar image

I'm running Openstack packstack on CentOS 7.3 and when I create an instance the NICs look like this:

[centos@centos ~]$ ip a
1: lo: <loopback,up,lower_up> mtu 65536 qdisc noqueue state UNKNOWN qlen 1
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet scope host lo
       valid_lft forever preferred_lft forever
    inet6 ::1/128 scope host 
       valid_lft forever preferred_lft forever
2: eth0: <broadcast,multicast,up,lower_up> mtu 1450 qdisc pfifo_fast state UP qlen 1000
    link/ether fa:16:3e:4a:43:3c brd ff:ff:ff:ff:ff:ff
    inet brd scope global dynamic eth0
       valid_lft 85901sec preferred_lft 85901sec
    inet6 fd62:8b10:6bc:0:f816:3eff:fe4a:433c/64 scope global mngtmpaddr dynamic 
       valid_lft 86342sec preferred_lft 14342sec
    inet6 fe80::f816:3eff:fe4a:433c/64 scope link 
       valid_lft forever preferred_lft forever
3: eth1: <broadcast,multicast> mtu 1500 qdisc noop state DOWN qlen 1000
    link/ether fa:16:3e:bc:85:e1 brd ff:ff:ff:ff:ff:ff

As you can see the internal IPv4 and IPv6 addresses are added to the instance upon creation but the external interface which is also added to the instance config upon installation is not added automatically.

How can I get openstack to add an internal and external interface to an instance automatically? I don't want to have to use a floating IPv4 address to access the instance. I want to add a public IPv4 and IPv6 address to the instance automatically during creation through an external network interface. Is this possible?

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2017-02-26 14:25:50 -0500

raddaoui gravatar image

Hey robetus, I didn't get what you want to do exactly! what do you mean with an external and internal interface here? If you want to add two interfaces to the instance automatically, first you should attach the instance to 2 networks and then you should make sure that the image you are using to create the instance(centOS) is configured to add multiple networks, otherwise you will have to add userdata when you create the instance so that it brings the second interface up when created

edit flag offensive delete link more


Thanks for that, after doing some more reading I have found that most stock qcow2s are not able to receive two NICs automatically.

robetus gravatar imagerobetus ( 2017-02-26 19:23:49 -0500 )edit

How can I add an external interface to a VM running centos or ubuntu?

robetus gravatar imagerobetus ( 2017-02-27 23:40:16 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools



Asked: 2017-02-26 02:20:25 -0500

Seen: 49 times

Last updated: Feb 26 '17