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:vlan-multiple-wifi-ssid-repeater [2019/01/19 13:03] unitelifedocs:guide-user:network:wifi:vlan-multiple-wifi-ssid-repeater [2020/09/05 13:21] – spelling, links vgaetera
Line 1: Line 1:
-====== How to Setup Wifi Repeaters with Multiple SSIDs ====== +====== Setting up Wi-Fi repeaters with multiple SSIDs with separated private, tor and guest network ======
  --- //[[og.openwrt@gmail.com|a humbly committed student]] 2019/01/19 10:31//  --- //[[og.openwrt@gmail.com|a humbly committed student]] 2019/01/19 10:31//
-The purpose of this wiki is to show users how to configure a main router and multiple access points to repeat multiple SSIDs through the use of tagged vlan switches.+ 
 +The purpose of this article is to show users how to configure a main router and multiple access points to repeat multiple SSIDs through the use of tagged VLAN switches
 + 
 +This example contains one main router that will supply the Wi-Fi SSIDs and DHCP service and two routers configured as access points. In this example, the Linksys WRT 3200acm router with OpenWrt 18.01 was used for all devices.  
 + 
 +These procedures can be done primarily on the LuCI web interface but due to me not being able to attach screenshots, I have done the configuration through the routers config files located in /etc/config during an SSH session into each router.
  
 It is recommended to be familiar with the following wiki articles to perform this task. It is recommended to be familiar with the following wiki articles to perform this task.
  
-  * [[docs:guide-user:network:vlan:creating_virtual_switches|How-To: Creating an additional virtual switch on a typical home router]] +  * [[docs:guide-user:network:vlan:creating_virtual_switches|How-to: Creating an additional virtual switch on a typical home router]] 
-  * [[docs:guide-user:network:wifi:relay_configuration|Wifi Extender or Repeater or Bridge Configuration]]+  * [[docs:guide-user:network:wifi:relay_configuration|Wi-Fi Extender or Repeater or Bridge Configuration]]
   * [[docs:guide-user:network:wifi:routedap|Routed AP]]   * [[docs:guide-user:network:wifi:routedap|Routed AP]]
   * [[docs:guide-user:network:wifi:mesh:80211s|802.11s based wireless mesh network]]   * [[docs:guide-user:network:wifi:mesh:80211s|802.11s based wireless mesh network]]
  
