I dont have access to internet in the vps
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
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.