From owner-freebsd-questions Thu Apr 12 12:22:40 2001 Delivered-To: freebsd-questions@freebsd.org Received: from yertle.kciLink.com (yertle.kciLink.com [208.184.13.195]) by hub.freebsd.org (Postfix) with ESMTP id DBECB37B43E for ; Thu, 12 Apr 2001 12:22:35 -0700 (PDT) (envelope-from khera@kciLink.com) Received: from onceler.kciLink.com (onceler.kciLink.com [208.184.13.196]) by yertle.kciLink.com (Postfix) with ESMTP id C0D6E2E45E for ; Thu, 12 Apr 2001 15:22:34 -0400 (EDT) Received: (from khera@localhost) by onceler.kciLink.com (8.11.3/8.11.1) id f3CJMYC60750; Thu, 12 Apr 2001 15:22:34 -0400 (EDT) (envelope-from khera@kciLink.com) X-Authentication-Warning: onceler.kciLink.com: khera set sender to khera@kciLink.com using -f To: questions@freebsd.org Subject: Re: FW: [freebsd-questions] redundant default routes? References: From: Vivek Khera Date: 12 Apr 2001 15:22:34 -0400 In-Reply-To: Message-ID: Lines: 32 User-Agent: Gnus/5.0808 (Gnus v5.8.8) XEmacs/21.1 (Cuyahoga Valley) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG >>>>> "DM" == Daniel Mester writes: DM> But what if i have two net cards in my box and it's connected to 2 DM> different networks (10.1.3.0/24 & 10.1.4.0/24). DM> How can i set up that every card has its own default route? (I don't DM> need to move packets between this interfaces). Like the original respondent said, you can't. You don't understand the meaning of "default", it seems. The default route is used when no other possible route for a given outbound packet is found. The way routes are found is from the routing table, which you can see with "netstat -r". Now, any computer physically connected to the same ethernet as either one of your cards will have a route indicating with ethernet card to use. If the destination packet is not one of those /24 networks, then you have to tell your routing table what to do with it. There's no magic here. Either you specifically tell it what to do with every single possible IP address/network, or you specify the default action and a subset of the possible IP addresses/networks. Or, give us an example of what you think should happen when you send a packet to, e.g., 10.1.6.2, 10.1.3.2, 10.1.4.2. -- =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= Vivek Khera, Ph.D. Khera Communications, Inc. Internet: khera@kciLink.com Rockville, MD +1-240-453-8497 AIM: vivekkhera Y!: vivek_khera http://www.khera.org/~vivek/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message