Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 21 Apr 2012 00:12:04 +0200
From:      Nikos Vassiliadis <nvass@gmx.com>
To:        Chad M Stewart <chad@balius.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: VLANs, default route not working on boot
Message-ID:  <4F91DF34.1000203@gmx.com>
In-Reply-To: <081FD3D2-E569-4B33-A4EC-ABFECA96091C@balius.com>
References:  <081FD3D2-E569-4B33-A4EC-ABFECA96091C@balius.com>

Next in thread | Previous in thread | Raw E-Mail | Index | Archive | Help
On 4/20/2012 9:54 PM, Chad M Stewart wrote:
> cloned_interfaces="vlan4 vlan7"
> ifconfig_vlan4="inet 192.168.4.21 netmask 255.255.255.0 vlan 4 vlandev em0"
> ifconfig_vlan7="inet 192.168.7.21 netmask 255.255.255.0 vlan 7 vlandev em0"
> ifconfig_vlan7="alias 192.168.7.31 netmask 255.255.255.255"
> ifconfig_vlan7="alias 192.168.7.41 netmask 255.255.255.255"
> ifconfig_vlan7="alias 192.168.7.41 netmask 255.255.255.255"
> ifconfig_vlan7="alias 192.168.7.51 netmask 255.255.255.255"
> ifconfig_vlan7="alias 192.168.7.61 netmask 255.255.255.255"
> ifconfig_vlan7="alias 192.168.7.71 netmask 255.255.255.255"
> defaultrouter="192.168.7.1"

This is not the correct syntax. From the rc.conf manual page:

>                  ipv4_addrs_ed0="192.0.2.129/27 192.0.2.1-5/28"
>
>                  It is also possible to add IP alias entries using ifconfig(8)
>                  syntax.  Assuming that the interface in question was ed0, it
>                  might look something like this:
>
>                  ifconfig_ed0_alias0="inet 127.0.0.253 netmask 0xffffffff"
>                  ifconfig_ed0_alias1="inet 127.0.0.254 netmask 0xffffffff"
>

HTH, Nikos



Want to link to this message? Use this URL: <http://docs.FreeBSD.org/cgi/mid.cgi?4F91DF34.1000203>