Friday, 07 September 2012 23:01

OpenWRT in Client Mode

Client mode uses its wireless connection as the WAN interface, and shares the internet connection only to the LAN ports. It is not seen as an access point by laptops or other computers scanning for AP's and does not accept wireless connections from client devices.
 
As shown in figure below, the new SSID (wwan) cannot be seen by other client devices nor accept wireless connection from client devices. Therefore the client devices (Notebook3 and Notebook4) must connect to the Wifi router using network cable.
 
 Client Mode

Prerequisite

  • Modem Router (Host Router) configure as AP, I'm using TP-LINK TD-W8960N
  • TP-LINK TL-WR1043ND Wireless Router flash with OpenWRT

 

Configuration

  • Host Router IP address: 192.168.1.1
  • Host Router ESSID: ccc
  • Host Router Channel: 6
  • Client Router: 192.168.0.1 (The network address must be differ from Host Router)

Note: The red colour part for above 192.168.0.1 is the network address, while the blue colour part is the host address.

 

Setting IP address for Client Router

The default IP address is 192.168.1.1, change it to 192.168.0.1

Network Interface

 

Wiress Oveview

Click Scan button to list available wireless network.

Wireless Overview

 

Wireless Scan

It should display a list of available wireless network arround your area. Select a wireless network you decided to join.

Wireless Scan

 

 

Join Network

Enter WPA passphrase (I'm using WPA as the security protocol) which must same as your Host Router, leave the Name of the new network as wwan.

Join Network

 

Summary of Wireless Network Client

As shown in figure below is the settings detected automatically. Don't change any thing here, just click Save and Apply button to continue.

Wireless Network Client

Restart the router, connect notebook (do not use wireless, must using network cable) to the router. You should able to connect to internet.

Router Connected

Read 43471 times Last modified on Sunday, 12 June 2016 10:44

6 comments

  • Comment Link admin Saturday, 27 May 2017 13:47 posted by admin

    It is not able to ping from notebook 2 to notebook 4 since both of them is not working in same network range. Please change the netmask to 255.255.252.0 for bot host & client router, hopefully it works for you.
    Additionally, you can configure the router as client bridge mode so that all your notebook is able to ping with each other.

  • Comment Link vamsi Saturday, 27 May 2017 09:35 posted by vamsi

    Thank you for the reply,

    I will be more specific, I need to know what configuration is required for the host connected to a client router (Notebook 4 ) to reach the host (Notebook 2) connected to the host router, for example, ping traffic from Notebook 4 to Notebook 2 and vice versa.

    Could you please tell me the configuration? I could able to ping from the client router to the host router and to the host connected (notebook 2 ) to the host router. But I can't able to ping host router from Notebook 4.

  • Comment Link admin Thursday, 25 May 2017 13:31 posted by admin

    I don't have the device anymore. The setup is very straightforward, the host router is an ordinary router configure as standard AP (no special tweaking).
    The client router is flashing with OpenWrt and the address range must be different from the host router(host=192.168.1.1, client=192.168.0.1), the rest of steps is just follow the picture guide without modifying ip tables/ebtables.

  • Comment Link Vamsi Wednesday, 24 May 2017 09:34 posted by Vamsi

    Hi

    I have a question regarding the Network Configuration, did you add the wifi or eth0 interface to the bridge in Network->interface->Lan settings at the client router?.
    You only showed how to modify the Ip address, I see the br-lan interface, but the interfaces bridged to it are not visible. Can you please share the configuration.

    The traffic from the host PC (connected to the client router) has to be forwarded from the ethernet port to the WiFi interface (wlan0/wlan1/wifi0/wifi1 or anything, naming doesn't matter) of the client router, so that the client router forwards the traffic to the host router. I know that the briding is not allowed in STA/client mode, did you use ip tables/ebtables ? to forward the traffic ?

    Thanks
    Vamsi

  • Comment Link Paul Wednesday, 22 February 2017 05:42 posted by Paul

    Saved my day! Thank you so much!

  • Comment Link Kyle Burkett Thursday, 24 November 2016 02:08 posted by Kyle Burkett

    you are my hero in every way. I've spent hours trying to configure it correctly with no luck. Messing with DHCP and DNS seems like what was creating an issue as I reset and followed your directions and had it operating perfectly right away. I LOVE YOU! THANK YOU SO MUCH

Leave a comment

Back to Top