OpenVZ Forum


Home » General » Support » I dont have access to internet in the vps
I dont have access to internet in the vps [message #37844] Tue, 27 October 2009 17:33 Go to next message
Augustino is currently offline  Augustino
Messages: 9
Registered: October 2009
Junior Member
I configure one brigde to get internet but i got this error:
RENETLINK answers: File exist

I do this:

# brctl addbr br0
# ifconfig eth0 0
# brctl addif br0 eth0
# ifconfig br0 192.168.1.125 netmask 255.255.255.0
# ip route add default via 192.168.1.1 dev br0
# ifconfig eth0 192.168.1.105 netmask 255.255.255.0
# ifconfig venet0 192.168.1.125 netmask 255.255.255.0
# vzctl start 777
# 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
RTNETLINK answers: File exists
# vzctl enter 777
entered into VE 777
[root@test /]# ping google.com
ping: unknown host google.com

how can I fix this?
Re: I dont have access to internet in the vps [message #37848 is a reply to message #37844] Wed, 28 October 2009 07:58 Go to previous message
kir is currently offline  kir
Messages: 1645
Registered: August 2005
Location: Moscow, Russia
Senior Member

Quote:
# vzctl exec 777 ip route add default via 192.168.1.1 dev eth0
RTNETLINK answers: File exists


This tells you there is already such a route, see output of ip route list.

Quote:
[root@test /]# ping google.com
ping: unknown host google.com


This tells you nothing but the fact that the resolver can not find an IP for DNS name google.com. It can be caused by e.g. nameserver absent from /etc/resolv.conf or unreachable.


Kir Kolyshkin
http://static.openvz.org/userbars/openvz-developer.png
Previous Topic: Template and Wrong permision's.
Next Topic: CPU Allocation with OpenVZ
Goto Forum:
  


Current Time: Wed Aug 14 18:19:11 GMT 2024

Total time taken to generate the page: 0.02816 seconds