Have you tried turning on 4 address mode (i.e. wds)?
Try:
iwpriv wlan0 wds 1
You will also need to do the same at the AP end.
Brett
> -----Original Message-----
> From: Dmitry Katsubo [mailto:dma_k@...]
> Sent: Thursday, 27 November 2008 6:31 PM
> To: madwifi-users@...
> Subject: [Madwifi-users] Setting up a bridge for wifi interface
>
> Dear MadWifi users!
>
> I try to setup a bridged interface between eth1 and wlan0. I know,
that
> maybe it's general setup problem, but I was not able to solve it
myself.
>
> The problem is that after joining two interface into a bridge, DHCP
> packets do not go from wlan0 to eth1 interface, so the WiFi client
> cannot join the network. My general configuration is:
>
> <WLAN ADSL router, DHCP server>
> |
> v
> (eth1)
> <Linux box, Debian>
> (wlan0)
> |
> v
> <Windows box>
>
> I have setup the bridge as usual:
>
> === cat /etc/network/interfaces: ===
> auto wlan0
> iface wlan0 inet manual
> pre-up iwpriv wlan0 authmode 2
> wireless-essid myserver
> wireless-key s:somepassword
>
> auto br0
> iface br0 inet dhcp
> bridge_ports eth1 wlan0
> === end ===
>
> The Access Point interface is autocreated:
>
> === cat /etc/modprobe.d/madwifi: ===
> options ath_pci autocreate=ap
> blacklist ath5k
> === end ===
>
> I have enabled ip forwarding in /etc/sysctl.conf:
>
> === start ===
> /proc/sys/net# cat ./ipv4/ip_forward ./ipv4/conf/default/forwarding
> ./ipv4/conf/br0/forwarding ./ipv4/conf/eth1/forwarding
> ./ipv4/conf/wlan0/forwarding
> 1
> 1
> 1
> 1
> 1
> === end ===
>
> The bridge br0 gets the IP address automatically during the startup
with
> no problems. I can also get the IP address for interface eth1:
>
> === start ===
> # dhclient eth1
> wifi0: unknown hardware address type 801
> wifi0: unknown hardware address type 801
> Listening on LPF/eth1/00:01:80:66:5c:68
> Sending on LPF/eth1/00:01:80:66:5c:68
> Sending on Socket/fallback
> DHCPREQUEST on eth1 to 255.255.255.255 port 67
> DHCPACK from 192.168.1.1
> bound to 192.168.1.11 -- renewal in 272309 seconds.
>
> # tcpdump -i eth1 -n | egrep 'BOOTP/DHCP|ICMP'
> 12:23:04.003282 IP 0.0.0.0.68 > 255.255.255.255.67: BOOTP/DHCP,
Request
> from 00:01:80:66:5c:68, length 300
> 12:23:04.008202 IP 192.168.1.1.67 > 255.255.255.255.68: BOOTP/DHCP,
Reply,
> length 300
> === end ===
>
> Now I want to get the IP address for wlan0:
>
> === start ===
> # dhclient wlan0
> wifi0: unknown hardware address type 801
> wifi0: unknown hardware address type 801
> Listening on LPF/wlan0/06:c0:a8:d2:8b:ed
> Sending on LPF/wlan0/06:c0:a8:d2:8b:ed
> Sending on Socket/fallback
> DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 3
> DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 3
> DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 6
> === end ===
>
> and it fails. ping also does not work:
>
> === start ===
> centurion:/proc/sys/net# ping -I wlan0 mail.ru
> PING mail.ru (194.67.57.126) from 192.168.1.10 wlan0: 56(84) bytes of
> data.
> >From centurion.local (192.168.1.10) icmp_seq=1 Destination Host
> Unreachable
> >From centurion.local (192.168.1.10) icmp_seq=2 Destination Host
> Unreachable
> >From centurion.local (192.168.1.10) icmp_seq=3 Destination Host
> Unreachable
> === end ===
>
> I have run the same steps with setting both interfaces into
promiscuous
> mode:
>
> === start ===
> # ifconfig eth1 up promisc
> # ifconfig wlan0 up promisc
> # dhclient wlan0
> === end ===
>
> no positive result. I also tried to load the module with
> "autocreate=none" and then perform all steps to create the bridge and
> tune the wlan0 interface from the command line -- no success.
>
> I someone can help me, that will be very appreciated!
>
> Thank you a lot in advance!
>
> === additional information ===
> # iwconfig wlan0
> wlan0 IEEE 802.11g ESSID:"centurion" Nickname:""
> Mode:Master Frequency:2.437 GHz Access Point:
> 00:C0:A8:D2:8B:ED
> Bit Rate:0 kb/s Tx-Power:17 dBm Sensitivity=1/1
> Retry:off RTS thr:off Fragment thr:off
> Encryption key:XXXX-XXXX-XXXX-XXXX-XXXX-XXXX-XX Security
> mode:restricted
> Power Management:off
> Link Quality=0/70 Signal level=-96 dBm Noise level=-96 dBm
> Rx invalid nwid:4336 Rx invalid crypt:0 Rx invalid frag:0
> Tx excessive retries:0 Invalid misc:0 Missed beacon:0
>
> # ifconfig -a
> br0 Link encap:Ethernet HWaddr 00:01:80:66:5c:68
> inet addr:192.168.1.10 Bcast:192.168.1.255
Mask:255.255.255.0
> inet6 addr: fe80::201:80ff:fe66:5c68/64 Scope:Link
> UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
> RX packets:1763604 errors:0 dropped:0 overruns:0 frame:0
> TX packets:2207324 errors:0 dropped:0 overruns:0 carrier:0
> collisions:0 txqueuelen:0
> RX bytes:129239429 (123.2 MiB) TX bytes:2147801672 (2.0
GiB)
>
> wlan0 Link encap:Ethernet HWaddr 06:c0:a8:d2:8b:ed
> inet6 addr: fe80::4c0:a8ff:fed2:8bed/64 Scope:Link
> UP BROADCAST RUNNING PROMISC MULTICAST MTU:1500 Metric:1
> RX packets:0 errors:0 dropped:0 overruns:0 frame:0
> TX packets:2101 errors:0 dropped:0 overruns:0 carrier:0
> collisions:0 txqueuelen:0
> RX bytes:0 (0.0 B) TX bytes:260772 (254.6 KiB)
>
> eth1 Link encap:Ethernet HWaddr 00:01:80:66:5c:68
> inet6 addr: fe80::201:80ff:fe66:5c68/64 Scope:Link
> UP BROADCAST RUNNING PROMISC MULTICAST MTU:1500 Metric:1
> RX packets:1763621 errors:0 dropped:0 overruns:0 frame:0
> TX packets:2235459 errors:0 dropped:0 overruns:0 carrier:0
> collisions:0 txqueuelen:100
> RX bytes:156157312 (148.9 MiB) TX bytes:2149673495 (2.0
GiB)
> Memory:fdde0000-fde00000
>
> lo Link encap:Local Loopback
> inet addr:127.0.0.1 Mask:255.0.0.0
> inet6 addr: ::1/128 Scope:Host
> UP LOOPBACK RUNNING MTU:16436 Metric:1
> RX packets:275409 errors:0 dropped:0 overruns:0 frame:0
> TX packets:275409 errors:0 dropped:0 overruns:0 carrier:0
> collisions:0 txqueuelen:0
> RX bytes:17237491 (16.4 MiB) TX bytes:17237491 (16.4 MiB)
>
> wifi0 Link encap:UNSPEC HWaddr
00-C0-A8-D2-8B-ED-65-74-00-00-00-00-
> 00-00-00-00
> UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
> RX packets:298 errors:0 dropped:0 overruns:0 frame:64
> TX packets:2280 errors:24 dropped:0 overruns:0 carrier:0
> collisions:0 txqueuelen:280
> RX bytes:19519 (19.0 KiB) TX bytes:344458 (336.3 KiB)
> Interrupt:16
>
> # ip route ls
> 192.168.1.0/24 dev br0 proto kernel scope link src 192.168.1.10
> default via 192.168.1.1 dev br0
>
> # brctl show
> bridge name bridge id STP enabled interfaces
> br0 8000.000180665c68 no eth1
> wlan0
> === end ===
>
>
>
>
>
>
------------------------------------------------------------------------
-
> This SF.Net email is sponsored by the Moblin Your Move Developer's
> challenge
> Build the coolest Linux based applications with Moblin SDK & win great
> prizes
> Grand prize is a trip for two to an Open Source event anywhere in the
> world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> _______________________________________________
> Madwifi-users mailing list
> Madwifi-users@...
> https://lists.sourceforge.net/lists/listinfo/madwifi-users
>
>
>
|