# BE6500 Vlans Setup

**URL:** <https://forum.gl-inet.com/t/be6500-vlans-setup/69238>\
**Category:** Router\
**Created:** [June 9, 2026, 2:38am UTC](https://forum.gl-inet.com/t/be6500-vlans-setup/69238 "2026-06-09T02:38:29Z")\
**Posts on this page:** 9\
**Page:** 2

<div class="post-metadata">

**Author:** ![yyuan](https://forum-assets.gl-inet.com/letter_avatar_proxy/v4/letter/y/e8c25b/32.png) [@yyuan](https://forum.gl-inet.com/u/yyuan)\
**Post date:** [July 24, 2026, 12:22pm UTC](https://forum.gl-inet.com/t/be6500-vlans-setup/69238/23 "2026-07-24T12:22:49Z")

</div>

Cool! Thanks!

---

<div class="post-metadata">

**Author:** ![yyuan](https://forum-assets.gl-inet.com/letter_avatar_proxy/v4/letter/y/e8c25b/32.png) [@yyuan](https://forum.gl-inet.com/u/yyuan)\
**Post date:** [July 28, 2026, 5:44pm UTC](https://forum.gl-inet.com/t/be6500-vlans-setup/69238/24 "2026-07-28T17:44:52Z")

</div>

**BE6500 VLAN and WIFI Configuration via SSH/UCI and LuCI**

Previously in Reference 2, a sample of Lan based iot Vlan on BE6500 was created via SSH/UCI scripting and via LuCI GUI, without using network Bridge device. However, a Vlan bridge device is necessary for adding/binding a wifi ssid to a specific Vlan.

**References**

Ref.1 @bruce @will.qiu : [https://forum.gl-inet.com/t/flint-3-gl-be9300-as-ap-behind-pfsense-multiple-ssids-vlan-random-bssid/66719](https://forum.gl-inet.com/t/flint-3-gl-be9300-as-ap-behind-pfsense-multiple-ssids-vlan-random-bssid/66719)

Ref.2

> [@yyuan](#):
>
> BE6500 VLAN Configuration via UCI and LuCI

This is a follow-up descripting BE6500 wifi creation for specific Vlan, an IOT (Vlan 21) in this example, via SSH/UCI scripting and via LuCI GUI.

Environment:

· Same as those listed in Ref.2

· Plus: Create 2.4Ghz and 5Ghz wifi and bind their SSIDs to IOT (Vlan 21) network, so that wireless devices are in the same Vlan network.

Pre-condition:

· BE6500 is manufactured reset

· Basic Wan/Lan settings completed

Two approaches:

- VLAN & VLAN Based Wifi Configuration via SSH/UCI script

- VLAN & VLAN Based Wifi Configuration via LuCI GUI

**Part 1 - BE6500 VLAN & Wifi Configuration via SSH/UCI script**

Compared with Lan based Vlan configuration described in Ref.2, following additional steps are added:

· Bridge device (for iot) to allow binding Wifi ssid to iot Vlan

· 2.4 GHz wifi binding with iot Vlan

· 5Ghz wifi binding with iot Vlan

Wifi related UCI script was largely derived from @bruce code in Ref.1, with minor modifications.

Use SSH or PuTTY (login as root) and run following UCI script

```auto
#Create VLAN 21 (IOT)
#Setup Physical Lan Port 1 as trunk port for downstream AP/switch
#swconfig Switch 1 Port 3 = cpu
#swconfig Switch 1 Port 7 = Physical Lan Port 1 

uci set network.vlan_iot='switch_vlan'
uci set network.vlan_iot.device='switch1'
uci set network.vlan_iot.vlan='21'
uci set network.vlan_iot.ports='3t 7t'

#Create sub-interface/device for VLAN 21

uci set network.eth1_21='device'
uci set network.eth1_21.name='eth1.21'
uci set network.eth1_21.type='8021q'
uci set network.eth1_21.ifname='eth1'
uci set network.eth1_21.vid='21'

# Add Bridge 
uci set network.br_iot=device
uci set network.br_iot.type='bridge'
uci set network.br_iot.name='br-iot'
uci add_list network.br_iot.ports='eth1.21'

#Create the IOT interface

uci set network.iot='interface'
uci set network.iot.device='br-iot'
uci set network.iot.proto='static'
uci set network.iot.ipaddr='192.168.21.1'
uci set network.iot.netmask='255.255.255.0'

#Enable DHCP for IOT

uci set dhcp.iot='dhcp'
uci set dhcp.iot.interface='iot'
uci set dhcp.iot.start='100'
uci set dhcp.iot.limit='150'
uci set dhcp.iot.leasetime='12h'

#Create the IOT firewall zone

uci add firewall zone
uci set firewall.@zone[-1].name='iot'
uci set firewall.@zone[-1].network='iot'
uci set firewall.@zone[-1].input='REJECT'
uci set firewall.@zone[-1].output='ACCEPT'
uci set firewall.@zone[-1].forward='REJECT'
uci set firewall.@zone[-1].masq='1'
uci set firewall.@zone[-1].mtu_fix='1'

#Allow IOT to access WAN

uci add firewall forwarding
uci set firewall.@forwarding[-1].src='iot'
uci set firewall.@forwarding[-1].dest='wan'

#Allow DHCP & DNS on IOT

uci add firewall rule
uci set firewall.@rule[-1].name='Allow-IOT-DHCP'
uci set firewall.@rule[-1].src='iot'
uci set firewall.@rule[-1].proto='udp'
uci set firewall.@rule[-1].dest_port='67-68'
uci set firewall.@rule[-1].target='ACCEPT'

uci add firewall rule
uci set firewall.@rule[-1].name='Allow-IOT-DNS'
uci set firewall.@rule[-1].src='iot'
uci set firewall.@rule[-1].proto='tcp udp'
uci set firewall.@rule[-1].dest_port='53'
uci set firewall.@rule[-1].target='ACCEPT'

#Add WiFi SSID Radio - 5G

uci set wireless.wifi5g1=wifi-iface
uci set wireless.wifi5g1.device='wifi1'
uci set wireless.wifi5g1.network='iot'
uci set wireless.wifi5g1.mode='ap'
uci set wireless.wifi5g1.ssid='GL Router-iot-5G'
uci set wireless.wifi5g1.encryption='psk2+ccmp'
uci set wireless.wifi5g1.key='goodlife'
uci set wireless.wifi2g2.wds='1'
uci set wireless.wifi5g1.isolate='0'
uci set wireless.wifi5g1.hidden='0'
uci set wireless.wifi5g1.ieee80211k='1'
uci set wireless.wifi5g1.bss_transition='1'
uci set wireless.wifi5g1.sae='0'
uci set wireless.wifi5g1.disabled='0'

#Add WiFi SSID Radio - 2.4G

uci set wireless.wifi2g1=wifi-iface
uci set wireless.wifi2g1.device='wifi0'
uci set wireless.wifi2g1.network='iot'
uci set wireless.wifi2g1.mode='ap'
uci set wireless.wifi2g1.ssid='GL Router-iot-2.4G'
uci set wireless.wifi2g1.encryption='psk2+ccmp'
uci set wireless.wifi2g1.key='goodlife'
uci set wireless.wifi2g2.wds='1'
uci set wireless.wifi2g1.isolate='0'
uci set wireless.wifi2g1.hidden='0'
uci set wireless.wifi2g1.ieee80211k='1'
uci set wireless.wifi2g1.bss_transition='1'
uci set wireless.wifi2g1.sae='0'
uci set wireless.wifi2g1.disabled='0'

#Commit and Reboot

uci commit
reboot

```

Newly added 2.4Ghz/5Ghz Wifi are activated and configurations are present in both

· GL-BE6500 Admin Panel / WIRELESS, and

· LuCY-\>Network-\>Wireless

**Part 2: BE6500 VLAN & Wifi Configuration via LuCI GUI**

**2.1 Setup VLAN 21 network**

As mentioned in Ref.2, VLAN 21 network setup via LuCI GUI has following 6 steps:

 ![image](https://forum-static.gl-inet.com/original/3X/8/1/81471f2414d5ea2c3606190c18e9514ce60f9ac6.png)

Network bridge device was optional (not necessary) for Lan based Vlan, and the network bridge was not created from the above steps. However, to add/bind wifi into a Vlan network, a network bridge device is required.

To add a Vlan based Bridge device, Step 3 listed above needs to be revised as follow:

Step 3 Create VLAN 21 (IOT) Bridge and Interface

Step 3.1 Create IOT Bridge Device: br-iot

· LuCI-\>Network-\>Interfaces-\>devices

 ![image](https://forum-static.gl-inet.com/original/3X/1/2/12df88885f2cf3c5d014f964a6940bf503e224f7.png)

· Click “Add device Configuration”, and select/input info as below, then click Save

 ![image](https://forum-static.gl-inet.com/original/3X/d/b/db892f4088305b6ee8c7da88cd1002397a831b01.png)

Now Vlan21 bridge device “br-iot” is created

 ![image](https://forum-static.gl-inet.com/original/3X/e/3/e33da3fd5e7e82b103b27e35017ec4b91efc45c9.png)

Step 3.2 Create VLAN 21 (IOT) Interface

· LuCI-\>Network-\>Interfaces-\>Interfaces

· Go to bottom of the page and Click “Add new interface”

```auto
     Name: iot
     Protocol: Static address
     Device: select “br-iot”

```

 ![image](https://forum-static.gl-inet.com/original/3X/c/2/c2405a251e140bc3e8af942c40a3d1616a749320.png)

· Click “Create interface”

· Add IPv4 address/netmask: 192.168.21.1/255.255.255.

 ![image](https://forum-static.gl-inet.com/original/3X/1/e/1e421f83bd2ddfabeb7cf021c416baddc413b882.png)

Do not Save.

This is the end of revised Step 3, Continue rest of steps to complete the Vlan 21 network configuration.

**2.2 Setup 2.4Ghz/5Ghz wifi for VLAN 21**

Steps for adding both 2.4Ghz wifi and 5Ghz wifi into Vlan 21 network are identical.

Step 2.1 Choose a new 2.4Ghz or 5Ghz wifi to create

· LuCI-\>Network-\>Wireless

 ![image](https://forum-static.gl-inet.com/original/3X/1/b/1b9aec54eee0d2666e0c249a08e90c048574b140.png)

To create a 2.4Ghz wifi, go to “wifi0” line and click Add

To create a 5Ghz wifi, go to “wifi1” line and click Add

Step 2.2 Create 2.4Ghz Wifi

 ![image](https://forum-static.gl-inet.com/original/3X/b/7/b79ff50758cbf44c3174af4c1f23a551ecad2860.png)

· Select from dropdown. Enter a proper SSID name in ESSID field

· Do not save

· Go to “Wireless Security” tab

 ![image](https://forum-static.gl-inet.com/original/3X/f/f/ffd2a07e3d42ded611a20f7466f73e194af76f44.jpeg)

· Select Encryption and Cipher from dropdown

· Enter a wifi password in Key field.

· Click “Save”

 ![image](https://forum-static.gl-inet.com/original/3X/d/b/dbe4b8826a27f98410de101b700622a1659c4e8d.png)

· Click Save & Apply for 2.4Ghz wifi configuration.

Step 2.3 Create 5Ghz Wifi

Repeat the same step as Step 2.2 for 5Ghz Wifi creation - consider using a different 5G ssid name

Step 2.4 Reboot Router

· LuCI-\>System-\>Reboot

Now 2.4Ghz and 5Ghz wifi SSIDs are activated. Wireless devices connected to them are sharing the same Vlan 21 network. Specific Wifi configurations are present in both

· GL-BE6500 Admin Panel / WIRELESS, and

· LuCY-\>Network-\>Wireless

---

<div class="post-metadata">

**Author:** ![DarkJR](https://forum-assets.gl-inet.com/letter_avatar_proxy/v4/letter/d/b782af/32.png) [@DarkJR](https://forum.gl-inet.com/u/DarkJR)\
**Post date:** [August 12, 2026, 8:29pm UTC](https://forum.gl-inet.com/t/be6500-vlans-setup/69238/25 "2026-08-12T20:29:34Z")

</div>

Hello, forum. I got the router back. Time to start playing with it again.

---

<div class="post-metadata">

**Author:** ![DarkJR](https://forum-assets.gl-inet.com/letter_avatar_proxy/v4/letter/d/b782af/32.png) [@DarkJR](https://forum.gl-inet.com/u/DarkJR)\
**Post date:** [August 13, 2026, 12:25am UTC](https://forum.gl-inet.com/t/be6500-vlans-setup/69238/26 "2026-08-13T00:25:29Z")

</div>

To my surprise GL.Inet has not been able to get a decent firmware on this device.  
I am not here to complaint, but in all honesty this firmware feels rush to market.  
I keep getting this error due to a switch Zero that has nothing attach to it!!!

 ![error_switch](https://forum-static.gl-inet.com/original/3X/b/8/b88f44c5b5e6d7284d2b3b4928549a9984754fa9.png)

 ![switch0](https://forum-static.gl-inet.com/original/3X/b/9/b9e4f89e574766482f17650ae3f519240f16d633.png)

---

<div class="post-metadata">

**Author:** ![DarkJR](https://forum-assets.gl-inet.com/letter_avatar_proxy/v4/letter/d/b782af/32.png) [@DarkJR](https://forum.gl-inet.com/u/DarkJR)\
**Post date:** [August 13, 2026, 12:26am UTC](https://forum.gl-inet.com/t/be6500-vlans-setup/69238/27 "2026-08-13T00:26:15Z")

</div>

This is the default configuration.

---

<div class="post-metadata">

**Author:** ![bruce](https://forum-assets.gl-inet.com/user_avatar/forum.gl-inet.com/bruce/32/35649_2.png) [@bruce](https://forum.gl-inet.com/u/bruce)\
**Post date:** [August 14, 2026, 7:21am UTC](https://forum.gl-inet.com/t/be6500-vlans-setup/69238/28 "2026-08-14T07:21:10Z")

</div>

Hello,

The appearance of switch0 in LuCI is a misidentification by the interface. Please note that this represents the internal packet processing/switching engine within the SoC, rather than a discrete external switch controller.

As we are not responsible for the maintenance of LuCI, please disregard the switch0.

---

<div class="post-metadata">

**Author:** ![DarkJR](https://forum-assets.gl-inet.com/letter_avatar_proxy/v4/letter/d/b782af/32.png) [@DarkJR](https://forum.gl-inet.com/u/DarkJR)\
**Post date:** [September 30, 2026, 1:28am UTC](https://forum.gl-inet.com/t/be6500-vlans-setup/69238/29 "2026-09-30T01:28:40Z")

</div>

Hello, Bruce. I understand the mis-identification part, but at least that should be explained in the router documentation. Also, the ports being mislabel 1=4 and 4=1 not ideal.  
I see the router has been upgraded to version 4.9.0 to me is quite interesting you guys are not using DSA for advance configurations.

---

<div class="post-metadata">

**Author:** ![DarkJR](https://forum-assets.gl-inet.com/letter_avatar_proxy/v4/letter/d/b782af/32.png) [@DarkJR](https://forum.gl-inet.com/u/DarkJR)\
**Post date:** [September 30, 2026, 1:50am UTC](https://forum.gl-inet.com/t/be6500-vlans-setup/69238/30 "2026-09-30T01:50:14Z")

</div>

Coming back to this topic.  
There is something that does not adds up. Once the **device** has been created, and has been connected to the proper interface, provided the firewall and static ip are configure properly. In my unit firmware version 4.9.0 the SW-config is not doing what I needed to do.  
To provide IP’s on a single Ethernet port for that VLan.

 ![sw-config](https://forum-static.gl-inet.com/original/3X/e/7/e7c6215be5632ff1663df039de32ed3803d9b884.png)

---

<div class="post-metadata">

**Author:** ![AI\_bot](https://forum-assets.gl-inet.com/letter_avatar_proxy/v4/letter/a/ecccb3/32.png) [@AI\_bot](https://forum.gl-inet.com/u/AI_bot)\
**Post date:** [September 30, 2026, 1:50am UTC](https://forum.gl-inet.com/t/be6500-vlans-setup/69238/31 "2026-09-30T01:50:41Z")

</div>

For a normal client connected directly to one dedicated Ethernet port, configure that port as a VLAN 21 **access port** , not a tagged trunk:

1. On Switch 1, keep the CPU port tagged for VLAN 21.
2. Set the selected physical LAN port **untagged** for VLAN 21 and **off** for VLAN 1. A port must not be untagged in both VLANs.
3. Keep the interface attached to `eth1.21` (or its bridge), with DHCP enabled.
4. Double-check the reversed LuCI port mapping: the physical port number may not match the displayed LAN number.

After applying, connect an ordinary untagged client and renew its lease. If it receives no address, temporarily assign it `192.168.21.2/24` and ping `192.168.21.1`. A successful ping would show that switching/VLAN membership works and narrow the problem to DHCP or firewall configuration; a failed ping would point back to the switch port membership or port mapping.

> **This reply was generated by AI. Please verify its accuracy.**
> 
> GL.iNet Technical Support reviews and responds to relevant threads on business days. Please allow time for a staff response.

[Previous page](https://forum.gl-inet.com/t/be6500-vlans-setup/69238.md?page=1)
