From owner-freebsd-questions Thu Mar 23 0: 6:53 2000 Delivered-To: freebsd-questions@freebsd.org Received: from almazs.pacex.net (almazs.pacex.net [204.1.219.156]) by hub.freebsd.org (Postfix) with ESMTP id A952B37BAFD for ; Thu, 23 Mar 2000 00:06:50 -0800 (PST) (envelope-from danielb@pacex.net) Received: from almazs.pacex.net (almazs.pacex.net [204.1.219.156]) by almazs.pacex.net (8.9.3/8.9.3) with ESMTP id AAA57573 for ; Thu, 23 Mar 2000 00:06:39 -0800 (PST) Date: Thu, 23 Mar 2000 00:06:39 -0800 (PST) From: "Dan B. " To: freebsd-questions@freebsd.org Subject: Two IPs and default routes per interface Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Hi, I need help making this work, I am binding two routable IPs from toatly different subnets on one interface so that 'old IP' will be used with 'old default router' and 'new IP' will be used with 'new default router' Here is what I did: ifconfig fxp0 inet netmask 255.255.255.224 ifconfig fxp0 inet netmask 255.255.255.0 alias and modifying the routing table for 'old IP' route add -net -netmask 255.255.255.224 route -n add default and for 'new IP' route add -net -netmask 255.255.255.0 route -n add default and it is not working, I can ping the old default router but not the new one. Can I use two default routers on one interface with two different IPs from separate subnets? I am using 3.4-STABLE if that matters. Thanks Dan To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message