Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 20 May 2013 16:07:50 -0400
From:      Andre Goree <andre@drenet.net>
To:        freebsd-questions@freebsd.org
Subject:   Re: route problem
Message-ID:  <d912f05d46dc64a4da29b9bc622b96d8@drenet.net>
In-Reply-To: <519A8074.7070107@fuckaround.org>
References:  <519A8074.7070107@fuckaround.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On 2013-05-20 3:58 pm, Pol Hallen wrote:
> Hi folks! On my lan I've:
> 
> server1
> 
> re0 - 192.168.1.250
> xl0 - 192.168.2.250
> 
> default            192.168.1.212      UGS         0      189    re0
> 127.0.0.1          link#8             UH          0       18    lo0
> 192.168.1.0/24     link#1             U           0     6145    re0
> 192.168.1.250      link#1             UHS         0        0    lo0
> 192.168.2.0/24     link#7             U           0     2282    xl0
> 192.168.2.250      link#7             UHS         0        0    lo0
> 
> and gateway_enable="YES"
> 
> from server1 I can ping whole lan: 192.168.1.0/24, 192.168.2.0/24
> 
> from server2
> 
> re0 - 192.168.2.52
> 
> Destination        Gateway            Flags    Refs      Use  Netif 
> Expire
> default            192.168.2.250      UGS         0     8450   fxp0
> 127.0.0.1          link#8             UH          0        0    lo0
> 192.168.2.52       link#6             UHS         0        0    lo0
> 
> I can ping 192.168.2.0/24 and ONLY 192.168.1.250.
> 
> I need ping 192.168.1.0/24 lan but I can only see 192.168.1.250
> 
> any idea?
> 
> thanks!
> 
> Pol

I'm pretty sure you need a route on "server2" to 192.168.1.0/24.

Try:

route add 192.168.1.0/24 192.168.2.250


-- 
Andre Goree
-=-=-=-=-=-
Email     - andre@drenet.net
Website   - http://blog.drenet.net
PGP key   - http://www.drenet.net/0x83ADAAAB.asc
-=-=-=-=-=-



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?d912f05d46dc64a4da29b9bc622b96d8>