opensubscriber
   Find in this group all groups
 
Unknown more information…

f : freebsd-net@freebsd.org 16 May 2012 • 11:20PM -0400

Re: [stable-9]
by Andrey Zonov

REPLY TO AUTHOR
 
REPLY TO GROUP




On 5/15/12 10:07 PM, Sean Bruno wrote:
> Trying to use two interfaces connected to the same network with the same
> default router.  The two interfaces have two different IPs on the
> same /28 and point at the same default router of .1.  I have
> successfully configured the machine such that data is coming *in* on
> both interfaces, but the output is only going out the first interface.
>
> I've compiled with RADIX_MPATH enabled, and I'm setting the default
> route ... but, I'm pretty ignorant what to do next.  Chances are, I'm
> just being stupid here and I need to get more sleep.
>
> -bash-4.2$ netstat -r
> Routing tables
>
> Internet:
> Destination        Gateway            Flags    Refs      Use  Netif
> Expire
> default<redacted>          UGS         0 33320033   igb0
> XXX.XXX.XXX.0/25    link#1             U           0        0   igb0 =>
> XXX.XXX.XXX.0/25    link#2             U           0        0   igb1
>
>
> What am I missing here?
>

Did you try to use ipfw instead of RADIX_MPATH?

Try something like this:

route add default $router -interface $if1
ipfw add $number fwd $router ip from $ip2 to any out via $if2

--
Andrey Zonov
_______________________________________________
freebsd-net@free... mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-net
To unsubscribe, send any mail to "freebsd-net-unsubscribe@free..."

Bookmark with:

Delicious   Digg   reddit   Facebook   StumbleUpon

Related Messages

opensubscriber is not affiliated with the authors of this message nor responsible for its content.