OpenVZ Forum


Home » General » Support » *SOLVED* Need help with networking
*SOLVED* Need help with networking [message #21146] Tue, 02 October 2007 14:14 Go to next message
kshade is currently offline  kshade
Messages: 2
Registered: October 2007
Location: Germany
Junior Member
Hi,

I just started with OpenVZ and can't get networking to work. My setup looks like this:
[Internet]
   ^
   |
  eth0
   |
   v
[OpenVZ-Server (Public IP)]
   |vnet
[VE (Private IP)]


I can Ping the servers IP from the VE and the VEs private IP from the Host, ssh also works between them, but the VE can't acces the Internet. Probably a routing problem but I'm stuck :(

The routing tables:

Host:
crct master ~ # route
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
192.168.0.100   *               255.255.255.255 UH    0      0        0 venet0
77.37.6.0       *               255.255.255.0   U     0      0        0 eth0
loopback        *               255.0.0.0       U     0      0        0 lo
default         77.37.6.1       0.0.0.0         UG    0      0        0 eth0


VE:
oldserver ~ # route
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
192.0.2.0       *               255.255.255.0   U     0      0        0 venet0
127.0.0.0       *               255.0.0.0       U     0      0        0 lo
default         192.0.2.1       0.0.0.0         UG    0      0        0 venet0


Issuing the route command on the VE takes some time. The VEs /etc/conf.d/net looks like this:
config_venet0=(   "192.168.0.100/32" )
routes_venet0=(  "-net 192.0.2.0/24"  "default via 192.0.2.1" )

Note the default GW. Is this right?

Both Host and VE run on Gentoo.

[Updated on: Wed, 03 October 2007 10:36]

Report message to a moderator

Re: Need help with networking [message #21158 is a reply to message #21146] Tue, 02 October 2007 17:50 Go to previous messageGo to next message
rickb is currently offline  rickb
Messages: 368
Registered: October 2006
Senior Member
Most common causes for this are deny rules in your forward chain or packet forwarding disabled on the hardware node. Please check and let us know.

Rick


-------------
Common Terms I post with: http://wiki.openvz.org/Category:Definitions

UBC. Learn it, love it, live it: http://wiki.openvz.org/Proc/user_beancounters
Re: Need help with networking [message #21184 is a reply to message #21146] Wed, 03 October 2007 07:59 Go to previous messageGo to next message
AN@S is currently offline  AN@S
Messages: 1
Registered: October 2007
Junior Member
Hello,
I'm having the same problem, please do post the solution here when you get this resolved.
Re: Need help with networking [message #21194 is a reply to message #21184] Wed, 03 October 2007 08:50 Go to previous messageGo to next message
maratrus is currently offline  maratrus
Messages: 1495
Registered: August 2007
Location: Moscow
Senior Member
http://wiki.openvz.org/Using_NAT_for_VE_with_private_IPs
Have you read this article? May be it would be useful for your case.
Re: Need help with networking [message #21199 is a reply to message #21194] Wed, 03 October 2007 10:35 Go to previous message
kshade is currently offline  kshade
Messages: 2
Registered: October 2007
Location: Germany
Junior Member
maratrus wrote on Wed, 03 October 2007 10:50

http://wiki.openvz.org/Using_NAT_for_VE_with_private_IPs
Have you read this article? May be it would be useful for your case.

Ah, thanks a lot, that helped :)

[Updated on: Wed, 03 October 2007 10:36]

Report message to a moderator

Previous Topic: "VZ QUOTA: disk hardlimit reached" in klog but quota not actually reached
Next Topic: IP address issue from HW -> VPS
Goto Forum:
  


Current Time: Wed Oct 09 03:23:51 GMT 2024

Total time taken to generate the page: 0.05365 seconds