cristiancs
New Around Here
I'm, trying to setup 2 guest networks with different VLAN on the RT-ACRH17
I created the guest networks on the web ui and i have been fiddling with many VLAN setups that i found on the internet but when connecting to the guest wifi i get no IP from the DHCP
Script:
brctl show
Interesting when i run
ip -s -s -d link show dev eth1.20
i get only TX traffic
I tested the VLAN config with a VM on Proxmox and the DHCP is capable of assigning IPs to the VM so i think the problem is not there.
Some things that i have seen different to the tutorials:
The all seem to use eth0, not eth1 for creating the VLAN's but when i do "ip link show" , the mac address of eth1 corresponds with the one i see on the my main router (Edgerouter) DHCP table
Also, all tutorials seem to use wl0.x but when i run "brctl show" there is no wl0.x so i assumed they where ath001 ath101 for guest network 1 (2.4 Ghz and 5 Ghz) and ath002 ath102 for guest network 2
I created the guest networks on the web ui and i have been fiddling with many VLAN setups that i found on the internet but when connecting to the guest wifi i get no IP from the DHCP
Script:
Code:
# remove interfaces we're gonna move to other bridges
brctl delif br0 ath001 # wl10.1 2.4GHZ GUEST 1
brctl delif br0 ath002 # wl10.2 2.4GHZ GUEST 2
brctl delif br0 ath101 # wl10.1 5GHZ GUEST 1
brctl delif br0 ath102 # wl10.2 5HZ GUEST 2
# add vlans
# interestingly, depending on the time passed since system boot,
# vlan interfaces will be named eth1.1 or vlan1, I guess some udev rules got loaded.
# so we use ip link instead of vconfig to specify a name explicitly.
ip link add link eth1 name eth1.20 type vlan id 20
ip link add link eth1 name eth1.25 type vlan id 25
ip link set eth1.20 up
ip link set eth1.25 up
brctl stp br0 on
# set up br1, guest LAN
brctl addbr br1
brctl stp br1 on
brctl addif br1 eth1.20
brctl addif br1 ath001
brctl addif br1 ath101
ip link set br1 up
# set up br2, another guest LAN for IoT devices
brctl addbr br2
brctl stp br2 on
brctl addif br2 eth1.25
brctl addif br2 ath002
brctl addif br2 ath102
ip link set br2 up
# setting nvram values must be correct. if NOT correct, will reject wireless client request.
nvram set br0_ifname="br0"
nvram set lan_ifname="br0"
nvram set lan_ifnames="eth1 ath0 ath1"
nvram set br0_ifnames="eth1 ath0 ath1"
nvram set lan1_ifnames="eth1.20 ath001 ath101"
nvram set lan1_ifname="br1"
nvram set br1_ifname="br1"
nvram set br1_ifnames="eth1.20 ath001 ath101"
nvram set lan2_ifnames="eth1.25 ath002 ath102"
nvram set lan2_ifname="br2"
nvram set br2_ifname="br2"
nvram set br2_ifnames="eth1.25 ath002 ath102"
brctl show
Code:
bridge name bridge id STP enabled interfaces
br0 8000.[REDACTED] yes eth1
ath0
ath1
br1 8000.[REDACTED] yes eth1.20
ath001
ath101
br2 8000.[REDACTED] yes eth1.25
ath002
ath102
Interesting when i run
ip -s -s -d link show dev eth1.20
i get only TX traffic
Code:
17: eth1.20@eth1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue master br1 state UP
link/ether [REDACTED] brd ff:ff:ff:ff:ff:ff
vlan id 20 <REORDER_HDR>
RX: bytes packets errors dropped overrun mcast
0 0 0 0 0 0
RX errors: length crc frame fifo missed
0 0 0 0 0
TX: bytes packets errors dropped carrier collsns
20651 309 0 0 0 0
TX errors: aborted fifo window heartbeat
0 0 0 0
I tested the VLAN config with a VM on Proxmox and the DHCP is capable of assigning IPs to the VM so i think the problem is not there.
Some things that i have seen different to the tutorials:
The all seem to use eth0, not eth1 for creating the VLAN's but when i do "ip link show" , the mac address of eth1 corresponds with the one i see on the my main router (Edgerouter) DHCP table
Also, all tutorials seem to use wl0.x but when i run "brctl show" there is no wl0.x so i assumed they where ath001 ath101 for guest network 1 (2.4 Ghz and 5 Ghz) and ath002 ath102 for guest network 2