From owner-freebsd-questions@FreeBSD.ORG Wed Sep 24 20:28:34 2014 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id C0429202 for ; Wed, 24 Sep 2014 20:28:34 +0000 (UTC) Received: from nm16-vm4.bullet.mail.ir2.yahoo.com (nm16-vm4.bullet.mail.ir2.yahoo.com [212.82.96.210]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 2E0A5853 for ; Wed, 24 Sep 2014 20:28:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ymail.com; s=s2048; t=1411590506; bh=9AI4qPnOXmIjXJjrP+w14J8vgLWHTLnE5iTeyW4T9yY=; h=Received:Received:Received:DKIM-Signature:X-Yahoo-Newman-Id:X-Yahoo-Newman-Property:X-YMail-OSG:X-Yahoo-SMTP:Received:X-Received:MIME-Version:Received:In-Reply-To:References:From:Date:Message-ID:Subject:To:Content-Type:From:Subject; b=Mttj6Wl+S8yrE+neicZTPmQFlHvo1Fvw0Y18dDo2JPKGC0fTqEtIJx2MUFbfy/mk01GuoRnR7GXSBdySUOVYET+ndjWpI/eCuT+krl44uP5InRzDLs9ZXmS3/58xYbXSqvWrZv9pflTQHbYEyTnoAPvERjKpO/51hdylGGL+AZ/La2pgVdApA1MisV+lzFAjiY23jJuZQ7gY9lRerYhIOA07hB3y8OOIdptkRWqUPJaUBTilYb6sLXhHJLiV5gAwmxbD3yE25JYaAPGN4nZ7A6dTE/oMJA5/JX0SfymZTP1FYaPeUPCYY3TlZmp07Sie2zKsRDgHGGts/sO/kVGVzQ== DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s2048; d=ymail.com; b=aiq49lso5TbjXUlIMVbPnU9p13kIKd4jBS8Xx/pEGStoTwgXiZslPp4HW7hID3XFCjhF07GJ5EeaN9w6ahL5LQbslH5Ws34TIYeT4X6AyaM07J0sttGBBBCZm1R0wJCiEnVBN8DnZQrMWyMMUcw1/h0/rEdpCyhMNCyBPhvxisGqxy0fOwTOfS4XB+Eg0+c2QZxxRO4xAlxt8QN6IRHTBOuG6rhFWfe8s/cFoOv8H44UPJOu5ud/WAo46JXHSDYg3xkvcj9yVEw28PUHoqk492/1S9aTNI0kKbkIuycUds3DfoM5cNf5PRiZeSPjghIverupcKnj0mDGrljHTLNqHA==; Received: from [212.82.98.60] by nm16.bullet.mail.ir2.yahoo.com with NNFMP; 24 Sep 2014 20:28:26 -0000 Received: from [46.228.39.70] by tm13.bullet.mail.ir2.yahoo.com with NNFMP; 24 Sep 2014 20:28:26 -0000 Received: from [127.0.0.1] by smtp107.mail.ir2.yahoo.com with NNFMP; 24 Sep 2014 20:28:26 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ymail.com; s=s1024; t=1411590506; bh=9AI4qPnOXmIjXJjrP+w14J8vgLWHTLnE5iTeyW4T9yY=; h=X-Yahoo-Newman-Id:X-Yahoo-Newman-Property:X-YMail-OSG:X-Yahoo-SMTP:Received:X-Received:MIME-Version:Received:In-Reply-To:References:From:Date:Message-ID:Subject:To:Content-Type; b=yJwh6iaEGILiPj0SRUJdLD0//TzcEvgHNr9UabJ8stg4JgCXRgMFDYD/SRlKUzIghi9TDMmBEzLPTydbOLHVx1wZgRK5xOkyaFSLexisXDW5OZJKWukQFPIsGLsCswKdboi7wIAgAslQoHmLwb1qM8n9UgUl41sQS4Tj+TdkCuU= X-Yahoo-Newman-Id: 51244.94053.bm@smtp107.mail.ir2.yahoo.com X-Yahoo-Newman-Property: ymail-3 X-YMail-OSG: GCqgg6YVM1nz9f5d3jpnzHqm70oZY9Zz2VnToIdPlDKZD5D vmfjqGBN48ieh6CD1xEu3CPHknNfbAcUmLvsMVl1N7Y.UhIJPiQeVhjszZ9j CIeNd62KJSJQXW042Ft_kVRn.phcW2P.mZkIWOpYM.NSz9An.r2AT9CcDgPQ e2hL60mWy.ide63jnHR79.eK5BKPmsFycYcqJjtEGVooTb9K9H7h2yUo5qqv 9uli9FrPUFsDqU2GcuheC4AvrsosOffE02UDh2YREBfaBLvPLnnp8FpKVpqy F7cKMx6Nhl7XPTEb0x849iY5MT_SoCzmuMDapj7xGJ9CUR.L1m9Bjf4AqNY5 c2CL4CQW_O0l1qCoYqqWRBlkCeliDlG1GzeAnaJoc_vIdw.lNNeVuAelh_vJ BujJ9END6eIj.QCVvoZ7IJFqsy33NmenPp3fx1.JnfLNgdC9TXi6GVlCjQP9 4pwCgiZn9IvRHldogKlrJF7Ske4Tkfvbv3.qL0qp4P5OfgAjqs0d8Eyq5zla 1gTBRSy1J6PkiybLcJ9Ayy4JCWJWg6dkYYsAa_rDB6A-- X-Yahoo-SMTP: S65s63SswBDjU54Gjqw2GSWlZmfgiEU_X3tN1_9u Received: by mail-yh0-f41.google.com with SMTP id b6so3754876yha.28 for ; Wed, 24 Sep 2014 13:28:24 -0700 (PDT) X-Received: by 10.236.135.9 with SMTP id t9mr793834yhi.160.1411590504279; Wed, 24 Sep 2014 13:28:24 -0700 (PDT) MIME-Version: 1.0 Received: by 10.170.95.70 with HTTP; Wed, 24 Sep 2014 13:28:04 -0700 (PDT) In-Reply-To: <9D720519FAD1B54D1D074FBE@Mail-PC.tdx.co.uk> References: <9D720519FAD1B54D1D074FBE@Mail-PC.tdx.co.uk> From: Axel Date: Wed, 24 Sep 2014 22:28:04 +0200 Message-ID: Subject: Re: [Bulk] Re: Default route (i.e. 'defaultrouter') ignored for VLAN rc.conf setup? To: Karl Pielorz , FreeBSD Questions Mailing List Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.18-1 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 24 Sep 2014 20:28:34 -0000 On Wed, Sep 24, 2014 at 5:30 PM, Karl Pielorz wrote: > > > --On 24 September 2014 16:15 +0100 Karl Pielorz > 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