Proxmox 5.1 LXC Network Bridge Configuration

Ergi Ymeri

Active Member
Oct 16, 2017
15
1
43
23
Hello everyone can anyone help me with configuring lxc bridge connection.

My pve server network configuration


source /etc/network/interfaces.d/*

auto lo
iface lo inet loopback

auto enp0s25
iface enp0s25 inet static
address 192.168.0.123
netmask 255.255.255.0
gateway 192.168.0.1
broadcast 192.168.0.255
network 192.168.0.0
dns-nameservers 8.8.8.8 8.8.4.4

auto vmbr0
iface vmbr0 inet static
address 192.168.0.123
netmask 255.255.255.0
gateway 192.168.0.1
bridge_ports eth0
bridge_stp off
bridge_fd 0
 
Once thing I noticed:
bridge_ports eth0
while your interface's actual name is enp0s25
Other than that, you'll have to be more specific as to what's not working ;-)
 
  • Like
Reactions: Ergi Ymeri
Ok I have changed that before but it doesn't access anymore to web interface via ip 192.168.0.123 when i reboot it :(
 
Right. More info would be useful. (And eg. if you put an interface onto a bridge you shouldn't also give it the IP address. That should be only on the bridge (including the dns settings).)

Actually, if you don't need to do anything more complex I recommend not putting files in /etc/network/interfaces.d/, but rather, put a config where the web UI works (possibly simply the old config from above) into the /etc/network/interfaces file (rather than the .d/ directory) and then do the configuration via pve's web interface, it'll also show you the changes it's going to make to /etc/network/interfaces, and it'll apply them on the next reboot.

Otherwise, see https://wiki.debian.org/BridgeNetworkConnections for more info.