From owner-freebsd-net Sun Jan 5 15:25:45 2003 Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2098737B401 for ; Sun, 5 Jan 2003 15:25:43 -0800 (PST) Received: from vineyard.net (K1.vineyard.net [204.17.195.90]) by mx1.FreeBSD.org (Postfix) with ESMTP id 171E543EC5 for ; Sun, 5 Jan 2003 15:25:42 -0800 (PST) (envelope-from ericx@vineyard.net) Received: from alice (loopback [127.0.0.1]) by vineyard.net (Postfix) with ESMTP id 48085916CD; Sun, 5 Jan 2003 18:25:36 -0500 (EST) Message-ID: <00b701c2b512$1043c1f0$3ee380cc@alice> From: "Eric W. Bates" To: "randall ehren" , References: Subject: Re: default route Date: Sun, 5 Jan 2003 18:27:50 -0500 Organization: Vineyard.NET, Inc. MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org According to your ifconfig, I believe you have essentially assigned the same networks to both interfaces (128.111.147.250 netmask 0xffffffff falls within the larger 128.111.147.251/24). In which case, there is no way to distinguish between the two interfaces because your default IP, 128.111.147.251 actually falls within both subnets. ----- Original Message ----- From: "randall ehren" To: Sent: Sunday, January 05, 2003 4:26 PM Subject: default route > hi, > i have a freebsd box acting as a firewall using ipfilter over a bridge. > > the machine has two interfaces: > fxp0 = connected to outside world interface > rl0 = connected to internal subnet > > when i add the default gateway, it defaults to assigning it to rl0. > > from netstat -rn: > Destination Gateway Flags Refs Use Netif Expire > 128.111.147.254 00:e0:52:d8:43:00 UHLW 1 0 rl0 1182 > > how can i assign the default gateway to use fxp0 instead? > > notes: > > root@fw-1[~]% ifconfig -u > fxp0: flags=8943 mtu 1500 > inet 128.111.147.250 netmask 0xffffffff broadcast 128.111.147.250 > ether 00:00:5e:00:01:01 > media: Ethernet 100baseTX > status: active > rl0: flags=8943 mtu 1500 > inet 128.111.147.251 netmask 0xffffff00 broadcast 128.111.147.255 > ether 00:30:1b:10:5b:e3 > media: Ethernet 100baseTX > status: active > > > thanks, > -randall > > -- > :// randall s. ehren :// voice 805.893.5632 > :// systems administrator :// isber|survey|avss.ucsb.edu > :// institute for social, behavioral, and economic research > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-net" in the body of the message > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message