1. Bridging all LAN ports
TODO: An example for a config file for wireless is needed on this page.
In the initial (and very common) scenario, all LAN switch ports are bridged together into a single 'br-lan' device. OpenWrt configures that device with an IP protocol, address, etc. In this configuration, everything that's connected to those physical bridged ports can communicate with each other and the router itself.
Configuring the LuCI web interface for a Bridged LAN:
The first image shows all the LAN ports (lan1 .. lan4) are part of a Bridge device named “br-lan”.
The second image shows an interface (“LAN”) that incorporates the “br-lan” device and been assigned a static address 192.168.1.1.
To add a wireless device (such as wlan0), open Network → Wireless. Edit the Device Configuration section to select the proper radio channel etc. Edit the Interface Configuration section (third image) to select the desired interface (from the Network: dropdown) and the SSID, security mode, etc.
Configuration file for a Bridged LAN:
The first half of the file below shows how the config device section groups the physical ports into a bridge device named 'br-lan'.
The config interface 'lan' '' section then incorporates that 'br-lan' device, and sets its IP protocol type, address, etc. //Need to add the configuration for ''wlan0 to this file.//
# ... in /etc/config/network config device option name 'br-lan' option type 'bridge' list ports 'lan1' list ports 'lan2' list ports 'lan3' list ports 'lan4' config interface 'lan' option device 'br-lan' option proto 'static' option ipaddr '192.168.1.1' option netmask '255.255.255.0'


