Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 13 Aug 2010 05:59:41 GMT
From:      Alexander Apanasenko <apanasis@mail.ru>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   misc/149609: reboot after adding second default route
Message-ID:  <201008130559.o7D5xfBc017462@www.freebsd.org>
Resent-Message-ID: <201008130600.o7D60JvB059279@freefall.freebsd.org>

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

>Number:         149609
>Category:       misc
>Synopsis:       reboot after adding second default route
>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:   Fri Aug 13 06:00:19 UTC 2010
>Closed-Date:
>Last-Modified:
>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:
>Unformatted:



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