From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: From: Sven Eckelmann Date: Mon, 11 Jun 2012 16:35:04 +0200 Message-ID: <1734690.HLHHpGXZRy@bentobox> In-Reply-To: References: <9663458.DgTmOPncVH@bentobox> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart7791523.sv4Uo88dSW"; micalg="pgp-sha512"; protocol="application/pgp-signature" Content-Transfer-Encoding: 7Bit Subject: Re: [B.A.T.M.A.N.] bridging problem Reply-To: The list for a Better Approach To Mobile Ad-hoc Networking List-Id: The list for a Better Approach To Mobile Ad-hoc Networking List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Walter Robert Ditzler , b.a.t.m.a.n@lists.open-mesh.org --nextPart7791523.sv4Uo88dSW Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" On Monday 11 June 2012 15:49:24 Walter Robert Ditzler wrote: > hi sven, > > as promised my final report :-) > > at the end only one question has left, but it is hardware wifi related. i > have several alix hardware boxes, now all with double ath5 wlan cards. > strange is sometimes when i create the vif (iw phy phy1) becomes the wlan 0 > and sometimes wlan1. any glue on that? Sounds a little bit like udev is renaming the device even when you told iw how the device should be named (see persistent net settings). http://www.ducea.com/2008/09/01/remove-debian-udev-persistent-net-rules/ Kind regards, Sven Just for the other people: > *** > as you mentioned hostapd and ath5 are very buggy! under debian i only could > get it to run under following conditions: > > 1) system related > *************** > add to apt source list: > deb http://backports.debian.org/debian-backports squeeze-backports main > > install hostapd from: > DEBIAN_FRONTEND=noninteractive aptitude -y install -t squeeze-backports > batctl hostapd > > (hostapd >= 0.6.10) > > kernel: > *** > root@srv-ldeb-basic1:/etc/hostapd# cat /boot/config-3.4.0-adx-alix |grep > "80211" > CONFIG_CFG80211=m > CONFIG_NL80211_TESTMODE=y > CONFIG_CFG80211_DEVELOPER_WARNINGS=y > CONFIG_CFG80211_REG_DEBUG=y > CONFIG_CFG80211_DEFAULT_PS=y > CONFIG_CFG80211_DEBUGFS=y > CONFIG_CFG80211_INTERNAL_REGDB=y > CONFIG_CFG80211_WEXT=y > CONFIG_LIB80211=m > CONFIG_LIB80211_CRYPT_WEP=m > CONFIG_LIB80211_CRYPT_CCMP=m > CONFIG_LIB80211_CRYPT_TKIP=m > CONFIG_LIB80211_DEBUG=y > CONFIG_MAC80211=m > CONFIG_MAC80211_HAS_RC=y > CONFIG_MAC80211_RC_PID=y > CONFIG_MAC80211_RC_MINSTREL=y > CONFIG_MAC80211_RC_MINSTREL_HT=y > # CONFIG_MAC80211_RC_DEFAULT_PID is not set > CONFIG_MAC80211_RC_DEFAULT_MINSTREL=y > CONFIG_MAC80211_RC_DEFAULT="minstrel_ht" > CONFIG_MAC80211_MESH=y > CONFIG_MAC80211_LEDS=y > CONFIG_MAC80211_DEBUGFS=y > CONFIG_MAC80211_DEBUG_MENU=y > CONFIG_MAC80211_NOINLINE=y > CONFIG_MAC80211_VERBOSE_DEBUG=y > CONFIG_MAC80211_HT_DEBUG=y > CONFIG_MAC80211_TKIP_DEBUG=y > CONFIG_MAC80211_IBSS_DEBUG=y > CONFIG_MAC80211_VERBOSE_PS_DEBUG=y > CONFIG_MAC80211_VERBOSE_MPL_DEBUG=y > CONFIG_MAC80211_VERBOSE_MPATH_DEBUG=y > CONFIG_MAC80211_VERBOSE_MHWMP_DEBUG=y > CONFIG_MAC80211_VERBOSE_TDLS_DEBUG=y > CONFIG_MAC80211_DEBUG_COUNTERS=y > CONFIG_MAC80211_HWSIM=m > *** > > 2) wifi related > ************ > - ath5 only supports 1 adhoc vif > - ath5 can't run in master mode without hostapd > - ath5 bridging and mesh only possible with 2 wlan cards > - ath9 no problems at all > - ath9 bridging and mesh with one wlan card possible > > !!! attention !!! > > when using ath5 wlan cards hostapd service hast o be restared. only after > restarting the hostapd service you will be able to link second wlan ath5 > card into the bridge br0. i tried many thing but this ist he only way i > succeeded. > > > > *** (/etc/hostapd/hostapd,.conf can be also an adhoc vif) > interface=wlan1 > bridge=br0 > driver=nl80211 > hw_mode=g > channel=1 > ssid=adradix_test > macaddr_acl=0 > auth_algs=1 > ignore_broadcast_ssid=0 > wpa=2 > wpa_passphrase=xxx > wpa_key_mgmt=WPA-PSK > wpa_pairwise=TKIP > rsn_pairwise=CCMP > *** > > *** (network script > of course no need to use static ip's also dhcp > possible) > #!/bin/bash > > # ADRADIX MODIFIED AT 2012-06-09 23:51:24 > # > echo "1" > /proc/sys/net/ipv4/ip_forward > > ifconfig eth0 down > ifconfig wlan0 down > ifconfig wlan1 down > ifconfig mesh0 down > ifconfig bat0 down > ifconfig br0 down > > brctl delbr br0 > batctl if del mesh0 > > iw dev wlan0 del > iw dev wlan1 del > iw dev mesh0 del > iw dev mon.wlan0 del > iw dev mon.wlan1 del > > iw phy phy0 interface add mesh0 type adhoc > ifconfig mesh0 mtu 1528 > iwconfig mesh0 mode ad-hoc essid adradix_mesh ap xx:xx:xx:xx:xx:xx channel > 10 > batctl if add mesh0 > ifconfig mesh0 0.0.0.0 up > > iw phy phy1 interface add wlan1 type adhoc > > brctl addbr br0 > brctl addif br0 eth0 > brctl addif br0 bat0 > > ifconfig bat0 0.0.0.0 up > ifconfig eth0 0.0.0.0 up > ifconfig br0 10.xx.xx.xx netmask 255.255.255.0 up > > route add default gw 10.41.20.1 > > #echo "1" > /proc/sys/net/ipv4/conf/mesh0/proxy_arp > #echo "1" > /proc/sys/net/ipv4/conf/bat0/proxy_arp > #echo "1" > /proc/sys/net/ipv4/conf/br0/proxy_arp > #echo "1" > /proc/sys/net/ipv4/conf/eth0/proxy_arp > > # > # IMPORTANT: WITHOUT THAT RESTART BRIDGING DOES NOT WORK > /etc/init.d/hostapd restart > brctl addif br0 wlan1 > > exit 0; > *** --nextPart7791523.sv4Uo88dSW Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.12 (GNU/Linux) iQIcBAABCgAGBQJP1gIYAAoJEF2HCgfBJntGrGsP/j1F3KakRcPyAFYPkbjxS8dC s5+KXi9qO380TNNtc6MOoFwPeXabilfMrughbV7T2uLaVFwBGIlgs32vJx3LJskW qcpS72MURy4ZZE6IaDItBGeriwPzwPuI89e9C8J+j/AqyoMR6MGHMuxG7zcMnF0l Y5kR4b8BaZlSdTX5drKrpCChH4dS55fo3/c6H9e3fqubX1tz6njdqSCK1T9Lw1bj eQP5SzMmA5oot593sT2Z4KCdlk0BF0e5cfL+EVzoZ5ZmXzHLoxn4dvX8x2VUru4F AlIoE17Qk7ZJxzqlZttDIf66ETZ2UI5hCnG+PDJeNaV3mQw0Z+LQZwh3c0zF1uVZ Z7bMu+HMuhPebonjDsoCthxK54ilaG3DXwgXhVBGtNc1z4jOZ3rHGYXiUZFUYUev vbv3P6XZH2c0WOGn2R3FeESCPfEGHrcTFcGDxLCq4J860sgnMWh1sGksWK5OvZzF JNcYvNY6LRFtk6FJ//jwumiUzuxTHgbvOspiiUqyKl44jseslqWjegzYKMk1MQKo URLDpuNz7yiEuMd2Nwhh29iesgvBYvshu2GyZAoxt3qaAxECmOBWIYFT2ej96n0Q m5JUm9OoI1GCja5V7JoUUsTtd1rgZdZNLj3PtQKaXi1v8TN8ZdEJwzmcLwmjgwlL MzjMG0IsM/v0aEzAEscw =Fk0s -----END PGP SIGNATURE----- --nextPart7791523.sv4Uo88dSW--