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/04 13:14] – ↷ Links adapted because of a move operation docs:guide-user:network:wifi:bridgedap [2021/04/26 01:54] – [Step 2: Configure and enable the wireless network] 6ang
Line 22: Line 22:
 ==== 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:guide-user:network:wifi:encryption|securing your wifi network]]. Naturally, you should consider [[docs:guide-user:network:wifi:encryption|securing your wifi network]].
  • Last modified: 2024/06/24 11:05
  • by bluewavenet