*SOLVED* no internet inside ve [message #25544] |
Sat, 29 December 2007 13:10 |
dny
Messages: 5 Registered: December 2007
|
Junior Member |
|
|
hi all.
just start trying openvz.
i follow everything from the openvz wiki.
everything installed ok on latest updated centos 5.1
i can start and ping and enter and ssh into ve.
but, once inside ve, i dont have internet.
cant ping anywhere except the host.
in the wiki http://wiki.openvz.org/VE_creation
there's nowhere mention about routing or gateway.
i try to add default gateway inside ve:
$ route add default gw 172.16.1.1
SIOCADDRT: Network is unreachable
where did i go wrong?
tia.
--
rgds.dennyhalim.com
Mesin Cari Indonesia! http://indosearch.blogspot.com
Pasang Widgets di Web/Blog Loe! http://wiki.dennyhalim.com/mywidget
Berita Mutakhir di PDA/Ponsel Loe! m.dennyhalim.com
... they look but do not see and hear but do not listen or understand. Mat 13:13
... but that which cometh out of the mouth, this defileth a man. Mat 15:11
[Updated on: Tue, 01 January 2008 16:40] by Moderator Report message to a moderator
|
|
|
Re: no internet inside ve [message #25545 is a reply to message #25544] |
Sat, 29 December 2007 13:33 |
|
dny wrote:
> hi all.
>
> just start trying openvz.
> i follow everything from the openvz wiki.
>
> everything installed ok on latest updated centos 5.1
> i can start and ping and enter and ssh into ve.
>
> but, once inside ve, i dont have internet.
> cant ping anywhere except the host.
>
Do you try to ping using IPs or hostnames? Is name resolving working?
|
|
|
|
|
|
Re: no internet inside ve [message #25558 is a reply to message #25544] |
Sun, 30 December 2007 13:41 |
dny
Messages: 5 Registered: December 2007
|
Junior Member |
|
|
On Dec 30, 2007 4:20 PM, <caricand@lifc.univ-fcomte.fr> wrote:
> In your virtualbox host, not virtualbox VE, do you have network ?
> Can you ping your host machine and/or outside your network ?
>
>
>
yes. off course.
i can access my router, access point, other computers, etc...
i can ping, browse, messenger, voip, bittorrent, everything.
btw. it's important to make this clear!
openvz run outside virtualbox. not inside virtualbox!
this is how i setup my system:
http://wiki.dennyhalim.com/centos-with-openvz-and-virtualbox
my computer even accessible from internet.
i setup sshd which is accessible from the whole world for my tunneling use.
but the ve is not accessible from the lan and cant access other lan too.
all pc, host and ve, everything is in same subnet.
|
|
|
Re: no internet inside ve [message #25562 is a reply to message #25558] |
Sun, 30 December 2007 15:56 |
dev
Messages: 1693 Registered: September 2005 Location: Moscow
|
Senior Member |
|
|
make sure you have applied all the sysctl parameters from OpenVZ guide,
especially ip_forward.
Also make sure iptables -L confirms you have no firewall.
If it won't help, try running tcpdump in VE and then in VE0
to chech where/who traffic goes thru.
Thanks,
Kirill
dny wrote:
> On Dec 30, 2007 4:20 PM, <caricand@lifc.univ-fcomte.fr> wrote:
>
>>In your virtualbox host, not virtualbox VE, do you have network ?
>>Can you ping your host machine and/or outside your network ?
>>
>>
>>
>
>
> yes. off course.
>
> i can access my router, access point, other computers, etc...
> i can ping, browse, messenger, voip, bittorrent, everything.
>
> btw. it's important to make this clear!
> openvz run outside virtualbox. not inside virtualbox!
> this is how i setup my system:
> http://wiki.dennyhalim.com/centos-with-openvz-and-virtualbox
>
> my computer even accessible from internet.
> i setup sshd which is accessible from the whole world for my tunneling use.
>
> but the ve is not accessible from the lan and cant access other lan too.
> all pc, host and ve, everything is in same subnet.
|
|
|
Re: no internet inside ve [message #25563 is a reply to message #25562] |
Sun, 30 December 2007 16:21 |
dny
Messages: 5 Registered: December 2007
|
Junior Member |
|
|
On Dec 30, 2007 10:56 PM, Kirill Korotaev <dev@sw.ru> wrote:
> make sure you have applied all the sysctl parameters from OpenVZ guide,
> especially ip_forward.
> Also make sure iptables -L confirms you have no firewall.
>
> If it won't help, try running tcpdump in VE and then in VE0
> to chech where/who traffic goes thru.
>
> Thanks,
> Kirill
>
>
GREAT!
it works now!
thanks a lot!
i know i edit that file before.
just have forgot to double check it...
thank you all!
--
rgds.dennyhalim.com
Mesin Cari Indonesia! http://indosearch.blogspot.com
Pasang Widgets di Web/Blog Loe! http://wiki.dennyhalim.com/mywidget
Berita Mutakhir di PDA/Ponsel Loe! m.dennyhalim.com
... they look but do not see and hear but do not listen or understand. Mat 13:13
... but that which cometh out of the mouth, this defileth a man. Mat 15:11
|
|
|