Is extending guestnet to 2nd router possible? R7800/RT-AC68

Post new topic   Reply to topic    DD-WRT Forum Index -> Broadcom SoC based Hardware
Author Message
Ramon00
DD-WRT Novice


Joined: 14 Jun 2020
Posts: 4

PostPosted: Wed Jun 17, 2020 18:12    Post subject: Is extending guestnet to 2nd router possible? R7800/RT-AC68 Reply with quote
Dear all,

I have a netgear r7800 running openwrt configured to have a guestnet on VLAN2 on 192.168.20.x. I have one port of that router configured as trunc.
I have a 2nd router ASUS RT-AC68U, where i also want to be able to have the guestnet on vlan2. I added a 2nd SSID on each radio and bridged it to VLAN2. The LAN port to the other router is also configured as trunc.

The problem however is that I cannot connect to that 2nd SSID. If i connect to the guestnet on the 1st router, and scan for devices I am able to see the 2nd router on the 192.168.20.x subnet . So packets do arrive at the other router.

So either i have something configured wrongly, or either the r7800 or AC68u is not capable of bridging the wifi to the vlan. The r7800 seems unlikely as i can connect and packets are routed.

I already had a look at: https://elatov.github.io/2014/11/dd-wrt-on-asus-rt-ac68u-router/
which was a great help


Quote:
root@DD-WRT:~# cat /proc/vlan* | grep VID
cat: can't open '/proc/vlan*': No such file or directory
root@DD-WRT:~# nvram show | grep vlan.ports
size: 37443 bytes (28093 left)
vlan2ports=0 5u
vlan3ports=1 5
vlan1ports=1 2 3 4 5*
root@DD-WRT:~# nvram show | grep port.vlan
size: 37443 bytes (28093 left)
port5vlans=1 2 3 16
port3vlans=1
port1vlans=1 3 16
port4vlans=1
port2vlans=1
port0vlans=2
root@DD-WRT:~#


part of r7800 "cat /etc/config/network"

Quote:
config switch_vlan
option device 'switch0'
option vlan '1'
option vid '1'
option ports '6t 4 3 1t'

config switch_vlan
option device 'switch0'
option vlan '2'
option ports '0t 5'
option vid '2'

config switch_vlan
option device 'switch0'
option vlan '3'
option vid '3'
option ports '6t 1t'


I did also try to add "t" to the correct vlan1ports and vlan3ports, but that didnt help.

Can anybody give me some pointers with these questions:
1) Is it possible to do what i want on this HW?
2) It is an issue that VIDs are not configured on the ac68u? And if so how do i configure?
3) Any other things I am missing?

Thank you for your replies!

Ramon
Sponsor
kernel-panic69
DD-WRT Guru


Joined: 08 May 2018
Posts: 14224
Location: Texas, USA

PostPosted: Wed Jun 17, 2020 18:54    Post subject: Reply with quote
Part of the problem is vlan2 is the default vlan for the WAN in DD-WRT and all variations of Tomato and AsusWRT on that router, I suspect. You may have to make some adjustments to your configurations.

https://wiki.dd-wrt.com/wiki/index.php/Switched_Ports

_________________
"Life is but a fleeting moment, a vapor that vanishes quickly; All is vanity"
Contribute To DD-WRT
Pogo - A minimal level of ability is expected and needed...
DD-WRT Releases 2023 (PolitePol)
DD-WRT Releases 2023 (RSS Everything)

----------------------
Linux User #377467 counter.li.org / linuxcounter.net
Ramon00
DD-WRT Novice


Joined: 14 Jun 2020
Posts: 4

PostPosted: Thu Jun 18, 2020 6:45    Post subject: Reply with quote
Hi kernel-panic69,

Thank you for your reply.
Unfortunately that "VLAN2" was a typo. I have VLAN1 as main network, VLAN2 as WAN, VLAN3 is the guestnet. VLAN2 is set on both routers, but on the 2nd router wan connection is disabled and the router is set to "router" instead of gateway.

