Adding Second NIC issues with CentOS

jkoral

New Member
Dec 8, 2016
7
0
1
52
I am using ProxMox 4.3 and have 4 Linux Bridges setup so I can have Virtual Machines on any given subnet. Or a virtual machine on multiple subnets. That is where I am having an issue.

I have a virtual machine setup with CentOS and the first NIC (vmbr0) is working fine, which is routable and I am able to get to the internet. It shows up under /etc/sysconfig/network-scripts/ifcfg-eth0 and I'm able to configure it just fine. I then added a second NIC (vmbr3), but the problem is, I do not see it as ifcfg-eth1. If I do an lspci, it does show up, but I just cannot configure it.

Any ideas? I have rebooted both the virtual machine and the host.

Thanks
 
So if understand youi right, you added a second NIC to your VM, and this second NIC is bridged on the host to vmbr3.

What is the ouput of

ip link

inside the Centos guest ?

You should see the two NICS, with LOWER_UP indicating they're properly bridged.

Concerning the file /etc/sysconfig/network-scripts/ifcfg-eth1 you have to create it by yourself, I suppose /etc/sysconfig/network-scripts/ifcfg-eth0 was created by the Centos Installer.
 
Thanks for your reply. I did ip link and it does show eth1. Before I posted this, I did try to create the ifcfg-eth1 file, but just found out that I need to do uuidgen eth1 on the new interface. Then I created the file and everything is working fine now.

Thanks, using ip link showed me that there actually was an eth1. Must appreciated.