ifconfig: BRDGADD vr1: Invalid argument
Max Laier
max at love2party.net
Wed Dec 12 10:29:58 PST 2007
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
the MTU of the bridge). It doesn't look like this is what you are
seeing.
2) As a result of ifpromisc() (via if_setflag() via ioctl(SIOCSIFFLAGS)).
This is your likely candidate. Can you try to manually put the interface
into promiscues mode (i.e. "ifconfig vr0 promisc") ... if that fails you
will have to figure out why (I don't really see why it would return
EINVAL).
3) Most likely candidate: Your userland and kernel are out of sync. Try
to rebuild ifconfig with the same headers installed as your kernel was
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=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<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu
> 1500 options=b<RXCSUM,TXCSUM,VLAN_MTU>
> ether 00:00:24:c8:b3:28
> inet 666.42.86.186 netmask 0xffffffc0 broadcast 666.42.86.191
> media: Ethernet autoselect (100baseTX <full-duplex>)
> status: active
> vr1: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu
> 1500 options=b<RXCSUM,TXCSUM,VLAN_MTU>
> ether 00:00:24:c8:b3:29
> media: Ethernet autoselect (none)
> status: no carrier
> vr2: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu
> 1500 options=b<RXCSUM,TXCSUM,VLAN_MTU>
> ether 00:00:24:c8:b3:2a
> media: Ethernet autoselect (none)
> status: no carrier
> vr3: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu
> 1500 options=b<RXCSUM,TXCSUM,VLAN_MTU>
> ether 00:00:24:c8:b3:2b
> media: Ethernet autoselect (none)
> status: no carrier
> ath0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu
> 1500 ether 00:0b:6b:83:59:25
> media: IEEE 802.11 Wireless Ethernet autoselect <hostap>
> (autoselect <hostap>) 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
--
/"\ Best regards, | mlaier at freebsd.org
\ / Max Laier | ICQ #67774661
X http://pf4freebsd.love2party.net/ | mlaier at EFnet
/ \ ASCII Ribbon Campaign | Against HTML Mail and News
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: This is a digitally signed message part.
Url : http://lists.freebsd.org/pipermail/freebsd-net/attachments/20071212/de8300d3/attachment.pgp
More information about the freebsd-net
mailing list