Multiple NICs routing question

Derek Ragona derek at computinginnovations.com
Thu Oct 9 12:36:58 UTC 2008


At 06:26 AM 10/9/2008, Konrad Heuer wrote:

>Hello,
>
>I've a server box with four NICs addressing different subnets:
>
>NIC1:   one class c subnet of same class b network
>NIC2:   another class c subnet of same class b network
>NIC3:   local unrouted network
>NIC4:   local unrouted network
>
>In the current configuration I use a default gateway (and no routing 
>daemon) in the subnet addressed by NIC1. Now of course, if a client in an 
>arbitrary different class c subnet contacts the server using the ip 
>address of NIC2, it gets a reply from NIC1.
>
>How can I cange this? I'd like the server to answer via the interface the 
>client uses when connecting.
>
>Maybe that's a silly question, but thanks for any reply!
>
>Best regards
>
>Konrad Heuer
>GWDG, Am Fassberg, 37077 Goettingen, Germany, kheuer2 at gwdg.de

You can have only one default gateway, that should be to where all other 
traffic should go.  Add static routes to your specific subnets, public or 
private for the routing of that traffic.

         -Derek

-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.



More information about the freebsd-questions mailing list