From: Sven Eckelmann <sven@narfation.org>
To: Walter Robert Ditzler <ditwal001@gmail.com>,
b.a.t.m.a.n@lists.open-mesh.org
Subject: Re: [B.A.T.M.A.N.] bridging problem
Date: Mon, 11 Jun 2012 16:35:04 +0200 [thread overview]
Message-ID: <1734690.HLHHpGXZRy@bentobox> (raw)
In-Reply-To: <!&!AAAAAAAAAAAYAAAAAAAAAOJK0u4CH31Kl5v1RPAzyrZCgQAAEAAAAPMeAInHZDxMj0Jo5ITXNbIBAAAAAA==@gmail.com>
[-- Attachment #1: Type: text/plain, Size: 4462 bytes --]
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;
> ***
[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 836 bytes --]
next prev parent reply other threads:[~2012-06-11 14:35 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-06-05 20:09 [B.A.T.M.A.N.] bridging problem Walter Robert Ditzler
2012-06-05 20:46 ` Sven Eckelmann
2012-06-05 22:16 ` Walter Robert Ditzler
2012-06-06 6:53 ` Antonio Quartulli
2012-06-06 6:59 ` Sven Eckelmann
2012-06-06 12:26 ` Walter Robert Ditzler
2012-06-06 12:37 ` Sven Eckelmann
2012-06-06 12:59 ` Walter Robert Ditzler
2012-06-06 13:04 ` Wayne Abroue
2012-06-06 13:08 ` Sven Eckelmann
[not found] ` <!&!AAAAAAAAAAAYAAAAAAAAAOJK0u4CH31Kl5v1RPAzyrZCgQAAEAAAAJ8P9S1hURlDutIgnj5PzCIBAAAAAA==@gmail.com>
2012-06-06 16:33 ` Sven Eckelmann
[not found] ` <!&!AAAAAAAAAAAYAAAAAAAAAOJK0u4CH31Kl5v1RPAzyrZCgQAAEAAAAPMeAInHZDxMj0Jo5ITXNbIBAAAAAA==@gmail.com>
2012-06-11 14:35 ` Sven Eckelmann [this message]
2012-06-11 15:46 ` Walter Robert Ditzler
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1734690.HLHHpGXZRy@bentobox \
--to=sven@narfation.org \
--cc=b.a.t.m.a.n@lists.open-mesh.org \
--cc=ditwal001@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.