[stable-9]
Andrey Zonov
andrey at zonov.org
Wed May 16 15:20:54 UTC 2012
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
More information about the freebsd-net
mailing list