Hi all,

I'm testing this machine on wifi routed client mode:

Kamikaze revision 19351

I got ("half" - Routed Client mode) for now.
Bridge client and WDS (kerner 2.6) is not supported on bcm63xx for now (I think).


Main router: WRT54GL (subnet 192.168.3.0/24)
Client router: Comtrend CT-5361 (kamikaze r19351) (subnet 192.168.2.0/24)

Scheme:

"Internet" ------- "Modem"-----"WRT54GL (dd-wrt)" )))))))((((((( "Contrend CT-5361 (kamikaze)"------PC1

"Half" - Routed client why?:

PC1: 192.168.2.x:

1º)

***FIREWALL OFF

Comtrend Network file:

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 'ifname' 'eth1'
        option 'proto' 'static'
        option 'netmask' '255.255.255.0'
        option 'nat' '1'
        option 'ipaddr' '192.168.2.50'
        option 'defaultroute' '0'
        option 'peerdns' '0'

config 'interface' 'wan'
        option 'ifname' 'eth0'
        option 'proto' 'static'
        option 'ipaddr' '192.168.3.50'
        option 'netmask' '255.255.255.0'
        option 'gateway' '192.168.3.1'
        option 'defaultroute' '0'
        option 'peerdns' '0'
        option 'dns' 'xxx.xxx.xxx.xxx'


Comtrend Wireless file:

config 'wifi-device' 'radio0'
        option 'type' 'mac80211'
        option 'macaddr' '00:1a:2b:XX:XX:27'
        option 'hwmode' '11g'
        option 'disabled' '0'
        option 'channel' '6'

config 'wifi-iface'
        option 'device' 'radio0'
        option 'ssid' 'the_ssid'
        option 'network' 'wan'
        option 'mode' 'sta'
        option 'encryption' 'psk2'
        option 'key' 'the key'


Comtrend ifconfig command:

root@OpenWrt:~# ifconfig
eth0      Link encap:Ethernet  HWaddr 00:1D:20:XX:XX:82
          inet addr:192.168.3.50  Bcast:192.168.3.255  Mask:255.255.255.0
          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:16

eth1      Link encap:Ethernet  HWaddr 00:1D:20:XX:XX:83
          inet addr:192.168.2.50  Bcast:192.168.2.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:205 errors:0 dropped:0 overruns:0 frame:0
          TX packets:152 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:22603 (22.0 KiB)  TX bytes:42825 (41.8 KiB)
          Interrupt:15

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:7 errors:0 dropped:0 overruns:0 frame:0
          TX packets:7 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:656 (656.0 B)  TX bytes:656 (656.0 B)

wlan0     Link encap:Ethernet  HWaddr 00:1A:2B:XX:XX:27
          inet addr:192.168.3.50  Bcast:192.168.3.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:24 errors:0 dropped:0 overruns:0 frame:0
          TX packets:25 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:2114 (2.0 KiB)  TX bytes:2161 (2.1 KiB)

Results:

ping www.google.com ----> Ok
ping 192.168.3.0/24 ----> NO Ok

****Configuration stable after reboot

2º)

***FIREWALL OFF

Following the above configuration:

a) Destroy wan interface
b) Reboot
c) Create new wan interface (this time wlan0 device; no eth0)

Files:

Comtrend Network file:

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 'ifname' 'eth1'
        option 'proto' 'static'
        option 'netmask' '255.255.255.0'
        option 'nat' '1'
        option 'ipaddr' '192.168.2.50'
        option 'defaultroute' '0'
        option 'peerdns' '0'

config 'interface' 'wan'
        option 'proto' 'static'
        option 'ifname' 'wlan0'
        option 'ipaddr' '192.168.3.50'
        option 'netmask' '255.255.255.0'
        option 'gateway' '192.168.3.1'
        option 'defaultroute' '0'
        option 'peerdns' '0'
        option 'dns' 'XXX.XXX.XXX.XXX'

Comtrend Wireless file:

config 'wifi-device' 'radio0'
        option 'type' 'mac80211'
        option 'macaddr' '00:1a:2b:XX:XX:27'
        option 'hwmode' '11g'
        option 'disabled' '0'
        option 'channel' '6'

config 'wifi-iface'
        option 'device' 'radio0'
        option 'ssid' 'the_ssid'
        option 'network' 'wan'
        option 'mode' 'sta'
        option 'encryption' 'psk2'
        option 'key' 'the key'

Comtrend ifconfig/iwconfig command:

root@OpenWrt:~# ifconfig
eth1      Link encap:Ethernet  HWaddr 00:1D:20:XX:XX:83
          inet addr:192.168.2.50  Bcast:192.168.2.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:371 errors:0 dropped:0 overruns:0 frame:0
          TX packets:434 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:40914 (39.9 KiB)  TX bytes:173750 (169.6 KiB)
          Interrupt:15

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:34 errors:0 dropped:0 overruns:0 frame:0
          TX packets:34 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:2424 (2.3 KiB)  TX bytes:2424 (2.3 KiB)

wlan0     Link encap:Ethernet  HWaddr 00:1A:2B:XX:XX:27
          inet addr:192.168.3.50  Bcast:192.168.3.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:13 errors:0 dropped:0 overruns:0 frame:0
          TX packets:12 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:1577 (1.5 KiB)  TX bytes:1180 (1.1 KiB)

root@OpenWrt:~# iwconfig
lo        no wireless extensions.

eth0      no wireless extensions.

eth1      no wireless extensions.

wlan0     IEEE 802.11bg  ESSID:"the_ssid"
          Mode:Managed  Frequency:2.437 GHz  Access Point: 00:25:9C:XX:XX:XX
          Bit Rate=1 Mb/s   Tx-Power=20 dBm
          RTS thr:off   Fragment thr:off
          Encryption key:off
          Power Management:off
          Link Quality=70/70  Signal level=-40 dBm
          Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
          Tx excessive retries:0  Invalid misc:0   Missed beacon:0

Results:

ping www.google.com ----> OK
ping 192.168.3.0/24 ----> OK
This is the good configuration but.....

****Configuration UNSTABLE after reboot

After reboot:

Only ping IP Comtrend LAN  works (192.168.2.50)
Web interface doesn't work and of course doesn't associate to wireless

Any idea to turn this conf. stable?

Thanks.

Sorry, my english is not very good. I hope you can understand me.