Adding Second NIC issues with CentOS

jkoral

New Member
Dec 8, 2016
7
0
1
51
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.
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!