Date: 12 Apr 2001 15:22:34 -0400 From: Vivek Khera <khera@kciLink.com> To: questions@freebsd.org Subject: Re: FW: [freebsd-questions] redundant default routes? Message-ID: <x7pueh9b45.fsf@onceler.kciLink.com> In-Reply-To: <ED917D1F7E5D96439A2822CE966C2CB907455C@ilexc01.everad.com> References: <ED917D1F7E5D96439A2822CE966C2CB907455C@ilexc01.everad.com>
next in thread | previous in thread | raw e-mail | index | archive | help
>>>>> "DM" == Daniel Mester <DanielM@EverAd.com> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?x7pueh9b45.fsf>