Ask Your Question

How to add 2 network interface cards to an instance which created with centos 7 image? I already add the second interface but it isn't running how can i run it on centos 7

asked 2017-03-28 04:21:30 -0500

Azza Khalel gravatar image

I added two NIC cards to an instance then ssh -i <key.pem> centos@<ip> ifconfig; only one interface that appear and when i run ifconfig -a the second interface is appeared but haven't IP. FYI: the instance is a centos 7 How can i make the second interface to be running?

edit retag flag offensive close merge delete


The Centos image only configures a single interface. You have to add ifcfg-eth1 or whatever that's called. You could use libguestfs-tools as suggested in the answer, or launch a VM, add the network config, then snapshot that VM.

Bernd Bausch gravatar imageBernd Bausch ( 2017-03-28 20:47:48 -0500 )edit

1 answer

Sort by ยป oldest newest most voted

answered 2017-03-28 17:46:21 -0500

dbaxps gravatar image

Option 1 : Update qcow2 CentOS 7 image via libguestfs-tools - see
Option 2 : Advanced knowledge of Neutron CLI ( no matter which image was used for launching VM)

edit flag offensive delete link more

Get to know Ask OpenStack

Resources for moderators

Question Tools


Asked: 2017-03-28 04:21:30 -0500

Seen: 1,134 times

Last updated: Mar 28 '17