Date: Mon, 08 Jun 2015 21:38:12 -0400 From: "pathiaki2@yahoo.com" <pathiaki2@yahoo.com> To: freebsd-questions@freebsd.org Subject: Re: FreeBSD 10.1p10 defaultrouter not working Message-ID: <55764384.1020606@yahoo.com> In-Reply-To: <5576321B.3030506@uw.edu> References: <5576321B.3030506@uw.edu>
next in thread | previous in thread | raw e-mail | index | archive | help
It doesn't. Whether it's by design or a flaw, I've noticed this for about 5 years. route add default <IP of 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... > > >
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?55764384.1020606>