User Tools

Site Tools


Bridged AP

Bridged AP is to extend your existing wired host router to have wireless capabilities. Clients connecting to OpenWRT will get an IP address from the wired host router.

OpenWrt bridges the LAN network with the WLAN of the device in Access Point mode. The advantage of bridging is that broadcast traffic from Wireless to LAN and vice versa works without further changes.

This document outlines the steps necessary to implement such a setup.


The changes below assume an OpenWrt default configuration, the relevant files are:

Step 1: Change the LAN interface

Edit /etc/config/network and change the lan interface section to set the IP your access point should have in the future:

config interface lan option ifname eth0 option type bridge option proto static option ipaddr option netmask option gateway option dns

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

In /etc/config/wireless, locate the existing wifi-iface section and change its network option to point to the newly created interface section.

config wifi-iface option device wifi0 option network lan option mode ap option ssid OpenWrt option encryption none

Naturally, you should consider securing your wifi network.

Step 3: Disable dnsmasq

/etc/init.d/dnsmasq disable

Step 4: Connect host router and openwrt router correctly

Ensure the host router is connected with a lan port of the openwrt, not the wan port!

Apply changes

Enable the new wireless network.

root@OpenWrt:~# ifup wifi root@OpenWrt:~# wifi
doc/recipes/bridgedap.txt · Last modified: 2017/06/18 22:02 by metai