[Fwd: [Users] Networking problem]

Denis V. Lunev den at openvz.org
Thu Feb 21 02:53:32 EST 2008


On Thu, 2008-02-21 at 10:32 +0300, Pavel Emelyanov wrote:
> 
> -------- Original Message --------
> Subject: [Users] Networking problem
> Date: Wed, 20 Feb 2008 16:58:42 +0100
> From: Dean Gostisa <dean.gostisa at gmail.com>
> Reply-To: users at openvz.org
> To: users at openvz.org
> 
> Hi,
> 
> I use Gentoo OpenVZ kernel: sys-kernel/openvz-sources-2.6.18.028.053-r2
> Vzctl: 3.0.22
> sysctl config is ok, double checked.
> 
> i have two network interfaces:
> Private: eth0 (192.168.1.0/24)
> Pubic: eth1 (193.200.0.0/24)
> 
> I set VPS and set private ip to VPS and vps had nice connection to internet
> and everything. then i try to give public ip 193.200.0.18 to VPS and then
> vps could ping default gateway 193.200.0.1, but all other internet could not
> be accessed.
> 
> Here is route output on main host:
> Kernel IP routing table
> Destination     Gateway         Genmask         Flags Metric Ref    Use
> Iface
> 192.168.1.51    *               255.255.255.255 UH    0      0        0
> venet0
> 193.200.0.18    *               255.255.255.255 UH    0      0        0
> venet0
> 192.168.1.0     *               255.255.255.0   U     1      0        0 eth0
> 193.200.0.0     *               255.255.255.0   U     0      0        0 eth1
> loopback        *               255.0.0.0       U     0      0        0 lo
> default         kerber.nevron.s 0.0.0.0         UG    0      0        0 eth1
> default         192.168.1.1     0.0.0.0         UG    1      0        0 eth0
> 
> it is wired that VPS client have gateway set to:
> 192.0.2.1 by default

Pls check your routing inside VE0 using the following command:
  ip route get 1.1.1.1 from [IP of your VE]
it should be sent to eth1.

>From my point of view, second default breaks the case.

Regards,
	Den



More information about the Users mailing list