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
Next revisionBoth sides next revision
docs:guide-user:network:wifi:bridgedap [2018/03/03 20:13] – ↷ Page moved from docs:user-guide:network:wifi:bridgedap to docs:guide-user:network:wifi:bridgedap bobafetthotmaildocs:guide-user:network:wifi:bridgedap [2021/04/26 01:54] – [Step 2: Configure and enable the wireless network] 6ang
Line 11: Line 11:
 This document outlines the steps necessary to implement such a setup.   This document outlines the steps necessary to implement such a setup.  
  
-//Note: This recipe results in a bridged LAN that will work fine for home and small networks. It is similar to the "Dumb AP" recipe at [[docs:user-guide:network:wifi:dumbap]]. These pages should probably be merged.//+//Note: This recipe results in a bridged LAN that will work fine for home and small networks. It is similar to the "Dumb AP" recipe at [[docs:guide-user:network:wifi:dumbap]]. These pages should probably be merged.//
  
 ===== Configuration ===== ===== Configuration =====
Line 17: Line 17:
 The changes below assume an OpenWrt default configuration, the relevant files are: The changes below assume an OpenWrt default configuration, the relevant files are:
  
-  * [[docs:user-guide:network:basics|/etc/config/network]] +  * [[docs:guide-user:base-system:basic-networking|/etc/config/network]] 
-  * [[docs:user-guide:network:wifi:basic|/etc/config/wireless]]+  * [[docs:guide-user:network:wifi:basic|/etc/config/wireless]]
  
 ==== Step 1: Change the LAN interface ==== ==== Step 1: Change the LAN interface ====
  
-Edit ''/etc/config/network'' and change the lan ''[[doc:uci:network#interfaces|interface]]'' section to set the IP your access point should have in the future: +Edit ''/etc/config/network'' and change the lan ''[[docs:guide-user:base-system:basic-networking#interfaces|interface]]'' section to set the IP your access point should have in the future: 
- +<code bash> 
-| ''config interface lan+config interface lan
         option ifname eth0         option ifname eth0
         option type bridge         option type bridge
         option proto static         option proto static
-        option ipaddr **192.168.1.2**+        option ipaddr 192.168.1.2
         option netmask 255.255.255.0         option netmask 255.255.255.0
         option gateway 192.168.1.1         option gateway 192.168.1.1
-        option dns 192.168.1.1 '' | +        option dns 192.168.1.1 
 +</code>
 This IP address must be an //unused// one within the network subnet of the main router. You could also change ''proto'' to ''dhcp'' and let the main router decide the access point's address, but of course from then on the access point needs a DHCP server and you will lose the ability to directly plug into your access point for maintenance. This IP address must be an //unused// one within the network subnet of the main router. You could also change ''proto'' to ''dhcp'' and let the main router decide the access point's address, but of course from then on the access point needs a DHCP server and you will lose the ability to directly plug into your access point for maintenance.
  
 ==== Step 2: Configure and enable the wireless network ==== ==== Step 2: Configure and enable the wireless network ====
  
-In ''/etc/config/wireless'', locate the existing ''[[doc:uci:wireless#wifi.networks|wifi-iface]]'' section and change its network option to point to the newly created interface section.+In ''/etc/config/wireless'', locate the existing ''[[docs/guide-user/network/wifi/basic#wifi_interfaces|wifi-iface]]'' section and change its network option to point to the newly created interface section.
  
-| ''config wifi-iface +<code bash> 
-        option device wifi0 +config wifi-iface 
-        **option network lan** + option device wifi0 
-        option mode ap + option network lan 
-        option ssid OpenWrt + option mode ap 
-        option encryption none'' |+ option ssid OpenWrt 
 + option encryption none 
 +</code>
  
-Naturally, you should consider [[docs:user-guide:network:wifi:encryption|securing your wifi network]].+Naturally, you should consider [[docs:guide-user:network:wifi:encryption|securing your wifi network]].
  
 ==== Step 3: Disable dnsmasq ==== ==== Step 3: Disable dnsmasq ====
  • Last modified: 2024/06/24 11:05
  • by bluewavenet