OpenVZ Forum


Home » General » Support » *SOLVED* No Internet access on VEs (but I get remote SSH access)
*SOLVED* No Internet access on VEs (but I get remote SSH access) [message #24153] Sat, 01 December 2007 21:22 Go to next message
etechship is currently offline  etechship
Messages: 4
Registered: December 2007
Location: Minnesota
Junior Member
I have a computer running the OpenVZ live CD (for testing) and I followed the tutorial that popped up, and it all worked. I added the IP address, but when I try to ping google, or run apt-get update from the VE, it errors out. I can ping google form the main NH.

dave


Plappert

[Updated on: Sun, 02 December 2007 21:33] by Moderator

Report message to a moderator

Re: No Internet access on VEs (but I get remote SSH access) [message #24163 is a reply to message #24153] Sun, 02 December 2007 03:15 Go to previous messageGo to next message
Vasily Tarasov is currently offline  Vasily Tarasov
Messages: 1345
Registered: January 2006
Senior Member
Hello,

Quote:

...when I try to ping google, or run apt-get update from the VE, it errors out...

1) What error does appear?
2) Did you set up NAT (iptables command)? It is also described in the tutorial that pops up.

HTH,
Vasily
Re: No Internet access on VEs (but I get remote SSH access) [message #24164 is a reply to message #24163] Sun, 02 December 2007 03:17 Go to previous messageGo to next message
etechship is currently offline  etechship
Messages: 4
Registered: December 2007
Location: Minnesota
Junior Member
no errors appear. When pinging, it just gives you the "unknown host" error.

I followed everything from the pop-up.

Like described above, I can get remote SSH access to it from another machine on the network and I can get internet on the NH(main machine)

thanks
dave


Plappert
Re: No Internet access on VEs (but I get remote SSH access) [message #24166 is a reply to message #24164] Sun, 02 December 2007 03:34 Go to previous messageGo to next message
Vasily Tarasov is currently offline  Vasily Tarasov
Messages: 1345
Registered: January 2006
Senior Member
Can you please give us output of the following commands in VE _and_ on HN:

ip r l
ip a l
iptables -nv -L
iptables -nv -t nat -L
cat /proc/sys/net/ipv4/ip_forward

Thank you.
Re: No Internet access on VEs (but I get remote SSH access) [message #24169 is a reply to message #24166] Sun, 02 December 2007 08:00 Go to previous message
esoterik is currently offline  esoterik
Messages: 5
Registered: December 2007
Junior Member
for me editing (in the VE)

vi /etc/resolv.conf

Entering in a valid nameserver solved the issue (checked and replaced from the host node)

[Updated on: Sun, 02 December 2007 08:02]

Report message to a moderator

Previous Topic: Global configuration file /etc/vz/vz.conf
Next Topic: Unable to run OpenVPN - "openvpn --mktun --dev tap0" fails
Goto Forum:
  


Current Time: Thu Jun 01 16:25:30 GMT 2023

Total time taken to generate the page: 0.01432 seconds