User Tools

Site Tools


doc:recipes:bridgedclient

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
doc:recipes:bridgedclient [2012/11/04 03:11]
pingec Added a fourh step - specifying gateway & dns o make internet work
doc:recipes:bridgedclient [2014/12/01 13:36] (current)
jow alte Version wieder hergestellt (2014/03/22 23:41)
Line 1: Line 1:
 ====== Bridged Client ====== ====== Bridged Client ======
  
-For routers based on the Broadcom chipset, the OpenWrt //​brcm-2.4//​ target supports //bridged client mode// through the proprietary //wl.o// driver.+For routers based on the Broadcom chipset, the OpenWrt //​brcm-2.4//​ target supports //bridged client mode// through the ''​proprietary'' ​//wl.o// driver.
  
 This configuration will not work for routers that are on other platforms, such as Atheros chipsets - see [[doc/​howto/​clientmode#​bridged.client.mode.issues|Bridged Client Mode Issues]]. ​ The UI will //not// display any warnings if this is attempted on a non-compatible chipset; it will silently fail in the fashion described in the "​Issues"​ article. ​ Some possible alternatives include [[doc:​recipes:​relayclient|Routed Client with relayd (Pseudobridge)]] or [[doc:​recipes:​atheroswds|WDS (Atheros)]]. This configuration will not work for routers that are on other platforms, such as Atheros chipsets - see [[doc/​howto/​clientmode#​bridged.client.mode.issues|Bridged Client Mode Issues]]. ​ The UI will //not// display any warnings if this is attempted on a non-compatible chipset; it will silently fail in the fashion described in the "​Issues"​ article. ​ Some possible alternatives include [[doc:​recipes:​relayclient|Routed Client with relayd (Pseudobridge)]] or [[doc:​recipes:​atheroswds|WDS (Atheros)]].
Line 28: Line 28:
 <​code>​uci del wireless.wl0.disabled <​code>​uci del wireless.wl0.disabled
 uci commit wireless uci commit wireless
 +uci set wireless.wl0.country=DE
 wifi</​code>​ wifi</​code>​
  
   * Remove the //disable 1// option from the wireless configuration   * Remove the //disable 1// option from the wireless configuration
   * Save changed configuration file   * Save changed configuration file
 +  * Select your country, this is important because some countries don't support wifi channels 12,13,etc
   * Start wireless using the //wifi// command   * Start wireless using the //wifi// command
  
Line 102: Line 104:
 | ''​config '​wifi-device'​ '​wl0'​ | ''​config '​wifi-device'​ '​wl0'​
         option '​type' ​      '​broadcom'​         option '​type' ​      '​broadcom'​
 +        option '​country' ​   '​DE'​
         option '​channel' ​   '​**9**'​         option '​channel' ​   '​**9**'​
  
Line 119: Line 122:
  
 <​code>​wifi <​code>​wifi
-iwconfig ​wl0 +iw dev wl0 link 
-wl0       IEEE 802.11-DS ​ ESSID:"​Vodafone-0E0301" ​  +Connected to 00:​1D:​19:​0E:​03:​8F ​(on wl0) 
-          Mode:​Managed ​ Frequency:​2.432 GHz  Access Point: **00:​1D:​19:​0E:​03:​8F** + SSID: tesla-5g-bcm 
-          Bit Rate=48 Mb/s   Tx-Power:32 dBm    + freq2432 
-          Retry min limit:7   RTS thr:​off ​  ​Fragment thr:off + RX49716623 bytes (211199 packets) 
-          Power Management:off + TX22865049 bytes (98041 packets) 
-          Link Quality=3/​5 ​ Signal level=-68 dBm  Noise level=-94 dBm + signal: -43 dBm 
-          Rx invalid nwid:0  Rx invalid crypt:​0 ​ Rx invalid frag:0 + tx bitrate300.MBit/s MCS 15 40MHz short GI
-          Tx excessive retries:​0 ​ Invalid misc:​0 ​  ​Missed beacon:​0<​/code>+
  
 + bss flags:​ short-slot-time
 + dtim period: 0
 + beacon int: 100
   * //Access Point: 00:​1D:​19:​0E:​03:​8F//​ indicates a successful connection   * //Access Point: 00:​1D:​19:​0E:​03:​8F//​ indicates a successful connection
   * //Access Point: Not-Associated//​ would indicate a connection or authentication problem\\   * //Access Point: Not-Associated//​ would indicate a connection or authentication problem\\
-\\+</​code>​
 | {{:​meta:​48px-dialog-warning.svg.png?​nolink}} | If the target network uses the 192.168.1.0/​24 subnet, you **must** change the default LAN IP address to the same subnet, e.g. to 192.168.1.**10**\\ | | {{:​meta:​48px-dialog-warning.svg.png?​nolink}} | If the target network uses the 192.168.1.0/​24 subnet, you **must** change the default LAN IP address to the same subnet, e.g. to 192.168.1.**10**\\ |
  
Line 168: Line 173:
 ==== Step 4: Specify gateway ==== ==== Step 4: Specify gateway ====
  
-In my case, after following this recipe through all three steps, the network was working fine, but internet was not accessible. To make internet work I needed to additionally add a new config section - a gateway route (in my case 192.168.1.1) ​for the lan interface in **/​etc/​config/​network**:​ +In my case, after following this recipe through all three steps, the network was working fine, but internet was not accessible. To make internet work I needed to additionally add a gateway route (in my case 192.168.1.1) ​and to make domains resolve I needed to add a dns server address (for example 8.8.8.8) ​for the lan interface ​in **/​etc/​config/​network**:​
- +
- +
-| ''​**config '​route'​ +
- option '​interface'​ '​lan'​ +
- option '​target'​ '​0.0.0.0'​ +
- option '​netmask'​ '​0.0.0.0'​ +
- option '​gateway'​ '​192.168.1.1'​** ''​ | +
- +
-And to make domains resolve I needed to add a dns server address (for example 8.8.8.8) in  **/​etc/​config/​network** ​to the lan interface section:+
  
 | ''​config '​interface'​ '​lan'​ | ''​config '​interface'​ '​lan'​
  ...  ...
- **option '​dns'​ '​8.8.8.8'​** ''​ |+ **option '​dns'​ '​8.8.8.8
 + option '​gateway'​ '​192.168.1.1' ** ''​ |
  
 ===== See also ===== ===== See also =====
  
 For more on wireless client mode see [[doc/​howto/​clientmode]] For more on wireless client mode see [[doc/​howto/​clientmode]]
- 
doc/recipes/bridgedclient.1351995100.txt.bz2 · Last modified: 2012/11/04 03:11 by pingec