On Sun, May 02, 2010 at 01:03:50PM +0200, Eugen Leitl wrote:
> I'm attempting to simulate a production network 88.198.238.112/28
> with gateway 88.198.238.113 on the OPT1 interface (set to 88.198.238.113)
> but I'm too dense to figure out how override the default route, which sends
> the packet to WAN.
> 
> I obviously need to do something along the lines of
> route add -net 88.198.238.112/28 88.198.238.113

No, I believe you have what you want simply by specifying the IP and
netmask on the the OPT1 interface.  If there is a subnet other than
88.198.248.112/28 which you want to speak to across the OPT1 interface,
you may want to specify the gateway, on the OPT1 interface, of the
router which knows how to speak to that other subnet.  Then you would
add a static route.

But to do what you specified that you want, just configure the OPT1
interface to be:

Type: static
Bridge with: none
IP address 88.198.238.113     / 28

You do not need to specify a Gateway address unless you are using OPT1
as another WAN type interface.

That is all it takes.  The Operating System is intelligent enough to
figure out that 88.198.238.112/28 is directly attached to the OPT1
interface and that 88.198.238.112/28 is a more specific route than
0.0.0.0/0.  So it will send the traffic out that way.

-- 
Scott Lambert                    KC5MLE                       Unix SysAdmin
lamb...@lambertfam.org


---------------------------------------------------------------------
To unsubscribe, e-mail: discussion-unsubscr...@pfsense.com
For additional commands, e-mail: discussion-h...@pfsense.com

Commercial support available - https://portal.pfsense.org

Reply via email to