Setting up a OpenVZ using bridge (vmbr0)
If you're setting up an OpenVZ container on Proxmox, you will also need to configure it's network interface. Luckily it's quite easy.
# vim /etc/network/interfaces
auto eth0
iface eth0 inet static
address 10.0.0.101
network 10.0.0.0
netmask 255.255.255.0
broadcast 10.0.0.255
gateway 10.0.0.1
dns-nameservers 8.8.8.8 8.8.4.4
# /etc/init.d/networking restart
Now verify that you can ping the gateway
# ping 10.0.0.1
It should respond with something like this:
PING 10.0.0.1 (10.0.0.1) 56(84) bytes of data.
64 bytes from 10.0.0.1: icmp_req=1 ttl=64 time=0.890 ms
64 bytes from 10.0.0.1: icmp_req=2 ttl=64 time=0.091 ms
Comments
Post a Comment