Dual nic

simonbr

New Member
Mar 18, 2015
7
0
1
Hello,

I have a small HP Proliant server with 2 nic's and I would like to use both for traffic. My original /etc/network/interfaces had this, only one NIC enabled;
Code:
auto lo
iface lo inet loopback
auto vmbr0
iface vmbr0 inet static
        address 192.168.1.129
        netmask 255.255.255.0
        gateway 192.168.1.1
        bridge_ports eth0
        bridge_stp off
        bridge_fd 0

Ive added the following lines to add the second NIC but im not sure if this is the correct way. Am I suppose to bridge both together?
Code:
auto vmbr1
iface vmbr1 inet static
        address 192.168.1.130
        netmask 255.255.255.0
        bridge_ports eth1
        bridge_stp off
        bridge_fd 0
 
You don't need an IP on any other bridges but the one you manage from.

Just create the vmbr without an IP and bridge it to your second nic. You can use it with your VMS and containers just fine.
 
You don't need an IP on any other bridges but the one you manage from.

Just create the vmbr without an IP and bridge it to your second nic. You can use it with your VMS and containers just fine.

Thank you for the answer. I am not very fluent with the interfaces file and I brought down my network trying to make the changes. Could you help me out with the changes?

Code:
auto lo
iface lo inet loopback
auto vmbr0
iface vmbr0 inet static
        address 192.168.1.129
        netmask 255.255.255.0
        gateway 192.168.1.1
        bridge_ports eth0
        bridge_stp off
        bridge_fd 0

auto vmbr1
iface vmbr1 inet static
        bridge_ports eth1
        bridge_stp off
        bridge_fd 0
 

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!