分页: 1 / 1

ubuntu server 8.04下openvz创建的虚拟机无法连接网络

发表于 : 2010-07-09 19:49
a6527489
#This configuration file is auto-generated.
#WARNING: Do not edit this file, otherwise your changes will be lost.
#Please edit template /etc/network/interfaces.template instead.
#Auto generated interfaces
auto lo
iface lo inet loopback
auto venet0
iface venet0 inet static
address 127.0.0.1
netmask 255.255.255.0
broadcast 0.0.0.0
up route add -net 192.0.2.1 netmask 255.255.255.255 dev venet0
up route add default gw 192.0.2.1
auto venet0:0
iface venet0:0 inet static
address 192.168.1.191
netmask 255.255.255.255
broadcast 0.0.0.0
gateway 192.168.1.237 #237是我真实主机的IP

以上是我虚拟机的网卡配置.可以ping通237
但ping不出去.只限本机!
听说要配置桥接..但在网上没找到相应的配置文件,
跪求高手.帮帮小弟怎么桥接! :em06 灰常感谢!