Before take down bridge interface from Host:
After have small changes vmbr1 on Host:
Going interface up:
Notice that interfaces on vmbr1 doesn't coming up. So, the bridge connections fail: cannot ping from host to guest, and cannot ping within each other containers.
I have to manually change:
Then containers can ping guest-host and each other containers.
This is my /etc/network/interfaces on Host
On my Container:
Proxmox VE: 4.4-13/7ea56165
Code:
root@localcloud:~# brctl show
bridge name bridge id STP enabled interfaces
vmbr0 8000.0cc47ae144d0 no eth0
veth100i1
vmbr1 8000.fe1bd11c7a6b no veth100i0
veth101i0
veth102i0
After have small changes vmbr1 on Host:
Code:
root@localcloud:~# ifdown vmbr1
root@localcloud:~# brctl show
bridge name bridge id STP enabled interfaces
vmbr0 8000.0cc47ae144d0 no eth0
veth100i1
Going interface up:
Code:
root@localcloud:~# ifup vmbr1
Waiting for vmbr1 to get ready (MAXWAIT is 2 seconds).
root@localcloud:~# brctl show
bridge name bridge id STP enabled interfaces
vmbr0 8000.0cc47ae144d0 no eth0
veth100i1
vmbr1 8000.000000000000 no
Notice that interfaces on vmbr1 doesn't coming up. So, the bridge connections fail: cannot ping from host to guest, and cannot ping within each other containers.
I have to manually change:
Code:
root@localcloud:~# brctl addif vmbr1 veth102i0 veth101i0 veth100i0
root@localcloud:~# brctl show
bridge name bridge id STP enabled interfaces
vmbr0 8000.0cc47ae144d0 no eth0
veth100i1
vmbr1 8000.fe1bd11c7a6b no veth100i0
veth101i0
veth102i0
Then containers can ping guest-host and each other containers.
This is my /etc/network/interfaces on Host
Code:
auto lo
iface lo inet loopback
allow-hotplug eth0
iface eth0 inet manual
iface eth1 inet manual
auto vmbr0
iface vmbr0 inet static
address xxx.xxx.xxx.xxx
netmask 255.255.255.0
gateway xxx.xxx.xxx.xxx
bridge_ports eth0
bridge_stp off
bridge_fd 0
auto vmbr1
iface vmbr1 inet static
address 10.0.0.1
netmask 255.255.255.0
bridge_ports none
bridge_stp off
bridge_fd 0
On my Container:
Code:
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet static
address 10.0.0.2
netmask 255.255.255.0
gateway 10.0.0.1
Proxmox VE: 4.4-13/7ea56165