From owner-freebsd-net Wed May 15 9: 6: 0 2002 Delivered-To: freebsd-net@freebsd.org Received: from mighty.grot.org (mighty.grot.org [204.182.56.120]) by hub.freebsd.org (Postfix) with ESMTP id 8694637B400 for ; Wed, 15 May 2002 09:05:55 -0700 (PDT) Received: by mighty.grot.org (Postfix, from userid 515) id 1C0B05E7E; Wed, 15 May 2002 09:05:50 -0700 (PDT) Date: Wed, 15 May 2002 09:05:50 -0700 From: Aditya To: Anshuman Kanwar Cc: freebsd-net@freebsd.org Subject: Re: 4.4 route add default problem Message-ID: <20020515160549.GA37073@mighty.grot.org> Reply-To: Aditya References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-PGP-Key: http://www.grot.org/pubkey.asc X-PGP-Key-ID: 0x6405D8D5 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 On Wed, May 15, 2002 at 01:45:47AM -0700, Anshuman Kanwar wrote: > # Bring failed interface down > ifconfig $old_intf down why not move the route delete default here rather than later? > # Delete old route > route delete default > > # Clear ARP cache > arp -a -d > > # Fail Over to Other Interface > ifconfig $new_intf inet xx.xx.xx.xxx netmask 255.255.255.224 > broadcast xx.xx.xxx.xxx > > # Bring new interface up > ifconfig $new_intf up > > # Add new route > route add -ifp $new_intf default $DEF_ROUTE <<<<<< (1) and why do you need -ifp $new_intf here? Adi To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message