Hi,<br>
Just to add to that,<br>
I get the following error while i type /etc/init.d/network restart<br>
<span> [<a href="mailto:root@server" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">root@server</a>
~]# /etc/init.d/network restart<br> Shutting down interface venet0: [ OK
]<br> Shutting down loopback interface: [ OK ]<br> Setting network
parameters: net.ipv4.ip_forward = 0<br> error: unknown error 1 setting key
'net.ipv4.conf.default.rp_filter'<br> error: unknown error 1 setting key
<br> 'net.ipv4.conf.default.accept_source_route'<br> error: unknown
error 1 setting key 'kernel.sysrq'<br> error: unknown error 1 setting key
'kernel.core_uses_pid'<br> [FAILED]<br> Bringing up loopback interface:
[ OK ]<br> Bringing up interface venet0: [ OK ]<br><br> This Failed
line appears.<br>
Can anyone suggest that why does the VPS fails to do network restart.<br>
Thanks,<br>
Abhishek jain<br>
</span><br><div><span class="gmail_quote">On 5/17/06, <b class="gmail_sendername">abhishek jain</b> <<a href="mailto:mail@ejain.com">mail@ejain.com</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div>Hi,<br>
No the nameserver does not seem to be the problem , as i have already configured that.<br>
i have already had a entry at /etc/resolv.conf .<br>
I think the problem like in some setting for the default gateway and like.<br>
I am not sure,but that seems to be the problem to me, Can anyone suggest the right network settings for the same.<br>
Also the error i get when wget is:<br>
<br>
-bash-3.00# wget <a href="http://yahoo.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">yahoo.com</a><br>
--20:57:42-- <a href="http://yahoo.com/" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">http://yahoo.com/</a><br>
=> `index.html'<br>
Resolving yahoo.com... failed: Temporary failure in name resolution.<br>
<br>
Also this does not seem to be a firewall issue as i have not set up a firewall<br>
Thanks<br>
--<br>
Thanks,<br></div><div><span class="sg">
Abhishek jain </span></div><div><span class="e" id="q_10b4012c644c4c7b_2"><br><br><div><span class="gmail_quote">On 5/17/06, <b class="gmail_sendername"></b> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div><span>(1) From inside VE, you do not need to configure any
sysctl parameters.<br><br>(2) Probably the reason why you can not reach any
hosts from inside VE <br>is you forgot to set VE's nameserver. Please do the
following:<br>a. on the host system, check your nameserver(s) IP
address(es):<br># grep nameserver /etc/hosts<br>It should print one or more
lines in the form<br>nameserver x.x.x.x<br>where x.x.x.x is an IP address.<br>b.
Set that (those) address(es) to be VE's nameserver(s):<br># vzctl set VEID
--nameserver x.x.x.x [--nameserver y.y.y.y] --save<br><br>In fact, just one
nameserver should be sufficient.<br><br>(3) For the next time, please provide
more details. Here you wrote:<br><br>> cannot ping or wget anyfile while
inside the VPS.<br><br>It would be great to show some examples here. Say, if
nameserver is not <br>set, the error from ping or wget would be like "Temporary
failure in <br>name resolution" or "Unable to resolve hostname xxxx.tld". Since
you do <br>not give details here, we have to
guess.<br><br>Regards,<br>Kir.<br><br>abhishek jain wrote:<br><br>>>>On
Tue, May 16, 2006 at 08:08:14AM +0530, abhishek jain wrote:<br>>>>
Hi,<br>>> >I add vps via the process listed at quick install guide, i
can <br>> access the<br>>>> vps via the server on which it is hosted
, but when accessing from <br>> outside<br>>>> using the assigned IP
i access the server and not the VPS.<br>>>> I can see the ip assigned
to VPS in /sbin/ifconfig of the server.<br>><br>>>Make
sure<br>>><br>>># sysctl
net.ipv4.ip_forward<br>>><br>>>prints 1. If it doesn't, set it
with<br>><br>>># sysctl net.ipv4.ip_forward=1<br>><br>>>To
have it set on every boot you need to tweak a config file
depending<br>>>on the distro you're using. E.g. for RedHat-based distros
(RHEL,<br>>>Fedora, CentOS) this is
/etc/sysctl.conf.<br>>><br>>>IIRC this is mentioned in the
installation guide.<br>><br>>>Roman.<br>><br>> hi,<br>>
Actually the problem solved by deleting the IP from the main system.<br>> Now
another problem arised that i can access the VPS from outside but <br>>
cannot ping or wget anyfile while inside the VPS.<br>> I see the document and
it was written<br>><br>> sysctl ?w net.ipv4.tcp_ecn=0<br>><br>> I
did this both on the VPS and in the Server still no result.<br>><br>> Also
i get the following error when i start the network while inside <br>> the VPS
:<br>><br>> [<a href="mailto:root@server" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">root@server</a>
~]# /etc/init.d/network restart<br>> Shutting down interface venet0: [ OK
]<br>> Shutting down loopback interface: [ OK ]<br>> Setting network
parameters: net.ipv4.ip_forward = 0<br>> error: unknown error 1 setting key
'net.ipv4.conf.default.rp_filter'<br>> error: unknown error 1 setting key
<br>> 'net.ipv4.conf.default.accept_source_route'<br>> error: unknown
error 1 setting key 'kernel.sysrq'<br>> error: unknown error 1 setting key
'kernel.core_uses_pid'<br>> [FAILED]<br>> Bringing up loopback interface:
[ OK ]<br>> Bringing up interface venet0: [ OK ]<br>><br>> This Failed
line appears.<br>><br>> Pl. help,<br>> Thanks,<br>> Abhishek
jain<br>><br>>
------------------------------------------------------------
------------<br>></span>
</div></blockquote></div><br>
</span></div></blockquote></div><br>