Date: Wed, 24 Sep 2014 22:28:04 +0200 From: Axel <axelbsd@ymail.com> To: Karl Pielorz <kpielorz_lst@tdx.co.uk>, FreeBSD Questions Mailing List <freebsd-questions@freebsd.org> Subject: Re: [Bulk] Re: Default route (i.e. 'defaultrouter') ignored for VLAN rc.conf setup? Message-ID: <CA%2B8gk98u_iBzch4gC4VffvKjgWoQoKWQBbm6Hno5bhs6UZcChw@mail.gmail.com> In-Reply-To: <9D720519FAD1B54D1D074FBE@Mail-PC.tdx.co.uk> References: <ED775403FD2C254900CE4499@Mail-PC.tdx.co.uk> <9D720519FAD1B54D1D074FBE@Mail-PC.tdx.co.uk>
next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, Sep 24, 2014 at 5:30 PM, Karl Pielorz <kpielorz_lst@tdx.co.uk> wrote: > > > --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 > Hello, I managed VLANs on my FreeBSD server using this setup in /etc/rc.conf ifconfig_bce0="UP" vlans_bce0="1 18 172 " ifconfig_bce0_1="inet A.B.C.D/24 description VLAN1" ifconfig_bce0_18="inet E.F.G.H/24 description VLAN18" ifconfig_bce0_172="inet I.J.K.L/23 description VLAN172" netwait_enable="YES" netwait_ip="A.B.C.D" netwait_if="bce0.1" defaultrouter="A.B.C.X" " gateway IP address It works fine. I can see default router is set with the command # netstat -r Kind regards. Alexandre
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CA%2B8gk98u_iBzch4gC4VffvKjgWoQoKWQBbm6Hno5bhs6UZcChw>