From owner-freebsd-net@FreeBSD.ORG Wed Dec 12 03:54:07 2007 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 DB9F616A417 for ; Wed, 12 Dec 2007 03:54:07 +0000 (UTC) (envelope-from randy@psg.com) Received: from rip.psg.com (rip.psg.com [147.28.0.39]) by mx1.freebsd.org (Postfix) with ESMTP id B987913C478 for ; Wed, 12 Dec 2007 03:54:07 +0000 (UTC) (envelope-from randy@psg.com) Received: from localhost ([127.0.0.1] helo=roam.psg.com) by rip.psg.com with esmtp (Exim 4.68 (FreeBSD)) (envelope-from ) id 1J2Ife-0001vW-Tm for freebsd-net@freebsd.org; Wed, 12 Dec 2007 03:54:07 +0000 Received: from localhost ([127.0.0.1] helo=roam.psg.com) by roam.psg.com with esmtp (Exim 4.68 (FreeBSD)) (envelope-from ) id 1J2Ifd-0001mW-Dx for freebsd-net@freebsd.org; Wed, 12 Dec 2007 12:54:05 +0900 From: Randy Bush MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <18271.23388.863680.888792@roam.psg.com> Date: Wed, 12 Dec 2007 12:54:04 +0900 To: freebsd-net@freebsd.org Subject: ifconfig: BRDGADD vr1: Invalid argument 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: Wed, 12 Dec 2007 03:54:07 -0000 the symptom # ifconfig bridge0 192.168.0.1 addm vr1 addm vr2 addm vr3 addm ath0 up ifconfig: BRDGADD vr1: Invalid argument the conditions # kldstat Id Refs Address Size Name 1 3 0xc0400000 39ad48 kernel 2 1 0xc27c8000 8000 if_bridge.ko 3 1 0xc27d0000 5000 bridgestp.ko # sysctl -a | grep bridge | sort dev.hostb.0.%desc: Host to PCI bridge dev.isab.0.%desc: PCI-ISA bridge dev.pcib.0.%desc: Host to PCI bridge net.link.bridge.ipfw: 1 -- i set this, same either way net.link.bridge.ipfw_arp: 1 -- i set this, same either way net.link.bridge.log_stp: 1 -- i set this, same either way net.link.bridge.pfil_bridge: 0 net.link.bridge.pfil_local_phys: 0 net.link.bridge.pfil_member: 0 net.link.bridge.pfil_onlyip: 0 cloned_interfaces=bridge0 ifconfig_bridge0="192.168.0.1 addm vr1 addm vr2 addm vr3 addm ath0 up" ifconfig_vr1=up ifconfig_vr2=up ifconfig_vr3=up ifconfig_ath0="channel 4 ssid rgnet-aden wep wepkey nokidding mediaopt hostap up" gateway_enable=YES # ifconfig -a vr0: flags=8843 metric 0 mtu 1500 options=b ether 00:00:24:c8:b3:28 inet 666.42.86.186 netmask 0xffffffc0 broadcast 666.42.86.191 media: Ethernet autoselect (100baseTX ) status: active vr1: flags=8843 metric 0 mtu 1500 options=b ether 00:00:24:c8:b3:29 media: Ethernet autoselect (none) status: no carrier vr2: flags=8843 metric 0 mtu 1500 options=b ether 00:00:24:c8:b3:2a media: Ethernet autoselect (none) status: no carrier vr3: flags=8843 metric 0 mtu 1500 options=b ether 00:00:24:c8:b3:2b media: Ethernet autoselect (none) status: no carrier ath0: flags=8843 metric 0 mtu 1500 ether 00:0b:6b:83:59:25 media: IEEE 802.11 Wireless Ethernet autoselect (autoselect ) status: associated ssid rgnet-aden channel 4 (2427 Mhz 11g) bssid 00:0b:6b:83:59:25 authmode OPEN privacy ON deftxkey UNDEF wepkey 1:104-bit txpowmax 38 bmiss 7 scanvalid 60 bgscan bgscanintvl 300 bgscanidle 250 randy