Próbuję utworzyć prosty punkt dostępowy wifi. Korzystam z książki O'Reilly Linux Networking Cookbook. Mam duży problem z madwifi. Staram się utworzyć most pomiędzy kartą bezprzewodową, a kartą LAN. Oto fragment z /etc/network/interfaces:
Kod: Zaznacz cały
auto br0
iface br0 inet static
address 192.168.1.50
network 192.168.1.0
netmask 255.255.255.0
broadcast 192.168.1.255
bridge_ports ath0 eth0
post-down wlanconfig ath0 destroy
pre-up wlanconfig ath0 create wlandev wifi0 wlanmode ap
pre-up iwconfig ath0 essid "alrac-net" channel 01 rate auto
pre-up ifconfig ath0 up
pre-up sleep 3
Kod: Zaznacz cały
pre-up wlanconfig ath0 create wlandev wifi0 wlanmode ap
Kod: Zaznacz cały
wlanconfig: ioctl: Input/output error
Failed to bring up br0.
Oto dane, które mogą pomóc:
Kod: Zaznacz cały
kernel 2.6.26-2-686
madwifi 0.9.4
# ifconfig -a
ath0 Link encap:Ethernet HWaddr 00:22:b0:ea:f5:33
BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
eth0 Link encap:Ethernet HWaddr 00:17:31:83:ed:85
inet addr:xxx.xxx.xxx.xxx Bcast:xxx.xxx.xxx.xxx Mask:xxx.xxx.xxx.xxx
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:6677 errors:0 dropped:0 overruns:0 frame:0
TX packets:5743 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:1185227 (1.1 MiB) TX bytes:4852154 (4.6 MiB)
Interrupt:17 Base address:0x6000
eth1 Link encap:Ethernet HWaddr 00:24:01:2f:a8:9c
inet addr:x.x.x.x Bcast:x.x.x.x Mask:x.x.x.x
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:44947 errors:0 dropped:0 overruns:0 frame:0
TX packets:6221 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:7539908 (7.1 MiB) TX bytes:1164159 (1.1 MiB)
Interrupt:17 Base address:0xe800
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:8 errors:0 dropped:0 overruns:0 frame:0
TX packets:8 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:560 (560.0 B) TX bytes:560 (560.0 B)
wifi0 Link encap:UNSPEC HWaddr 00-22-B0-EA-F5-33-00-00-00-00-00-00-00-00-00-00
BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:280
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
Interrupt:18
# iwconfig
ath0 IEEE 802.11b ESSID:"" Nickname:""
Mode:Managed Channel:0 Access Point: Not-Associated
Bit Rate:0 kb/s Tx-Power:0 dBm Sensitivity=1/1
Retry :o ff RTS thr :o ff Fragment thr :o ff
Encryption key :o ff
Power Management :o ff
Link Quality=0/70 Signal level=0 dBm Noise level=0 dBm
Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:0 Invalid misc:0 Missed beacon:0