-===== Use-Case Scenario ===== +===== Use-case scenario =====
 This is a network topology for this example: This is a network topology for this example:
  
 [[https://creately.com/diagram/jqvt7mog/XMLuTm22lf8t2ZGA2XqaZx0sSn8%3D|Network Topology Example]] [[https://creately.com/diagram/jqvt7mog/XMLuTm22lf8t2ZGA2XqaZx0sSn8%3D|Network Topology Example]]
  
 +==== Wi-Fi and VLAN Configuration Breakdown ====
 +The SSIDs were created and bridged to their respective Network interface. Each Network interface was added to their own specific VLAN ID. 
  
-This example contains one main router that will supply the WiFi SSIDs and DHCP service and two routers configured as access points. In this example, the Linksys WRT 3200acm router with OpenWrt 18.01 was used for all devices.+The two APs were configured to use the WAN port to receive the tagged uplink connection from the tagged interface port of the previous router/hopI did this to allow me to utilize the 4 ports of the LAN which gave me more ports to connect devices to
  
-List of WiFi SSIDs:+It becomes a matching game to ensure the VLAN ID number that is attached to each of the Wi-Fi interfaces are consistent on all devices i.e. private is on VLAN1 (eth0.1), guest is on VLAN3 (eth0.3), tor is on VLAN4 (eth0.4), etc. so that each router knows the existence of the VLANs.
  
-  * Private: SSID = Magick Mushroom+List of Wi-Fi SSIDs: 
 + 
 +  * Private: SSID = Magick Mushroom, Gaming
   * Guest: SSID = Slave   * Guest: SSID = Slave
   * Tor: SSID = tor   * Tor: SSID = tor
 +
  
 ==== Main Router Configuration Procedures: ==== ==== Main Router Configuration Procedures: ====
  
-  - Firstcreate extra vlansThis can be done via the Luci Gui>Network>Switch or the config file located in /etc/config/network. The SSIDs were created on their own respective interface+=== Switch details === 
 + 
 +^ VLAN ID      ^ Upstream side:HW switch ↔ eth1 driver^^ Downstream side:HW switch↔physical ports^^^^^ 
 +|      | CPU (eth0)    |  cpu (eth1)        |LAN1|LAN2|LAN3|LAN4|WAN| 
 +|         | tagged     | off        |untagged|untagged|untagged|tagged|off| 
 +|         | off | tagged |off|off|off|off|untagged| 
 +|         | tagged     | off        |off|off|off|tagged|off| 
 +|         | tagged     | off        |off|off|off|tagged|off| 
 + 
 +*//Tip: To determine your routers WAN CPU when there are multiple CPUs listed is to use the LuCI web interface and navigate to Network>Switch and see which row has both the CPU tagged and the WAN untaggedtogether, by defaultAnother way is to use the LuCI web interface to navigate to Network>Interfaces and see what Interface is used under the Physical Settings of the WAN // 
 + 
 +1. Create extra VLANs to match the table above. The LAN4 interface was configured to be tagged with VLAN ID numbers. The LAN4 is rebroadcasting the uplink to the next router (the midrange router).
 <hidden onHidden="/etc/config/network" onVisible="Click to see less"><code> <hidden onHidden="/etc/config/network" onVisible="Click to see less"><code>
 config interface 'loopback' config interface 'loopback'
Line 106: Line 125:
 </code></hidden> </code></hidden>
  
-Create WiFi interfaces+2. Create Wi-Fi interfaces.  
 + 
 +:!: Be sure to make the SSID names and passwords identical to what is configured on the main router 
 <hidden onHidden="/etc/config/wireless" onVisible="Click to see less"><code> <hidden onHidden="/etc/config/wireless" onVisible="Click to see less"><code>
 config wifi-device 'radio0' config wifi-device 'radio0'
Line 162: Line 184:
 </code></hidden> </code></hidden>
  
-Create firewall rules+3. Create firewall rules
 <hidden onHidden="/etc/config/firewall" onVisible="Click to see less"><code> <hidden onHidden="/etc/config/firewall" onVisible="Click to see less"><code>
  
Line 377: Line 399:
 </code></hidden> </code></hidden>
  
-Create DHCP configurations+4. Create DHCP configurations
 <hidden onHidden="/etc/config/dhcp" onVisible="Click to see less"><code> <hidden onHidden="/etc/config/dhcp" onVisible="Click to see less"><code>
 config dnsmasq config dnsmasq
Line 429: Line 451:
  
 </code></hidden> </code></hidden>
- 
  
 ==== 2nd, Mid Range AP ==== ==== 2nd, Mid Range AP ====
 +=== Switch details ===
 +^ VLAN ID      ^ Upstream side:HW switch ↔ eth1 driver^^ Downstream side:HW switch↔physical ports^^^^^
 +|      | CPU (eth0)    |  cpu (eth1)        |LAN1|LAN2|LAN3|LAN4|WAN|
 +| 1     | tagged     | tagged     |untagged|untagged|untagged|tagged|tagged|
 +| 2     | off | off        |off|off|off|off|off|
 +| 3     | tagged     | tagged     |off|off|off|tagged|tagged|
 +| 4     | tagged     | tagged     |off|off|off|tagged|tagged|
  
-  - First, create extra vlansThis can be done via the Luci Gui>Network>Switch or the config file located in /etc/config/networkThe SSIDs were created on their own respective interface+1. Create extra VLANs to match the table aboveThe WAN and LAN4 interfaces were configured to be tagged with VLAN ID numbers. The WAN is receiving the uplink from the main router and LAN4 is rebroadcasting the uplink to the next router (the Rear range AP router).
 <hidden onHidden="/etc/config/network" onVisible="Click to see less"><code> <hidden onHidden="/etc/config/network" onVisible="Click to see less"><code>
 config interface 'loopback' config interface 'loopback'
Line 511: Line 539:
 </code></hidden> </code></hidden>
  
-Create WiFi interfaces+2. Create Wi-Fi interfaces.  
 + 
 +:!: Be sure to make the SSID names and passwords identical to what is configured on the main router
 <hidden onHidden="/etc/config/wireless" onVisible="Click to see less"><code> <hidden onHidden="/etc/config/wireless" onVisible="Click to see less"><code>
 config wifi-device 'radio0' config wifi-device 'radio0'
Line 567: Line 597:
 </code></hidden> </code></hidden>
  
-Create firewall rules+3. Create firewall rules
 <hidden onHidden="/etc/config/firewall" onVisible="Click to see less"><code> <hidden onHidden="/etc/config/firewall" onVisible="Click to see less"><code>
  
Line 782: Line 812:
 </code></hidden> </code></hidden>
  
-Create DHCP configurations+4. Create DHCP configurations
 <hidden onHidden="/etc/config/dhcp" onVisible="Click to see less"><code> <hidden onHidden="/etc/config/dhcp" onVisible="Click to see less"><code>
 config dnsmasq config dnsmasq
Line 834: Line 864:
  
 </code></hidden> </code></hidden>
 +
  
 ==== 3rd, Rear Range AP ==== ==== 3rd, Rear Range AP ====
  
-  - First, create extra vlansThis can be done via the Luci Gui>Network>Switch or the config file located in /etc/config/networkThe SSIDs were created on their own respective interface+=== Switch details === 
 + 
 +^ VLAN ID      ^ Upstream side:HW switch ↔ eth1 driver^^ Downstream side:HW switch↔physical ports^^^^^ 
 +|      | CPU (eth0)    | cpu (eth1)        | LAN1 | LAN2 | LAN3 | LAN4 | WAN | 
 +| 1     | tagged     | tagged        |untagged|untagged|untagged|untagged|tagged| 
 +| 2     | off | off |off|off|off|off|off| 
 +| 3     | tagged     | tagged        |off|off|off|off|tagged| 
 +| 4     | tagged     | tagged        |off|off|off|off|tagged| 
 + 
 + 
 +1. Create extra VLANs to match the table aboveThe WAN interface was configured to be tagged with VLAN ID numbers. The WAN is receiving the uplink from the mid router.
 <hidden onHidden="/etc/config/network" onVisible="Click to see less"><code> <hidden onHidden="/etc/config/network" onVisible="Click to see less"><code>
  
Line 917: Line 958:
 </code></hidden> </code></hidden>
  
-Create WiFi interfaces+2. Create Wi-Fi interfaces.  
 + 
 +:!: Be sure to make the SSID names and passwords identical to what is configured on the main router
 <hidden onHidden="/etc/config/wireless" onVisible="Click to see less"><code> <hidden onHidden="/etc/config/wireless" onVisible="Click to see less"><code>
  
Line 989: Line 1032:
 </code></hidden> </code></hidden>
  
-Create firewall rules+3. Create firewall rules
 <hidden onHidden="/etc/config/firewall" onVisible="Click to see less"><code> <hidden onHidden="/etc/config/firewall" onVisible="Click to see less"><code>
  
Line 1132: Line 1175:
 </code></hidden> </code></hidden>
  
-Create DHCP configurations+4. Create DHCP configurations
 <hidden onHidden="/etc/config/dhcp" onVisible="Click to see less"><code> <hidden onHidden="/etc/config/dhcp" onVisible="Click to see less"><code>
  
Line 1171: Line 1214:
  
 </code></hidden> </code></hidden>
- 
  
 Resources: Resources:
-  * https://openwrt.org/docs/guide-user/network/vlan/creating_virtual_switches +  * [[docs:guide-user:network:vlan:creating_virtual_switches]] 
-  * https://openwrt.org/docs/guide-user/network/wifi/relay_configuration +  * [[docs:guide-user:network:wifi:relay_configuration]] 
-  * https://openwrt.org/docs/guide-user/network/wifi/routedap +  * [[docs:guide-user:network:wifi:routedap]] 
-  * https://openwrt.org/docs/guide-user/network/wifi/mesh/80211s+  * [[docs:guide-user:network:wifi:mesh:80211s]] 
  • Last modified: 2021/11/04 09:43
  • by trendy