OpenWrt Forum Archive

Topic: Routed Client Mode

The content of this topic has been archived on 2 May 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

Because i have problems with the relayd mode (no communication between the lan ports of the pseudobridge router), i will get the client route mode a try.

Here is my config:

DSL--Fritzbox (192.168.1.1)  ))))))))((((((( WR1043ND -------- Mediacenter (192.168.2.2)
             |                                                             |
             |                                                             |----------- Sat Receiver (192.168.2.3)
             |                                                             |
             |                                                             |----------- Laptop wired (192.168.2.15)
           PC 192.168.1.3

The WR1043 have static 192.168.1.2 on WLAN and network 192.168.2.0 on LAN site with DHCP enabled.
I have added a route to net 192.168.2.0 GW 192.168.1.2 into the fritzbox.

My problem:

I can ping from 1.1 to 2.2 but not from 1.1 to 2.3 or 2.15. I thought, this must a problem with the client configuration, but the client is configered correct. Gatway 192.168.2.1, DNS 192.168.2.1, IP 192.168.2.3.
From WR1043ND all ip-adresses are pingable. Firewalls on all PC's are disabled.

Does anybody see my error ?

The OpenWRT (WR1043ND) have this configuration:

Firewall stop - disabled
----------------------------------------------------------------------------------------
Network:
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 proto 'static'
    option netmask '255.255.255.0'
    option ipaddr '192.168.2.1'
    option ifname 'eth0.1 eth0.2'
    option type 'bridge'

config switch
    option name 'rtl8366rb'
    option reset '1'
    option enable_vlan '1'

config switch_vlan
    option device 'rtl8366rb'
    option vlan '1'
    option ports '1 2 3 4 5t'

config switch_vlan
    option device 'rtl8366rb'
    option vlan '2'
    option ports '0 5t'

config interface 'Wireless'
    option proto 'static'
    option netmask '255.255.255.0'
    option gateway '192.168.1.1'
    option dns '192.168.1.1'
    option broadcast '192.168.1.255'
    option ipaddr '192.168.1.2'
----------------------------------------------------------------------------------------
Wireless:
config wifi-device 'radio0'
    option type 'mac80211'
    option macaddr 'b0:48:7a:d1:37:ca'
    option hwmode '11ng'
    option htmode 'HT20'
    list ht_capab 'SHORT-GI-40'
    list ht_capab 'DSSS_CCK-40'
    option channel '9'
    option txpower '20'
    option country 'US'
    option 'disabled' '0'

config wifi-iface
    option device 'radio0'
    option ssid 'im6shop'
    option mode 'sta'
    option encryption 'psk2+ccmp'
    option key 'fhfhfhffhfhfhfhfhf'
    option network 'Wireless'
----------------------------------------------------------------------------------------


I have tried it with the latest trunk, should i test it again with 10.03.1 ?
Makes it sense ?
Ok, with stable Backfire, same result ...

(Last edited by Rampler on 3 Mar 2012, 14:01)

Today i have done the test again with the trunk 30787.
With this trunk version the router will become semi bricked. The router is not accessibly via his LAN ports.

Have anybody installed this config on a atheros based router with success ?

I am surprised, because this should be a basic configuration.

(Last edited by Rampler on 3 Mar 2012, 14:07)

Don't bridge eth0.1 and eth0.2, reconfigure the vlan instead. Yes I ran several atheros client mode setups recently, all without issues.

jow wrote:

Don't bridge eth0.1 and eth0.2, reconfigure the vlan instead. Yes I ran several atheros client mode setups recently, all without issues.

@JOW
Thank You, that solved my problem. Everybody can ping everybody, fine.
Danke nochmal !!
Bei der Pseudobridge hat das leider nicht funktioniert. Bei Pseudobridge sind die LAN Interfaces untereinander nicht pingbar.
Bist Du da dran, oder geht das nicht ?

Now i use this config:
config interface 'lan'
    option proto 'static'
    option netmask '255.255.255.0'
    option ipaddr '192.168.2.1'
    option ifname 'eth0.1'

SOLVED FINISH DONE
I love opnewrt, now

The discussion might have continued from here.