From owner-freebsd-questions@FreeBSD.ORG Tue Jun 9 01:41:43 2015 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id F25EE5E4 for ; Tue, 9 Jun 2015 01:41:42 +0000 (UTC) (envelope-from pathiaki2@yahoo.com) Received: from nm6.bullet.mail.bf1.yahoo.com (nm6.bullet.mail.bf1.yahoo.com [98.139.212.165]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id A34BA1579 for ; Tue, 9 Jun 2015 01:41:41 +0000 (UTC) (envelope-from pathiaki2@yahoo.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1433813894; bh=K4MNzP6pJs7Sy6wXT4zmmO/7xLwH/bl1+U4mIvu5T8U=; h=Date:From:To:Subject:References:In-Reply-To:From:Subject; b=LHEA1d35kG6r0eqI5kD2JCztMxd0UDkAZQiiCGzMt0Ulro7vaP5S1bZChrukKJPjE2X2++2fGPAY3uNgTP0yev7fhZbuEaNMZO/24BryqbJIWriiIzRUB8sAKmiswtH5Nud1UcOLxdjenNfzNn3cB1f+H6EL8cXnNfikkwX3XFh/t9zaL/3RvZrXTT3D6ckVBiqTk3Nfig8xr3r2+5g/C7z3auRUUnKbUt6QoWjXRMkQqOEYyU449rapL9mdYu4fSBnUh3l+yNNFNJEBo2hvYp8/sFIMmkNlkd/t/a6YTKjSX+a8gqiWRLyb0cYWrrt1GRHhXOuP3kkDVBod5Uts0w== Received: from [98.139.170.179] by nm6.bullet.mail.bf1.yahoo.com with NNFMP; 09 Jun 2015 01:38:14 -0000 Received: from [98.139.213.14] by tm22.bullet.mail.bf1.yahoo.com with NNFMP; 09 Jun 2015 01:38:14 -0000 Received: from [127.0.0.1] by smtp114.mail.bf1.yahoo.com with NNFMP; 09 Jun 2015 01:38:14 -0000 X-Yahoo-Newman-Id: 7576.44098.bm@smtp114.mail.bf1.yahoo.com X-Yahoo-Newman-Property: ymail-3 X-YMail-OSG: 6RxEjREVM1mchkssc1JSEH9Dqpwz0R48WICqnQtsQ7zI7l3 meg3TZ2koxEBtOEkxXhuw82y3ef7lS0wKbne7Y8KeNglUXzkThujvSmbtPs6 muRHdjKVPBH7XXvyAqThDb59ab6WyqsmbUCu.yDza6CU7PaXQ46GI1xNQKDy 3i4eGo7jOq41SOVzrX_bI4Ae3uHBgeqrVnCwI9KCSFiNoc5kaD6WGMm23YJ3 R3imZMD6Ys21EE6MV8OrFLfj_qZiQBDxTzFWZhIPbq30AyXkierb47JXbXdr 04WO3ZWJVePHrfpXALcGNE.hJXv0MO1q_cspQsT7IAzprRNVV2JTIht.vxVa .X59.kx0bhbI6rcDtetEf0UzN2Qne_NIBoScUNfj5TW15ivR_LN.lSuhOS2O mohrlF.Ziz_pXxQP21AMcaUikrmNg8REq38drt3Bb_JBLSQOo2fCq5ROW.73 FxFLeyWeMXcnvTZr_p3p2YUQtMU20utCpC3ANUa_ENC7T3RTTl286qoQ_51W JwFutw2McuA1YsD0FC8Wk5a9_YW1PYapQ X-Yahoo-SMTP: h3Xqg6.swBC0yI913RMMwp94grO_cg-- Message-ID: <55764384.1020606@yahoo.com> Date: Mon, 08 Jun 2015 21:38:12 -0400 From: "pathiaki2@yahoo.com" User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:31.0) Gecko/20100101 Thunderbird/31.7.0 MIME-Version: 1.0 To: freebsd-questions@freebsd.org Subject: Re: FreeBSD 10.1p10 defaultrouter not working References: <5576321B.3030506@uw.edu> In-Reply-To: <5576321B.3030506@uw.edu> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 09 Jun 2015 01:41:43 -0000 It doesn't. Whether it's by design or a flaw, I've noticed this for about 5 years. route add default and everything should be fine. :-) Otherwise, a full reboot will read the /etc/rc.conf file and everything should behave as expected. P. On 06/08/2015 20:23, John Nyhuis wrote: > I am trying to set a default route of 140.142.xyz.129 using the > documented method of adding the line below to rc.conf: > > defaultrouter = "140.142.xyz.129" > > (the .xyz. is to protect the guilty... mainly me). ^_^ > > After restarting the netif and route services, I still don't see a > default route being set. > netstat -r shows: > > Internet: > Destination Gateway Flags Netif Expire > localhost link#7 UH lo0 > 140.142.xyz.128/25 link#8 U lagg0 > 140.142.xyz.141 link#8 UHS lo0 > > no default route is assigned... > No logs of interest show up in messages, security, or dmesg.today > > The pertinent section of rc.conf looks like: > > cloned_interfaces="lagg0" > defaultrouter="140.142.xyz.129" > > #create a LACP aggregate interface for the native 1G NICS > ifconfig_bce0="up" > ifconfig_bce1="up" > ifconfig_lagg0="laggproto lacp laggport bce0 laggport bce1 > 140.142.xyz.141/25" > > > This should all be good according to the FreeBSD handbook, but it does > not work. > > > I can manually set the default route using "route add default > 140.142.xyz.129", but although the route is now listed, it does not work. > > If I comment the "ifconfig_lagg0" line, a default route does show up > as expected, so this seems to be related to an incompatibility between > a aggregate interface and a "defaultrouter" line in rc.conf. Either > will work by themselves, but not both in the same rc.conf. > > > Any wisdom you would be willing to share would be much appreciated... > > >