Changes between Initial Version and Version 1 of OpenWrt/wireless/client


Ignore:
Timestamp:
10/22/2017 05:28:45 AM (7 years ago)
Author:
trac
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • OpenWrt/wireless/client

    v1 v1  
     1[[PageOutline]]
     2
     3= OpenWrt Wireless Client =
     4If you want to provide a bridge between a Wireless Access Point and an Ethernet LAN you need a '''Wireless Bridge''' and not a standard wireless client. Please see our wiki about [wiki:wireless_bridge Wireless Bridging]
     5
     6If the bridge is not needed, you can configure a Gateworks board as a standard Wireless client like in the following example:
     7
     8 * Configure the /etc/config/wireless file
     9{{{
     10root@OpenWrt:/# cat /etc/config/wireless
     11
     12config wifi-device 'radio0'
     13        option type 'mac80211'
     14        option channel '11'
     15        option hwmode '11g'
     16        option phy 'phy0'
     17        option txpower '27'
     18        option country 'US'
     19        option disabled '0'
     20
     21config wifi-iface
     22        option network 'wwan'
     23        option ssid 'myap'
     24        option encryption 'psk2'
     25        option device 'radio0'
     26        option mode 'sta'
     27        option bssid '00:23:69:D2:37:7E'
     28        option key 'abc123'
     29}}}
     30
     31 * Configure the /etc/config/network file
     32If something is connected to the ethernet port on that board and would like to also connect, you can create a different subnet (192.168.2.x) for the ethernet and let the wireless (192.168.1.x) act like the wan.
     33{{{
     34root@OpenWrt:/# cat /etc/config/network
     35
     36config interface 'loopback'
     37        option ifname 'lo'
     38        option proto 'static'
     39        option ipaddr '127.0.0.1'
     40        option netmask '255.0.0.0'
     41
     42config interface 'lan'
     43        option ifname 'eth0'
     44        option type 'bridge'
     45        option proto 'static'
     46        option ipaddr '192.168.2.76'
     47        option netmask '255.255.255.0'
     48
     49config interface 'wan'
     50        option ifname 'wlan0'
     51        option proto 'static'
     52        option ipaddr '192.168.1.76'
     53        option netmask '255.255.255.0'
     54        option gateway '192.168.1.1'
     55        option dns '192.168.1.1'
     56
     57config interface 'wwan'
     58        option proto 'dhcp'
     59}}}