Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 09 Oct 2008 07:36:49 -0500
From:      Derek Ragona <derek@computinginnovations.com>
To:        Konrad Heuer <kheuer2@gwdg.de>, freebsd-questions@freebsd.org
Subject:   Re: Multiple NICs routing question
Message-ID:  <6.0.0.22.2.20081009073538.02524488@mail.computinginnovations.com>
In-Reply-To: <20081009131623.M34013@gwdu60.gwdg.de>
References:  <20081009131623.M34013@gwdu60.gwdg.de>

next in thread | previous in thread | raw e-mail | index | archive | help
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@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.




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?6.0.0.22.2.20081009073538.02524488>