Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 15 May 2002 09:05:50 -0700
From:      Aditya <aditya@mighty.grot.org>
To:        Anshuman Kanwar <akanwar@engineering.ucsb.edu>
Cc:        freebsd-net@freebsd.org
Subject:   Re: 4.4 route add default problem
Message-ID:  <20020515160549.GA37073@mighty.grot.org>
In-Reply-To: <Pine.LNX.4.33.0205150125370.12581-100000@ecipc056.engr.ucsb.edu>
References:  <Pine.LNX.4.33.0205150125370.12581-100000@ecipc056.engr.ucsb.edu>

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020515160549.GA37073>