[Bulk] Re: Default route (i.e. 'defaultrouter') ignored for VLAN rc.conf setup?

Axel axelbsd at ymail.com
Wed Sep 24 20:28:34 UTC 2014


On Wed, Sep 24, 2014 at 5:30 PM, Karl Pielorz <kpielorz_lst at tdx.co.uk>
wrote:

>
>
> --On 24 September 2014 16:15 +0100 Karl Pielorz <kpielorz_lst at 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


More information about the freebsd-questions mailing list