# on the fonera with kamikaze r6846 root@OpenWrt:/# cat /etc/config/network # Copyright (C) 2006 OpenWrt.org config interface loopback option ifname lo option proto static option ipaddr 127.0.0.1 option netmask 255.0.0.0 config interface lan option type bridge option ifname eth0 option proto 'static' option ipaddr '192.168.178.2' option netmask '255.255.255.0' option gateway '192.168.178.1' option dns '192.168.178.1' root@OpenWrt:/# cat /etc/config/wireless config wifi-device wifi0 option type atheros option channel 1 # option diversity 1 # option txantenna 0 # option rxantenna 0 # option distance 2000 # disable radio to prevent an open ap after reflashing: option disabled 0 config wifi-iface option device wifi0 option network lan option mode ap option ssid OpenWrt option hidden 0 # option txpower 15 # option bgscan enable option encryption psk2 option key "foobar" config wifi-iface option device wifi0 option network lan option mode wds option ssid OpenWrt-WDS-1 option bssid 00:18:84:14:39:95 option hidden 0 option encryption none root@OpenWrt:/# root@OpenWrt:/# iwconfig eth0 no wireless extensions. lo no wireless extensions. br-lan no wireless extensions. wifi0 no wireless extensions. ath0 IEEE 802.11g ESSID:"OpenWrt" Nickname:"" Mode:Master Frequency:2.412 GHz Access Point: 00:18:84:14:39:95 Bit Rate:0 kb/s Tx-Power:18 dBm Sensitivity=0/3 Retry:off RTS thr:off Fragment thr:off Encryption key:EF6F-3D80-A8A8-420F-BD37-556B-D74D-2530 [2] Security mode:open Power Management:off Link Quality=21/94 Signal level=-74 dBm Noise level=-95 dBm Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0 Tx excessive retries:0 Invalid misc:0 Missed beacon:0 ath1 IEEE 802.11g Nickname:"" Mode:Repeater Frequency:2.412 GHz Access Point: 00:18:84:14:39:95 Bit Rate:0 kb/s Tx-Power:18 dBm Sensitivity=0/3 Retry:off RTS thr:off Fragment thr:off Encryption key:off Power Management:off Link Quality=21/94 Signal level=-74 dBm Noise level=-95 dBm Rx invalid nwid:9 Rx invalid crypt:0 Rx invalid frag:0 Tx excessive retries:0 Invalid misc:0 Missed beacon:0 root@OpenWrt:/# ifconfig ath0 Link encap:Ethernet HWaddr 00:18:84:14:39:95 UP BROADCAST RUNNING MULTICAST MTU:2290 Metric:1 RX packets:361 errors:0 dropped:0 overruns:0 frame:0 TX packets:288 errors:0 dropped:4 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:25323 (24.7 KiB) TX bytes:36191 (35.3 KiB) ath1 Link encap:Ethernet HWaddr 00:18:84:14:39:95 UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:86 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:0 (0.0 B) TX bytes:14059 (13.7 KiB) br-lan Link encap:Ethernet HWaddr 00:18:84:14:39:94 inet addr:192.168.178.2 Bcast:192.168.178.255 Mask:255.255.255.0 UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:31639 errors:0 dropped:0 overruns:0 frame:0 TX packets:10195 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:2821145 (2.6 MiB) TX bytes:1285301 (1.2 MiB) eth0 Link encap:Ethernet HWaddr 00:18:84:14:39:94 UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:254117 errors:0 dropped:0 overruns:0 frame:0 TX packets:257015 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:165228509 (157.5 MiB) TX bytes:163264031 (155.7 MiB) Interrupt:4 Base address:0x1000 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:5 errors:0 dropped:0 overruns:0 frame:0 TX packets:5 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:Ethernet HWaddr 00:18:84:14:39:95 UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:281575 errors:0 dropped:0 overruns:0 frame:31278 TX packets:265815 errors:749 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:199 RX bytes:175955293 (167.8 MiB) TX bytes:175902658 (167.7 MiB) Interrupt:3 Memory:b0000000-b00ffffc root@OpenWrt:/# brctl show bridge name bridge id STP enabled interfaces br-lan 8000.001884143994 no eth0 ath0 ath1 root@OpenWrt:/# # on the net4801 with kamikaze rXXXX root@OpenWrt:/# cat /etc/config/wireless # Copyright (C) 2006 OpenWrt.org config interface loopback option ifname lo option proto static option ipaddr 127.0.0.1 option netmask 255.0.0.0 config interface lan option type bridge option ifname eth0 option proto 'static' option ipaddr '192.168.178.3' option netmask '255.255.255.0' option gateway '192.168.178.1' option dns '192.168.178.1' root@OpenWrt:/# cat /etc/config/wireless config wifi-device wifi0 option type atheros option channel 1 # option diversity 1 # option txantenna 0 # option rxantenna 0 # option distance 2000 # disable radio to prevent an open ap after reflashing: option disabled 0 config wifi-iface option device wifi0 option network lan option mode wds option ssid OpenWrt-WDS-1 option bssid 06:18:84:14:39:95 option hidden 0 # option txpower 15 # option bgscan enable option encryption none root@OpenWrt:/# iwconfig ath0 ath0 IEEE 802.11b Nickname:"" Mode:Repeater Frequency:2.412 GHz Access Point: 06:18:84:14:39:95 Bit Rate:0 kb/s Tx-Power:19 dBm Sensitivity=0/3 Retry:off RTS thr:off Fragment thr:off Encryption key:off Power Management:off Link Quality=36/94 Signal level=-59 dBm Noise level=-95 dBm Rx invalid nwid:47 Rx invalid crypt:0 Rx invalid frag:0 Tx excessive retries:0 Invalid misc:0 Missed beacon:0 root@OpenWrt:/# ifconfig ath0 Link encap:Ethernet HWaddr 00:0B:6B:4F:80:A1 UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:0 errors:21 dropped:0 overruns:0 frame:0 TX packets:21 errors:0 dropped:1 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:0 (0.0 B) TX bytes:882 (882.0 B) br-lan Link encap:Ethernet HWaddr 00:00:24:C4:F2:28 inet addr:192.168.178.3 Bcast:192.168.178.255 Mask:255.255.255.0 UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:24 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:0 (0.0 B) TX bytes:1008 (1008.0 B) eth0 Link encap:Ethernet HWaddr 00:00:24:C4:F2:28 UP 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:1000 RX bytes:0 (0.0 B) TX bytes:0 (0.0 B) Interrupt:10 Base address:0x8000 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:11 errors:0 dropped:0 overruns:0 frame:0 TX packets:11 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:1082 (1.0 KiB) TX bytes:1082 (1.0 KiB) wifi0 Link encap:UNSPEC HWaddr 00-0B-6B-4F-80-A1-00-00-00-00-00-00-00-00-0 0-00 UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:68 errors:0 dropped:0 overruns:0 frame:9 TX packets:21 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:199 RX bytes:3056 (2.9 KiB) TX bytes:1470 (1.4 KiB) Interrupt:11 Memory:c88c0000-c88d0000 root@OpenWrt:/# brctl show bridge name bridge id STP enabled interfaces br-lan 8000.000024c4f228 no eth0 ath0 root@OpenWrt:/#