From owner-freebsd-net@FreeBSD.ORG Sat Feb 2 12:18:08 2008 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B036B16A419 for ; Sat, 2 Feb 2008 12:18:08 +0000 (UTC) (envelope-from freebsd-net@dino.sk) Received: from loki.netlab.sk (loki.netlab.sk [84.245.65.11]) by mx1.freebsd.org (Postfix) with ESMTP id 2498613C457 for ; Sat, 2 Feb 2008 12:18:07 +0000 (UTC) (envelope-from freebsd-net@dino.sk) Received: from fox.dino.sk (home.dino.sk [84.245.95.252]) (AUTH: PLAIN milan, TLS: TLSv1/SSLv3,256bits,AES256-SHA) by loki.netlab.sk with esmtp; Sat, 02 Feb 2008 13:06:14 +0100 id 0002E035.47A45CB6.0000A2BB From: Milan Obuch To: freebsd-net@freebsd.org Date: Sat, 2 Feb 2008 13:07:43 +0100 User-Agent: KMail/1.9.7 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200802021307.44140.freebsd-net@dino.sk> Subject: Weird rc.conf problem X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 02 Feb 2008 12:18:08 -0000 Hi, I am getting weird problem with network configuration. In rc.conf I have (just for demonstation, only part) ifconfig_em0="polling" cloned_interfaces="vlan2" ifconfig_vlan2="vlan 2 vlandev em0" ifconfig_vlan2_name="em0.2" Result is incorrect: em0.2: flags=8003 mtu 1500 ether 00:00:00:00:00:00 vlan: 0 parent interface: If I use ifconfig_em0="polling up" cloned_interfaces="vlan2" ifconfig_vlan2="vlan 2 vlandev em0 name em0.2" Result is correct: em0.2: flags=8003 mtu 1500 ether 00:11:22:33:44:55 vlan: 2 parent interface: em0 In the latter case I am getting some ifconfig: interface vlan2 does not exist messages in dmesg, which I was trying to avoid. This was done on 6.3-STABLE cvsupped and rebuilt some hours ago on amd64. If anybody has an idea (or a patch) I would like to test it. Error messages in the second case are a bit annoying only, not too bad, but the first config makes actually interface renaming feature with vlan interface dangerous, as the resulting configuration does not work as expected. Regards, Milan -- This address is used only for mailing list response. Do not send any personal messages to it, use milan in address instead.