how to provide internal networking?

Jae Lee

Renowned Member
hi guys

i've got a second NIC that I'd like to use to provide internal networking to VM's.
i been messing around w/ setting up eth1 and vmbr1 from web-gui but it's to no avail.
and yes, i rebooted after i saved them.
anyhow, anyone got a good tutorial for achieving this? surely i can't be the only one needing this, it's gotta be a common thing, but i can't find much info out there.

thx in advance.
 
I only use KVM and I dont know if with containers is the same, but you need to create a new bridge with your second nic and assigne it that bridge as a second network interface to your VM's.

eth0-->vmbr0 ---> WAN
eth1--->vmbr1 ---> Lan
 
thats what im trying to do, but how do i do this?
so far server works fine w/ the default eth0/vmbr0 which is WAN.
but now i want to provide a LAN and so i created as you said, eth1 and vmbr1.
it shows up in GUI as active: no, autostart: no, for both eth1 and vmbr1.
what am i doing wrong here?
 
Here it is:

auto lo
iface lo inet loopback


auto eth0 eth1
iface eth0 inet static
address 173.199.143.197
netmask 255.255.255.240
network 173.199.143.192
broadcast 173.199.143.207
gateway 173.199.143.193
dns-nameservers 8.8.8.8
dns-search xxx.com


iface eth1 inet static
address 1.1.1.101
netmask 255.255.255.0
gateway 1.1.1.1
network 1.1.1.0
broadcast 1.1.1.255
 
I think your config is wrong. You need something like this:

auto eth0
iface eth0 inet manual

auto eth1
iface eth1 inet manual

auto vmbr0
iface vmbr0 inet static
address 173.199.143.197
netmask 255.255.255.240
gateway 173.199.143.193
bridge_ports eth0
bridge_stp off
bridge_fd 0

auto vmbr1
iface vmbr1 inet static
address 1.1.1.101
netmask 255.255.255.0
gateway 1.1.1.1
bridge_ports eth1
bridge_stp off
bridge_fd 0


In your config you dont have any bridge configured. In this config you must use vmbr0 for WAN and vmbr1 for LAN
 
Remove the newely created bridge in web interface and recreate the bridge again in web interface. Restart the server.

Or you can create dummy interface (for internal connection only) and bridge on top:

Code:
modprobe -o dummy0 dummy
ifconfig dummy0 up
brctl addbr vmbr10
brctl addif vmbr10 dummy0
ifconfig vmbr10 up
 

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!