From owner-freebsd-net Sun Jan 5 17: 1: 6 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 6635C37B401 for ; Sun, 5 Jan 2003 17:01:03 -0800 (PST) Received: from aaz.links.ru (aaz.links.ru [193.125.152.37]) by mx1.FreeBSD.org (Postfix) with ESMTP id 68FF143EA9 for ; Sun, 5 Jan 2003 17:01:02 -0800 (PST) (envelope-from babolo@aaz.links.ru) Received: from aaz.links.ru (aaz.links.ru [193.125.152.37]) by aaz.links.ru (8.12.6/8.12.6) with ESMTP id h0612QsQ047382; Mon, 6 Jan 2003 04:02:26 +0300 (MSK) (envelope-from babolo@aaz.links.ru) Received: (from babolo@localhost) by aaz.links.ru (8.12.6/8.12.6/Submit) id h0612PSM047380; Mon, 6 Jan 2003 04:02:25 +0300 (MSK) Message-Id: <200301060102.h0612PSM047380@aaz.links.ru> Subject: Re: default route X-ELM-OSV: (Our standard violations) hdr-charset=KOI8-R; no-hdr-encoding=1 In-Reply-To: <00b701c2b512$1043c1f0$3ee380cc@alice> To: "Eric W. Bates" Date: Mon, 6 Jan 2003 04:02:25 +0300 (MSK) From: "."@babolo.ru Cc: randall ehren , freebsd-net@FreeBSD.ORG X-Mailer: ELM [version 2.4ME+ PL99b (25)] MIME-Version: 1.0 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 [ Charset ISO-8859-1 unsupported, converting... ] > 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. fxp0: 128.111.147.250/32 rl0: 128.111.147.251/24 obviously 128.111.147.254 is in 128.111.147.251/24 and not in 128.111.147.250/32 assign 128.111.147.253/30 to fxp0 > ----- 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 > -- @BABOLO http://links.ru/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message