[ previous ] [ next ] [ threads ]
 
 From:  "Jesse D. Guardiani" <jesse at wingnet dot net>
 To:  andreas at matrix dot boerde dot de
 Cc:  m0n0wall at lists dot m0n0 dot ch
 Subject:  Re: [m0n0wall] Re: wierd static route problem
 Date:  Tue, 05 Apr 2005 11:14:53 -0400
On Tue, 2005-04-05 at 13:16 +0200, andreas at matrix dot boerde dot de wrote:
> hi jesse
> 
> imho bsd isn't able to add a single host over iface XYZ. i tried to add a
> default gw which was in another subnet than the outer monowall iface.
> 
> 
> adding a single host route to the default router and than adding a default
> route to this always failed with many strange arp log entries. same under
> linux always works!
> 
> 
> i fixed it with adding the whole subnet of the default router.
> 
> this didn't work:
> 
> route add -host 192.168.23.33 -iface OUTER-IFACE
> route add default 192.168.23.33
> 
> this worked:
> 
> route add -net 192.168.23.0 -netmask 255.255.255.0 -iface OUTER-IFACE
> route add default 192.168.23.33
> 
> 
> maybe it is like your problem. you should add the whole subnet.
> 
> e.g.
> 
> 1: bsd with ip 192.168.1.1 iface dc0
> route add -net 192.168.45.0 -netmask 255.255.255.0 -iface dc0
> 
> 2: linux with ip 192.168.45.56 iface eth0
> route add 192.168.1.1 dev eth0

Isn't #2 what m0n0wall does by default when you enter a default route
from the WebGUI? The only difference is that I'm using a /32 instead
of a /24. I tried a /24 just now though, both on the m0n0wall and on
the asterisk machine (i.e. 192.168.90.3/24 instead of the default
192.168.90.3/32), and it didn't seem to help.


-- 
Jesse Guardiani, Systems Administrator
WingNET Internet Services,
P.O. Box 2605 // Cleveland, TN 37320-2605
423-559-LINK (v)  423-559-5145 (f)
http://www.wingnet.net