From owner-freebsd-net@FreeBSD.ORG Wed Dec 12 18:29:58 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 81E7D16A41A for ; Wed, 12 Dec 2007 18:29:58 +0000 (UTC) (envelope-from max@love2party.net) Received: from moutng.kundenserver.de (moutng.kundenserver.de [212.227.126.188]) by mx1.freebsd.org (Postfix) with ESMTP id 15F0D13C459 for ; Wed, 12 Dec 2007 18:29:58 +0000 (UTC) (envelope-from max@love2party.net) Received: from amd64.laiers.local (dslb-088-066-046-112.pools.arcor-ip.net [88.66.46.112]) by mrelayeu.kundenserver.de (node=mrelayeu6) with ESMTP (Nemesis) id 0ML29c-1J2WLD3BLt-0005N9; Wed, 12 Dec 2007 19:29:56 +0100 From: Max Laier Organization: FreeBSD To: freebsd-net@freebsd.org Date: Wed, 12 Dec 2007 19:29:45 +0100 User-Agent: KMail/1.9.7 References: <18271.23388.863680.888792@roam.psg.com> In-Reply-To: <18271.23388.863680.888792@roam.psg.com> X-Face: ,,8R(x[kmU]tKN@>gtH1yQE4aslGdu+2]; R]*pL,U>^H?)gW@49@wdJ`H<=?utf-8?q?=25=7D*=5FBD=0A=09U=5For=3D=5CmOZf764=26nYj=3DJYbR1PW0ud?=>|!~,,CPC.1-D$FG@0h3#'5"k{V]a~.<=?utf-8?q?mZ=7D44=23Se=7Em=0A=09Fe=7E=5C=5DX5B=5D=5Fxj?=(ykz9QKMw_l0C2AQ]}Ym8)fU MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart2420863.HWyoWFLDNj"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <200712121929.54716.max@love2party.net> X-Provags-ID: V01U2FsdGVkX1+67jYI0WB6cikKQTRADJefUCDhRiF+hCLT3dN 12gv150LXfHwIeWefuwBlWIQj15VolK+8TO8NnK8TbC2Wz2Ker eJsx7Nqn4ciUOvAcyqUmhpCWwOr+JUe/z+mtYmN0Bw= Cc: Randy Bush Subject: Re: 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 18:29:58 -0000 --nextPart2420863.HWyoWFLDNj Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On Wednesday 12 December 2007, Randy Bush wrote: > the symptom > > # ifconfig bridge0 192.168.0.1 addm vr1 addm vr2 addm vr3 addm ath0 up > ifconfig: BRDGADD vr1: Invalid argument EINVAL can be returned from BRDGADD for three reasons: 1) The MTU on the member interfaces don't match (the first member defines= =20 the MTU of the bridge). It doesn't look like this is what you are=20 seeing. 2) As a result of ifpromisc() (via if_setflag() via ioctl(SIOCSIFFLAGS)). = =20 This is your likely candidate. Can you try to manually put the interface=20 into promiscues mode (i.e. "ifconfig vr0 promisc") ... if that fails you=20 will have to figure out why (I don't really see why it would return=20 EINVAL). 3) Most likely candidate: Your userland and kernel are out of sync. Try= =20 to rebuild ifconfig with the same headers installed as your kernel was=20 built. > > 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=3Dbridge0 > ifconfig_bridge0=3D"192.168.0.1 addm vr1 addm vr2 addm vr3 addm ath0 up" > ifconfig_vr1=3Dup > ifconfig_vr2=3Dup > ifconfig_vr3=3Dup > ifconfig_ath0=3D"channel 4 ssid rgnet-aden wep wepkey nokidding mediaopt > hostap up" gateway_enable=3DYES > > # ifconfig -a > vr0: flags=3D8843 metric 0 mtu > 1500 options=3Db > 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=3D8843 metric 0 mtu > 1500 options=3Db > ether 00:00:24:c8:b3:29 > media: Ethernet autoselect (none) > status: no carrier > vr2: flags=3D8843 metric 0 mtu > 1500 options=3Db > ether 00:00:24:c8:b3:2a > media: Ethernet autoselect (none) > status: no carrier > vr3: flags=3D8843 metric 0 mtu > 1500 options=3Db > ether 00:00:24:c8:b3:2b > media: Ethernet autoselect (none) > status: no carrier > ath0: flags=3D8843 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 =2D-=20 /"\ Best regards, | mlaier@freebsd.org \ / Max Laier | ICQ #67774661 X http://pf4freebsd.love2party.net/ | mlaier@EFnet / \ ASCII Ribbon Campaign | Against HTML Mail and News --nextPart2420863.HWyoWFLDNj Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.4 (FreeBSD) iD8DBQBHYCiiXyyEoT62BG0RAjsfAJ9xxIfoWtp4pdq6msJOrDXZ4yBTPQCggIMB 41rharQ5bdBCytTVWpTdmkU= =Z/3K -----END PGP SIGNATURE----- --nextPart2420863.HWyoWFLDNj--