Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 24 Apr 2001 23:34:54 -0700 (PDT)
From:      mab@red-bean.com
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   misc/26833: `route change default' broken when gateway is over down interface
Message-ID:  <200104250634.f3P6YsK89148@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         26833
>Category:       misc
>Synopsis:       `route change default' broken when gateway is over down interface
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Apr 24 23:40:00 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator:     Matthew Braithwaite
>Release:        4.3-RELEASE
>Organization:
>Environment:
>Description:
The attached transcript says it about as well as I can hope to:  when
you ifconfig an interface down, the kernel removes the routes for
networks directly attached to that interface.  (Or, in the case of a
point-to-point interface, the route for the remote end of the link.)

After ifconfigging an interface down, you can add a route whose 
gateway is on a directly attached network, with `route add'.

However, `route change' under these conditions, when invoked to change
the route to what it already is, failed with EDQUOT.

I have reproduced this with both broadcast and point-to-point
interfaces, on FreeBSD 4.2 and 4.3, and on a number of different
machines.
>How-To-Repeat:
# netstat -rn -f inet
Routing tables

Internet:
Destination        Gateway            Flags     Refs     Use     Netif Expire
default            xxx.xxx.xxx.81     UGSc        1        0      ep0
127.0.0.1          127.0.0.1          UH         15   665693      lo0
xxx.xxx.xxx.80/28  link#9             UC          0        0      ep0 =>
# netstat -rn -f inet
Routing tables

Internet:
Destination        Gateway            Flags     Refs     Use     Netif Expire
default            xxx.xxx.xxx.81     UGSc        1        0      ep0
127.0.0.1          127.0.0.1          UH         15   665693      lo0
xxx.xxx.xxx.80/28  link#9             UC          0        0      ep0 =>
# ifconfig ep0 down
# netstat -rn -f inet
Routing tables

Internet:
Destination        Gateway            Flags     Refs     Use     Netif Expire
default            xxx.xxx.xxx.81     UGSc        1        0      ep0
127.0.0.1          127.0.0.1          UH         15   665693      lo0
# route delete default
delete net default
# netstat -rn -f inet
Routing tables

Internet:
Destination        Gateway            Flags     Refs     Use     Netif Expire
127.0.0.1          127.0.0.1          UH         15   665693      lo0
# route add default xxx.xxx.xxx.81
add net default: gateway xxx.xxx.xxx.81
# route change default xxx.xxx.xxx.81
route: writing to routing socket: Disc quota exceeded
change net default: gateway xxx.xxx.xxx.81: Disc quota exceeded

>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message




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