Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 24 Sep 2014 16:30:26 +0100
From:      Karl Pielorz <kpielorz_lst@tdx.co.uk>
To:        freebsd-questions@freebsd.org
Subject:   Re: Default route (i.e. 'defaultrouter') ignored for VLAN rc.conf setup?
Message-ID:  <9D720519FAD1B54D1D074FBE@Mail-PC.tdx.co.uk>
In-Reply-To: <ED775403FD2C254900CE4499@Mail-PC.tdx.co.uk>
References:  <ED775403FD2C254900CE4499@Mail-PC.tdx.co.uk>

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


--On 24 September 2014 16:15 +0100 Karl Pielorz <kpielorz_lst@tdx.co.uk> 
wrote:


> Hi,
>
> I've got a 10.0-R box setup with:
>
> cloned_interfaces="bge0.99"
> ifconfig_bge0_99="inet 192.168.0.20 netmask 255.255.255.0"
> defaultrouter="192.168.0.1"
>
> This correctly sets up 'bge0.99' at boot time, but doesn't set the
> default route.

I've managed to fix this - by using:

cloned_interfaces="bge0.99"
ifconfig_bge0="up"   <---- You need this line!
ifconfig_bge0_99="inet 192.168.0.20 netmask 255.255.255.0"
defaultrouter="192.168.0.1"

A little annoying as I'd been bitten by that 'oddity' (i.e. requiring the 
'up' line) when working with LAGG interfaces...

At least it works now (and it's in the list archives),

-Karl



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