Main router : RT-AC3200 with FreshTomato 2021.7
192.168.10.1/24 : for main network (VLAN VID : 1) with DHCP server
192.168.20.1/24 : for guest network (VLAN VID : 3) with DHCP server
----
AP2 = RT-N18U (FreshTomato 2021.8)
IoT can connect both main wifi and guest wifi and both can have internet access.
No problem at all.
----
AP1 = RT-AC68U (AsusWRT-Merlin 386.4)
Set as AP with IP = 192.168.10.9
WAN Port = Trunk port to main router (RT-AC3200)
LAN 1 = member of VLAN3. Shall got IP address in range of 192.168.20.XXX/24. My PC never got IP address from main router (RT-AC3200)
LAN 2, 3, 4 = member of VLAN1. Shall got IP address in range of 192.168.10.XXX/24. No problem at all.
wl0 = No problem. my cellphone can have IP and can have internet access.
wl0.1 = Cellphone Never got IP address from main router (RT-AC3200)
Since I'm extremely new to AsusWRT and AsusWRT-Merlin, I paste this code into SSH
What's wrong with the code? I have no problem if this RT-AC68U is installed with FreshTomato.
But I do not know how to do it in AsusWRT-Merlin
192.168.10.1/24 : for main network (VLAN VID : 1) with DHCP server
192.168.20.1/24 : for guest network (VLAN VID : 3) with DHCP server
----
AP2 = RT-N18U (FreshTomato 2021.8)
IoT can connect both main wifi and guest wifi and both can have internet access.
No problem at all.
----
AP1 = RT-AC68U (AsusWRT-Merlin 386.4)
Set as AP with IP = 192.168.10.9
WAN Port = Trunk port to main router (RT-AC3200)
LAN 1 = member of VLAN3. Shall got IP address in range of 192.168.20.XXX/24. My PC never got IP address from main router (RT-AC3200)
LAN 2, 3, 4 = member of VLAN1. Shall got IP address in range of 192.168.10.XXX/24. No problem at all.
wl0 = No problem. my cellphone can have IP and can have internet access.
wl0.1 = Cellphone Never got IP address from main router (RT-AC3200)
Since I'm extremely new to AsusWRT and AsusWRT-Merlin, I paste this code into SSH
Code:
# remove LAN1 from VLAN1
robocfg vlan 1 ports "0 2 3 4 5t"
# Dedicate LAN1 for VLAN3, while WAN (port 0) is a trunk port
robocfg vlan 3 ports "0t 1 5t"
vconfig add eth0 3
ifconfig vlan3 up
brctl delif br0 wl0.1
brctl addbr br1
brctl addif br1 vlan3
brctl addif br1 wl0.1
ifconfig br1 192.168.20.9 netmask 255.255.255.0 up
ifconfig br1 up
nvram set lan_ifnames="vlan1 eth1 eth2"
nvram set lan_ifname="br0"
nvram set lan1_ifnames="vlan3 wl0.1"
nvram set lan1_ifname="br1"
nvram commit
killall eapd
eapd
What's wrong with the code? I have no problem if this RT-AC68U is installed with FreshTomato.
But I do not know how to do it in AsusWRT-Merlin