I also set the hwnames:
Quote:
root@DD-WRT:~# nvram show | grep vlan.*hwname | sort
size: 37661 bytes (27875 left)
vlan1hwname=et0
vlan2hwname=et0
vlan3hwname=et0


Maybe its caused by the following: If i look at what devices are real and which are virtual I see distinct difference. On the rt68u its on the two wifi devices first instanecs (eth1 and eth2). On the r7800 eth0 and eth1 (the two CPU ports) and all wifi instances are mapped directly?

Looks like impossible to change that...

Thank you,

Ramon


Quote:
root@DD-WRT:~# ls -l /sys/class/net
total 0
lrwxrwxrwx 1 root root 0 Jun 18 08:38 br0 -> ../../devices/virtual/net/br0
lrwxrwxrwx 1 root root 0 Jun 18 08:38 br1 -> ../../devices/virtual/net/br1
lrwxrwxrwx 1 root root 0 Jan 1 1970 eth0 -> ../../devices/virtual/net/eth0
lrwxrwxrwx 1 root root 0 Jan 1 1970 eth1 -> ../../devices/pci0001:00/0001:00:00.0/0001:01:00.0/net/eth1
lrwxrwxrwx 1 root root 0 Jan 1 1970 eth2 -> ../../devices/pci0002:00/0002:00:00.0/0002:01:00.0/net/eth2
lrwxrwxrwx 1 root root 0 Jan 1 1970 lo -> ../../devices/virtual/net/lo
lrwxrwxrwx 1 root root 0 Jan 1 1970 teql0 -> ../../devices/virtual/net/teql0
lrwxrwxrwx 1 root root 0 Jan 1 1970 vlan1 -> ../../devices/virtual/net/vlan1
lrwxrwxrwx 1 root root 0 Jan 1 1970 vlan2 -> ../../devices/virtual/net/vlan2
lrwxrwxrwx 1 root root 0 Jan 1 1970 vlan3 -> ../../devices/virtual/net/vlan3
lrwxrwxrwx 1 root root 0 Jan 1 1970 wl0.1 -> ../../devices/virtual/net/wl0.1
lrwxrwxrwx 1 root root 0 Jan 1 1970 wl0.2 -> ../../devices/virtual/net/wl0.2
lrwxrwxrwx 1 root root 0 Jan 1 1970 wl1.1 -> ../../devices/virtual/net/wl1.1
lrwxrwxrwx 1 root root 0 Jan 1 1970 wl1.2 -> ../../devices/virtual/net/wl1.2


Quote:
root@OpenWrt:~# ls -l /sys/class/net
lrwxrwxrwx 1 root root 0 Jun 17 18:49 br-guest -> ../../devices/virtual/net/br-guest
lrwxrwxrwx 1 root root 0 Jun 17 18:49 br-lan -> ../../devices/virtual/net/br-lan
lrwxrwxrwx 1 root root 0 Jan 1 1970 eth0 -> ../../devices/platform/soc/37200000.ethernet/net/eth0
lrwxrwxrwx 1 root root 0 Jun 17 18:49 eth0.2 -> ../../devices/virtual/net/eth0.2
lrwxrwxrwx 1 root root 0 Jan 1 1970 eth1 -> ../../devices/platform/soc/37400000.ethernet/net/eth1
lrwxrwxrwx 1 root root 0 Jun 17 18:49 eth1.1 -> ../../devices/virtual/net/eth1.1
lrwxrwxrwx 1 root root 0 Jun 17 18:49 eth1.3 -> ../../devices/virtual/net/eth1.3
lrwxrwxrwx 1 root root 0 Jan 1 1970 lo -> ../../devices/virtual/net/lo
lrwxrwxrwx 1 root root 0 Jun 17 18:49 wlan0 -> ../../devices/platform/soc/1b500000.pci/pci0000:00/0000:00:00.0/0000:01:00.0/net/wlan0
lrwxrwxrwx 1 root root 0 Jun 17 19:38 wlan0-1 -> ../../devices/platform/soc/1b500000.pci/pci0000:00/0000:00:00.0/0000:01:00.0/net/wlan0-1
lrwxrwxrwx 1 root root 0 Jun 17 19:38 wlan0-2 -> ../../devices/platform/soc/1b500000.pci/pci0000:00/0000:00:00.0/0000:01:00.0/net/wlan0-2
lrwxrwxrwx 1 root root 0 Jun 17 18:49 wlan1 -> ../../devices/platform/soc/1b700000.pci/pci0001:00/0001:00:00.0/0001:01:00.0/net/wlan1
lrwxrwxrwx 1 root root 0 Jun 17 18:50 wlan1-1 -> ../../devices/platform/soc/1b700000.pci/pci0001:00/0001:00:00.0/0001:01:00.0/net/wlan1-1
lrwxrwxrwx 1 root root 0 Jun 17 18:50 wlan1-2 -> ../../devices/platform/soc/1b700000.pci/pci0001:00/0001:00:00.0/0001:01:00.0/net/wlan1-2
[/quote]
egc
DD-WRT Guru


