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
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?
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.