From owner-freebsd-questions@FreeBSD.ORG Fri Apr 20 20:29:02 2012 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 3FD3F106567E for ; Fri, 20 Apr 2012 20:29:02 +0000 (UTC) (envelope-from Chad@Balius.com) Received: from in.mx.balius.com (68-189-209-140.static.ftwo.tx.charter.com [68.189.209.140]) by mx1.freebsd.org (Postfix) with ESMTP id 041548FC21 for ; Fri, 20 Apr 2012 20:29:02 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by in.mx.balius.com (Postfix) with ESMTP id 85F1378891; Fri, 20 Apr 2012 20:29:01 +0000 (GMT) Received: from in.mx.balius.com ([127.0.0.1]) by localhost (jamesmadison.balius.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id NdyOzUMJi4oE; Fri, 20 Apr 2012 20:29:00 +0000 (GMT) Received: from [10.0.0.78] (68-189-209-142.static.ftwo.tx.charter.com [68.189.209.142]) by in.mx.balius.com (Postfix) with ESMTPSA id 4175D7888F; Fri, 20 Apr 2012 20:29:00 +0000 (GMT) Mime-Version: 1.0 (Apple Message framework v1257) Content-Type: text/plain; charset=us-ascii From: Chad M Stewart X-Mac: It Just Works! In-Reply-To: Date: Fri, 20 Apr 2012 15:28:59 -0500 Content-Transfer-Encoding: quoted-printable Message-Id: References: <081FD3D2-E569-4B33-A4EC-ABFECA96091C@balius.com> To: Mark Felder X-Mailer: Apple Mail (2.1257) Cc: freebsd-questions@freebsd.org Subject: Re: VLANs, default route not working on boot X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 20 Apr 2012 20:29:02 -0000 On Apr 20, 2012, at 3:00 PM, Mark Felder wrote: > On Fri, 20 Apr 2012 14:54:46 -0500, Chad M Stewart = wrote: >=20 >> Anyone have some suggestions how I can fix this? >=20 >=20 > I'm guessing having the default route on a tagged vlan was not tested = and the default route is attempted before the vlan interface is all the = way up. After the system is booted up does the default route work if you = run "sh /etc/netstart" ? That should prove whether or not it's handling = the rc.conf syntax OK. Yes running it manually after the system is booted works, though I see = two errors that may indicate something. See below. relay02# sh /etc/netstart=20 devd already running? (pid=3D1099). Setting hostuuid: 44454c4c-3400-105a-804d-b7c04f303731. Setting hostid: 0x9061cce4. ifconfig: create: bad value ifconfig: create: bad value I edited /etc/netstart and /etc/rc.d/netif and 'set -x' in both. Those = two errors are coming from netif. I'm still looking into what it does = not like. ifconfig: SIOCSETVLAN: Device busy Starting Network: lo0 em0 em1 vlan4 vlan7. lo0: flags=3D8049 metric 0 mtu 16384 options=3D3 inet6 ::1 prefixlen 128=20 inet6 fe80::1%lo0 prefixlen 64 scopeid 0x7=20 inet 127.0.0.1 netmask 0xff000000=20 nd6 options=3D21 em0: flags=3D8843 metric 0 mtu = 1500 options=3D9b ether 00:11:43:dc:ba:98 inet6 fe80::211:43ff:fedc:ba98%em0 prefixlen 64 scopeid 0x1=20 nd6 options=3D29 media: Ethernet autoselect (1000baseT ) status: active em1: flags=3D8802 metric 0 mtu 1500 options=3D9b ether 00:11:43:dc:ba:99 nd6 options=3D29 media: Ethernet autoselect status: no carrier vlan4: flags=3D8843 metric 0 mtu = 1500 options=3D3 ether 00:11:43:dc:ba:98 inet 192.168.4.21 netmask 0xffffff00 broadcast 192.168.4.255 inet6 fe80::211:43ff:fedc:ba98%vlan4 prefixlen 64 scopeid 0x8=20 nd6 options=3D29 media: Ethernet autoselect (1000baseT ) status: active vlan: 4 parent interface: em0 vlan7: flags=3D8003 metric 0 mtu 1500 ether 00:00:00:00:00:00 inet 192.168.7.31 netmask 0xffffffff broadcast 192.168.7.31 inet6 fe80::211:43ff:fedc:ba98%vlan7 prefixlen 64 tentative = scopeid 0x9=20 inet 192.168.7.41 netmask 0xffffffff broadcast 192.168.7.41 inet 192.168.7.51 netmask 0xffffffff broadcast 192.168.7.51 inet 192.168.7.61 netmask 0xffffffff broadcast 192.168.7.61 inet 192.168.7.71 netmask 0xffffffff broadcast 192.168.7.71 inet 192.168.7.75 netmask 0xffffff00 broadcast 255.255.255.255 nd6 options=3D29 vlan: 0 parent interface: add net default: gateway 192.168.7.1 route: writing to routing socket: File exists add net ::ffff:0.0.0.0: gateway ::1: route already in table route: writing to routing socket: File exists add net ::0.0.0.0: gateway ::1: route already in table route: writing to routing socket: File exists add net fe80::: gateway ::1: route already in table route: writing to routing socket: File exists add net ff02::: gateway ::1: route already in table relay02# netstat -rn|head Routing tables Internet: Destination Gateway Flags Refs Use Netif = Expire default 192.168.7.1 UGS 0 0 vlan7 127.0.0.1 link#7 UH 0 0 lo0 192.168.4.0/24 link#8 U 0 10501 vlan4 192.168.4.21 link#8 UHS 0 0 lo0 192.168.7.0/24 link#9 U 0 5 vlan7 192.168.7.31 link#9 UHS 0 54 lo0 =3D> -Chad