Openvz

Create virtual bridge interface (Debian)

настройка на основной системе:
[host-node]# ifdown eth0
- create the bridge
[host-node]# brctl addbr br0
- add eth0
[host-node]# brctl addif br0 eth0
- each bridge interface must be up, but with no ip address
[host-node]# ifconfig eth0 0
- now run DHCP for the bridge (client dependent)
[host-node]# dhcpcd br0
— or —
[host-node]# dhclient3 br0

In config file:
auto xenbr0
iface xenbr0 inet static
bridge_ports eth0 eth4 eth7 # bridge traffic between these interfaces
bridge_stp no
address 10.0.0.1
netmask 255.255.255.0
network 10.0.0.0
broadcast 10.0.0.255

Home: unix