From nobody@FreeBSD.org  Fri Aug 13 05:59:42 2010
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 12246106566C
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 13 Aug 2010 05:59:42 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21])
	by mx1.freebsd.org (Postfix) with ESMTP id F348F8FC12
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 13 Aug 2010 05:59:41 +0000 (UTC)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.14.3/8.14.3) with ESMTP id o7D5xfOA017463
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 13 Aug 2010 05:59:41 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.14.3/8.14.3/Submit) id o7D5xfBc017462;
	Fri, 13 Aug 2010 05:59:41 GMT
	(envelope-from nobody)
Message-Id: <201008130559.o7D5xfBc017462@www.freebsd.org>
Date: Fri, 13 Aug 2010 05:59:41 GMT
From: Alexander Apanasenko <apanasis@mail.ru>
To: freebsd-gnats-submit@FreeBSD.org
Subject: reboot after adding second default route
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         149609
>Category:       kern
>Synopsis:       [panic] reboot after adding second default route
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-net
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Aug 13 06:00:19 UTC 2010
>Closed-Date:    
>Last-Modified:  Fri Aug 13 16:00:07 UTC 2010
>Originator:     Alexander Apanasenko
>Release:        8.0, 8.1-RELEASE
>Organization:
>Environment:
FreeBSD gate100.bis 8.0-RELEASE-p2 FreeBSD 8.0-RELEASE-p2 #1: Tue Aug 10 11:25:0
7 MSD 2010     apanas@gate100.bis:/usr/obj/usr/src/sys/GATE  i386
FreeBSD gate100.bis 8.1-RELEASE FreeBSD 8.1-RELEASE #1: Tue Aug 10 11:25:07 MSD 2010 apanas@gate100.bis:/usr/obj/usr/src/sys/GATE i386
>Description:
Add the second default route to main route table cause instantaneous reboot without any errors or panic.
After rebooting the route which was added is in main route table.
If to try add first and second default routes during of boot with help of script like

#!/bin/sh
ROUTE='/sbin/route'

$ROUTE flush
$ROUTE add default xxx.xxx.xxx.xxx -weight 40
$ROUTE add default yyy.yyy.yyy.yyy -weight 60

from /usr/local/etc/rc.d ,addition of routes finished successfully. 
>How-To-Repeat:
On 8.0 or 8.1-RELEASE system with kernel options
options         ROUTETABLES=4
options         RADIX_MPATH
add first default route in the main route table (setfib 0):
route add default xxx.xxx.xxx.xxx

after that try to add second default route:
route add default yyy.yyy.yyy.yyy

and you can observe instant reboot. 

>Fix:


>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->freebsd-net 
Responsible-Changed-By: brucec 
Responsible-Changed-When: Fri Aug 13 15:27:06 UTC 2010 
Responsible-Changed-Why:  
Over to maintainer(s). 

http://www.freebsd.org/cgi/query-pr.cgi?pr=149609 
>Unformatted:
