OpenVZ Forum


Home » General » Support » DNS wont work and cant ping but it works...
Re: DNS wont work and cant ping but it works... [message #27402 is a reply to message #27395] Sat, 16 February 2008 22:00 Go to previous messageGo to previous message
KyleC is currently offline  KyleC
Messages: 21
Registered: October 2007
Junior Member

Vasily Tarasov wrote on Sat, 16 February 2008 14:56

According to the output of your network init script on HN, it disables IP forwarding:
[root@monster ~]# service network restart
Shutting down interface eth0: [ OK ]
Shutting down interface venet0: Shutting down interface venet0: [ OK ]
Shutting down loopback interface: [ OK ]
Disabling IPv4 packet forwarding: net.ipv4.ip_forward = 0
It explains why you can't ping external nodes.

You can turn IP forwarding on by (on HN)
 # sysctl net.ipv4.ip_forward=1
To make this change permanent use /etc/sysctl.conf file.

HTH,
Vasily



hi, that still didnt fix it. anything else? and the reason why it shut down ip_forwarding is because it was restarting the network. =1 is in my config file not =0

[Updated on: Sat, 16 February 2008 22:01]

Report message to a moderator

 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Debian guest iptables config
Next Topic: High number of /proc/user_beancounters failcnt
Goto Forum:
  


Current Time: Fri Oct 10 19:52:53 GMT 2025

Total time taken to generate the page: 0.10402 seconds