From owner-freebsd-net Sun Jan 5 13:37:28 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 5392B37B401 for ; Sun, 5 Jan 2003 13:37:27 -0800 (PST) Received: from isber.ucsb.edu (research.isber.ucsb.edu [128.111.147.5]) by mx1.FreeBSD.org (Postfix) with ESMTP id 72B7543EB2 for ; Sun, 5 Jan 2003 13:37:23 -0800 (PST) (envelope-from randall@isber.ucsb.edu) Received: from localhost ([127.0.0.1] helo=research.isber.ucsb.edu) by isber.ucsb.edu with esmtp (Exim 3.36 #2) id 18VISL-000BLX-00; Sun, 05 Jan 2003 13:37:17 -0800 Date: Sun, 5 Jan 2003 13:37:16 -0800 (PST) From: randall ehren To: Lars Eggert Cc: Subject: Re: default route In-Reply-To: <3E18A3D9.3010909@isi.edu> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Scanner: exiscan *18VISL-000BLX-00*J1mBRlnMLAM* (ISBER - Institute for Social, Behavioral, and Economic Research) 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 > > how can i assign the default gateway to use fxp0 instead? > > route delete default > route add default A.B.C.D i read the man page, it indicated the use of the -inteface flag but i could not get it to work. doing what you say did not fix the problem either: as you described: root@fw-1[~]% route delete default route: writing to routing socket: No such process delete net default: not in table so i manually deleted it: root@fw-1[~]% route delete 128.111.147.254 delete host 128.111.147.254 netstat -rn then indicated it was deleted. then i ran: root@fw-1[~]% route add default 128.111.147.254 add net default: gateway 128.111.147.254 and netstat -rn again shows: Destination Gateway Flags Refs Use Netif Expire 128.111.147.254 00:e0:52:d8:43:00 UHLW 1 0 rl0 1173 my problem is not adding a default gateway, but rather assigning the default gateway to the outside interface fxp0, not my internal interface rl0. any more ideas? -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