OpenWrt Forum Archive

Topic: tplink 841 nd routed client help

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

Just installed 10.3.1 rc4 on my router and am having trouble setting it up.

I would like to do the following connect the tp link to the access point wirelessly. Then use the LAN ports of the TP link to connect to my computer.
I looked at the wiki and see that Routed Client [ http://wiki.openwrt.org/doc/recipes/routedclient ] is my best bet.
However after doing

root@OpenWrt:~# uci del wireless.@wifi-device[0].disabled
root@OpenWrt:~# uci commit wireless
root@OpenWrt:~# wifi

root@OpenWrt:~# iwlist scan
lo        Interface doesn't support scanning.

eth0      Interface doesn't support scanning.

eth1      Interface doesn't support scanning.

br-lan    Interface doesn't support scanning.

if i setup wireless using the web interface i get this instead

lo        Interface doesn't support scanning.

eth0      Interface doesn't support scanning.

eth1      Interface doesn't support scanning.

br-lan    Interface doesn't support scanning.

wlan0     Interface doesn't support scanning : Operation not supported

mon.wlan0  Interface doesn't support scanning : Operation not supported

I would like to now hot to preceed in order to get wireless to work properly.

Also is their some way in linux to connect my machine to bith the tp link (wired) and the access point (wirelessly) simultaneoulsy in linux. (while i am setting up the tp link)?

Forget the preface. Just start it from Step 1: Change the WAN interface and Step 2: Change the existing wireless network.

I reset everything and started again.

This is what i did, using Luci.

In the wifi section i added a profile.
Set the channel to the AP's channel
The essid was the essid of the network i wanted to connect to.
set the network to wan
set mode to client

now in the lan interface section

protocol should be static and bridge interfaces is checked and the interface is eth0.

Now everything works. ( the open wrt router connects ti the AP and my machine connects to the open wrt router over ethernet and i can access the internet from my machine)

But my question is , is this a good config ?

/etc/config/network is

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' 'eth0'
        option 'type' 'bridge'
        option 'proto' 'static'
        option 'ipaddr' '192.168.1.1'
        option 'netmask' '255.255.255.0'

config 'interface' 'wan'
        option 'proto' 'dhcp'
        option '_ifname' 'eth1'
        option 'ifname' 'eth1'

config 'switch' 'eth0'
        option 'enable_vlan' '1'

config 'switch_vlan'
        option 'device' 'eth0' 
        option 'vlan' '1'       
        option 'ports' '0 1 2 3 4'


and /etc/config/wireless  is

config 'wifi-device' 'radio0'
        option 'type' 'mac80211'
        option 'macaddr' '00:25:86:c0:94:20'
        option 'hwmode' '11ng'
        option 'htmode' 'HT20'
        list 'ht_capab' 'SHORT-GI-40'
        list 'ht_capab' 'TX-STBC'
        list 'ht_capab' 'RX-STBC1'
        list 'ht_capab' 'DSSS_CCK-40'
        option 'disabled' '0'
        option 'channel' '1'

config 'wifi-iface'
        option 'device' 'radio0'
        option 'ssid' 'my essid'
        option 'network' 'wan'
        option 'mode' 'sta'
        option 'encryption' 'psk'
        option 'key' 'my password'

/etc/config/firewall

config defaults                                 
        option syn_flood        1               
        option input            ACCEPT           
        option output           ACCEPT           
        option forward          REJECT           
                                                 
config zone                                     
        option name             lan             
        option input    ACCEPT                   
        option output   ACCEPT                   
        option forward  REJECT                   
                                                 
config zone                                     
        option name             wan             
        option input    REJECT                   
        option output   ACCEPT                   
        option forward  REJECT                   
        option masq             1               
        option mtu_fix  1                       
                                                 
config forwarding                               
        option src      lan                     
        option dest     wan   

//rest is default

ch wrote:

config 'interface' 'lan'
        option 'ifname' 'eth0'
        option 'type' 'bridge'
        option 'proto' 'static'
        option 'ipaddr' '192.168.1.1'
        option 'netmask' '255.255.255.0'

config 'interface' 'wan'
        option 'proto' 'dhcp'
        option '_ifname' 'eth1'
        option 'ifname' 'eth1'

config 'interface' 'lan'
        option 'ifname' 'eth0 eth1'
        option 'type' 'bridge'
        option 'proto' 'static'
        option 'ipaddr' '192.168.1.1'
        option 'netmask' '255.255.255.0'

config 'interface' 'wan'
        option 'proto' 'dhcp'

What will the afore mentioned code do ?

I bricked a router once and am a bit more cautious now.

br-lan = 'eth0 eth1'
wan = wlan0

The discussion might have continued from here.