Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision Next revisionBoth sides next revision | ||
| docs:user-guide:network:wifi:bridgedap [2018/03/03 16:50] – ↷ Links adapted because of a move operation bobafetthotmail | docs: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: | + | //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: |
| ===== Configuration ===== | ===== Configuration ===== | ||
| Line 17: | Line 17: | ||
| The changes below assume an OpenWrt default configuration, | The changes below assume an OpenWrt default configuration, | ||
| - | * [[docs: | + | * [[docs:guide-user:base-system:basic-networking|/ |
| - | * [[docs:user-guide: | + | * [[docs: |
| ==== Step 1: Change the LAN interface ==== | ==== Step 1: Change the LAN interface ==== | ||
| - | Edit ''/ | + | Edit ''/ |
| - | + | <code bash> | |
| - | | '' | + | config interface lan |
| option ifname eth0 | option ifname eth0 | ||
| option type bridge | option type bridge | ||
| option proto static | option proto static | ||
| - | option ipaddr | + | 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 |
| + | </ | ||
| This IP address must be an //unused// one within the network subnet of the main router. You could also change '' | This IP address must be an //unused// one within the network subnet of the main router. You could also change '' | ||
| ==== Step 2: Configure and enable the wireless network ==== | ==== Step 2: Configure and enable the wireless network ==== | ||
| - | In ''/ | + | In ''/ |
| - | | '' | + | <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 | ||
| + | </ | ||
| - | Naturally, you should consider [[docs:user-guide: | + | Naturally, you should consider [[docs: |
| ==== Step 3: Disable dnsmasq ==== | ==== Step 3: Disable dnsmasq ==== | ||