Bridging local LAN IPS to Containers on VE4.1

FrankB

Active Member
Mar 17, 2016
53
2
28
54
Zapopan, Jalisco, Mexico
hospemex.com
Has anyone figured out how to bridge local LAN IPs to containers with VE4.1? Is there a guide somewhere that could help me?

I'm trying to use proxmox to virtualize a samba server, and a FTP-server.

I have yet to be able to successfully bridge a local LAN IP to a container.
 
That works out of the box on a default setup. Did you install ontop of debian? The default setup has eth0 attached to vmbr0, and containers on vmbr0 can then use the LAN directly.
See https://pve.proxmox.com/wiki/Network_Model
 
Sounds more like you'll want the default bridged config.
 
You just have to assign your IP to vmbr0 instead of eth0 (ie the eth0 section is empty and vmbr0 becomes your main interface), then your host works same as if the bridge wasn't there.
 
You just have to assign your IP to vmbr0 instead of eth0 (ie the eth0 section is empty and vmbr0 becomes your main interface), then your host works same as if the bridge wasn't there.
Wow!! I did not think of that one.

I was in the process of getting it working like this:
Code:
auto  eth0
iface eth0 inet static
       address   <Main IP>
       netmask   255.255.255.255
       pointopoint   <Gateway>
       gateway   <Gateway>

# for single IPs
auto vmbr0
iface vmbr0 inet static
       address   <Main IP>
       netmask   255.255.255.255
       bridge_ports none
       bridge_stp off
       bridge_fd 0
       up ip route add <1st additional IP>/32 dev vmbr0
       up ip route add <2nd additional IP>/32 dev vmbr0
 
Using this worked! Thanks.
Code:
auto lo
iface lo inet loopback
iface eth0 inet manual

auto vmbr0
iface vmbr0 inet static
        address 192.168.10.2
        netmask 255.255.255.0
        gateway 192.168.10.1
        bridge_ports eth0
        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!