Unable to bridge network interface to OpenVZ container

deranjer

Active Member
Dec 28, 2010
50
1
28
I have 3 NIC cards

1 is currently not being used.

1 is in the 10.10.10.x IP range and I want to use that just for connecting to the proxmox host. It is not bridged/bonded and is simply (eth0)

1 is connected to my 192.168.1.x router and I want to use that connection for my OpenVZ container.
My 192.168.1.x interface (eth1) is part of (vmbr1) as a slaved interface. My openVZ container is connected to (vmbr1). However, I am able to connect to my host machine through EITHER IP: 10.10.10.x OR 192.168.1.x.
How do I make it so that (eth1:192.168.1.x) is connected to my OpenVZ container and is not used by my host?
 
Code:
# network interface settings
auto lo
iface lo inet loopback

iface eth0 inet manual

iface eth1 inet manual

iface eth2 inet manual

auto vmbr0
iface vmbr0 inet static
        address  10.10.10.126
        netmask  255.255.255.0
        gateway  10.10.10.1
        bridge_ports eth0
        bridge_stp off
        bridge_fd 0

auto vmbr1
iface vmbr1 inet static
        address  192.168.1.100
        netmask  255.255.255.0
        bridge_ports eth1
        bridge_stp off
        bridge_fd 0
 
Yes thank you Udo actually helped me figure that out in a different thread. I was unable to console into my machine (different issue obviously) so thought that I may have to set the IP address at the bridge in this case. However once my VM was fixed I was able to set the IP in my VM and then everything worked. Thanks!