OpenVZ Forum


Home » General » Support » Elastix on OpenVZ, I cant to do the bridge
Re: Elastix on OpenVZ, I cant to do the bridge [message #37903 is a reply to message #37896] Sat, 31 October 2009 03:27 Go to previous messageGo to previous message
Augustino is currently offline  Augustino
Messages: 9
Registered: October 2009
Junior Member
Then Should I just do the following?

Install bridge-utils with apt-get

1.Create bridge device
brctl addbr vzbr0


2. Add veth devices to bridge
brctl addif vzbr0 veth777.0


3. Configure bridge device
ifconfig vzbr0 0
echo 1 > /proc/sys/net/ipv4/conf/vzbr0/forwarding
echo 1 > /proc/sys/net/ipv4/conf/vzbr0/proxy_arp


4. The new IP for the container?
ip route add 192.168.1.125 dev vzbr0


Thats all? Should I configure the iptables?
Is needed anymore?
This is needed? or not?


# vzctl set 777 --netif_add eth0 --save
# vzctl exec 777 ifconfig eth0 192.168.1.105 netmask 255.255.255.0
# brctl addif br0 veth777.0
# vzctl exec 777 ip route add default via 192.168.1.1 dev eth0


Best Regards

[Updated on: Sat, 31 October 2009 03:27]

Report message to a moderator

 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: CPULIMIT problem
Next Topic: Live migration with host file system mounted
Goto Forum:
  


Current Time: Tue Nov 05 18:30:55 GMT 2024

Total time taken to generate the page: 0.06229 seconds