Joined: 18 Mar 2014
Posts: 12889
Location: Netherlands

PostPosted: Thu Jun 18, 2020 9:44    Post subject: Reply with quote
For broadcom you still need the workarounds to connect to the VAP I think, I use no 4 Smile

Quote:

From approximately mid 2018 VAP's on Broadcom units are problematic, you cannot connect or do not get an IP address. There are workarounds:
1) When VAP is not working at boot; workaround startup command Administrationn/Commands, Save as Startup:
sleep 10; stopservice nas; stopservice wlconf; startservice wlconf; startservice nas;
2) Alternative way to get VAP working: https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=317181
3) An other user reports the following workaround (save as startup):
sleep 4; stopservice cron; stopservice wlconf; wlconf eth1 up; wlconf eth2 up; startservice cron;
https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=319412
4)This one is from @Redhawk (guaranteed to work Wink ):
sleep 20; stopservice nas; wlconf eth1 down; wlconf eth2 down; wlconf eth1 up; wlconf eth2 up; startservice nas


_________________
Routers:Netgear R7000, R6400v1, R6400v2, EA6900 (XvortexCFE), E2000, E1200v1, WRT54GS v1.
Install guide R6400v2, R6700v3,XR300:https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=316399
Install guide R7800/XR500: https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=320614
Forum Guide Lines (important read):https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=324087
Ramon00
DD-WRT Novice


Joined: 14 Jun 2020
Posts: 4

PostPosted: Thu Jun 18, 2020 16:36    Post subject: Reply with quote
Hi Egc,

Ah I did not know that one. I think I am going to try that one out.

In the meanwhile I sort of got it working. What I did was change the guestnet on VLAN3 to the primary WiFi so guestnet is on eth1 and eth2. I did do a reboot, so that may have been a coincidence that it is working now.

However, I also had a 2nd cable running between the two routers (to try out some things), but i had that port disabled on the R7800 (as you can see above). So once i got it working I removed the cable and then on VLAN 1 I could not reach the devices connected to the router, so plugged it back in. I guess the trunk is not working.

So hmmm... This is seriously complicated.

Any advice is welcome.

Thanks for all the help,

Ramon
Ramon00
DD-WRT Novice


Joined: 14 Jun 2020
Posts: 4

PostPosted: Thu Jun 18, 2020 17:10    Post subject: Reply with quote
Small update, i added the startup script and removed the cable again.
Apparantly the trunking now works, but connecting to the VLAN3 wifi on the ac68u is still a bit troublesome.
Also i have an app on my phone to find connected devices. This does not find everything now...

Thanks,

Ramon
mache
DD-WRT User


Joined: 11 Apr 2010
Posts: 311
Location: San Francisco Bay Area

PostPosted: Sun Jun 21, 2020 16:44    Post subject: Reply with quote
I implemented this (on a router using Broadcom chipset) for my home, my bother's home, and a local swim club.

See it in this thread. https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=263155&highlight=
Display posts from previous:    Page 1 of 1
Post new topic   Reply to topic    DD-WRT Forum Index -> Broadcom SoC based Hardware All times are GMT

Navigation

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum