Hi all,
I'm attempting to setup openbsd 4.0 as a router, the system has two
interfaces, rl0 and rl1. It looks something like this (apologies if
this looks really odd):
router [x.x.58.129] --- router2: rl0 [x.x.58.130]
router2: rl1 [x.x.58.140] ---
DMZ subnet x.x.58/28
I've tried:
route add -net x.x.58.128 -netmask 255.255.255.240 -iface x.x.58.140
route add -host x.x.58.129 -iface x.x.58.130
However, then packets to x.x.58.129 don't seem to be routed through
rl0, but I can ping everything on that subnet.
If I do:
route add -net x.x.58.128 -netmask 255.255.255.240 -iface x.x.58.130
Then I can ping x.x.58.129, but then I obviously can't ping anything
else on that subnet since it's connected through rl1.
Internet:
Destination Gateway Flags Refs Use Mtu Interface
default x.x.58.129 UGS 8 141451 - rl0
x.x.58.128/28 link#2 UC 7 0 - rl0
x.x.58.129 00:50:7f:09:0e:1c UHLc 2 6966 - rl0
Under Linux I just had:
Destination Gateway Genmask Flags MSS Window irtt Iface
x.x.58.129 0.0.0.0 255.255.255.255 UH 0 0 0 eth1
x.x.58.128 0.0.0.0 255.255.255.240 U 0 0 0 eth2
10.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 eth0
0.0.0.0 x.x.58.129 0.0.0.0 UG 0 0 0 eth1
..and it 'just worked'..
I've read through the manpage for route, to no avail.
Any hints?
Thanks in advance,
--
-Jamie L. Penman-Smithson <[EMAIL PROTECTED]>