Problems with two interfaces on the same subnet?

Eggert, Lars lars at netapp.com
Tue Feb 12 18:10:26 UTC 2013


Hi,

On Feb 12, 2013, at 9:50, Ivan Voras <ivoras at freebsd.org> wrote:
>> You can make this work with ipfw rules (and I guess also setfib, although I have not tried that.)
> 
> The concept of FIBs looks clean and applicable but setfib works on newly
> started process, and I would need to do something like apply it to
> packets coming from an interface.

Assuming your default route is via igb2, you can do something like this:

ipfw add fwd <router upstream of igb3> ip4 from <local address of igb3> to not <subnet of igb2> out

(From memory, no guarantees.)

Lars


More information about the freebsd-net mailing list