OpenVZ Forum


Home » Mailing lists » Users » Re: [Fwd: Networking problem]
Re: [Fwd: Networking problem] [message #27620] Thu, 21 February 2008 07:53
den is currently offline  den
Messages: 494
Registered: December 2005
Senior Member
From: openvz.org
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@gmail.com>
> Reply-To: users@openvz.org
> To: users@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
Previous Topic: Emulating Routing
Next Topic: Re: [Fwd: Complex routing and bridging with OpenVZ]
Goto Forum:
  


Current Time: Mon Aug 19 14:32:15 GMT 2019