| 
		
			| *SOLVED* Need help with networking [message #21146] | Tue, 02 October 2007 14:14  |  
			| 
				
				
					|  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 |  
	|  |  | 
	|  | 
	|  | 
	|  | 
	|  |