E4200 - VLAN Switch Robo

Post new topic   Reply to topic    DD-WRT Forum Index -> Broadcom SoC based Hardware
Goto page Previous  1, 2, 3  Next
Author Message
maxiscool
DD-WRT Novice


Joined: 14 Feb 2012
Posts: 26

PostPosted: Sat Jan 13, 2024 2:24    Post subject: Reply with quote
ho1Aetoo wrote:
the CPU port must be ticked if you want to route VLAN10 into the router (if you want to use VLAN10 internally in the router)

However, if you only want to forward VLAN10 to another port, the CPU port does not necessarily have to be ticked

If you route VLAN10 into the router, you must remember that a VLAN10 interface is created which is bridged with VLAN1 via the standard setting.
So if you route VLAN10 into the router, you should unbridge VLAN10 - as you certainly don't want to have a bridge between the two VLANs.

Difficult to explain, maybe I'll create a diagram tomorrow


Perhaps let me show you what I intent to setup, feel free to let me know what is the best setup.

Initially my ideal is to mix the untag / tag like show in "red" word but seeing the comment here it is best not to mix, so I will add the 50 on the trunk.

Let me know how shall I setup the switch config / networking.



Screenshot 2024-01-13 101559.png
 Description:
 Filesize:  34.75 KB
 Viewed:  910 Time(s)

Screenshot 2024-01-13 101559.png


Sponsor
ho1Aetoo
DD-WRT Guru


Joined: 19 Feb 2019
Posts: 3006
Location: Germany

PostPosted: Sat Jan 13, 2024 9:27    Post subject: Reply with quote
That doesn't answer my question.

Which VLAN is responsible for what?
Which VLANs are used in the E4200 itself e.g. for wifi?


and I also don't know if the ports are swapped

GUI Port1 = Physical Port1 ?

But according to the drawing you want to configure the switch like this (see screenshot)

But you know that this is only half of the settings?
Numerous other settings need to be made in the "networking" and "Basic Setup" tabs

and before you ask what these settings are, they are shown in the VLAN thread. Very Happy



7869158592.png
 Description:
 Filesize:  41.95 KB
 Viewed:  866 Time(s)

7869158592.png



_________________
Quickstart guides:
use Pi-Hole as simple DNS-Server with DD-WRT
VLAN configuration via GUI - 1 CPU port
VLAN configuration via GUI - 2 CPU ports (R7800, EA8500 etc)

Routers
Marvell OCTEON TX2 - QHora-322 - OpenWrt 23.05.3 - Gateway
Qualcomm IPQ8065 - R7800 - DD-WRT - WAP


Last edited by ho1Aetoo on Sat Jan 13, 2024 15:44; edited 1 time in total
maxiscool
DD-WRT Novice


Joined: 14 Feb 2012
Posts: 26

PostPosted: Sat Jan 13, 2024 15:07    Post subject: Reply with quote
ho1Aetoo wrote:
That doesn't answer my question.

Which VLAN is responsible for what?
Which VLANs are used in the Archer itself e.g. for wifi?


and I also don't know if the ports are swapped

GUI Port1 = Physical Port1 ?

But according to the drawing you want to configure the switch like this (see screenshot)

But you know that this is only half of the settings?
Numerous other settings need to be made in the "networking" and "Basic Setup" tabs

and before you ask what these settings are, they are shown in the VLAN thread. Very Happy


Yeah I know where is this settings Very Happy

Update: Seems I've managed to get it work partially on VLAN 10 & 50. I remove the VLAN 10 from CPU.

Oh, for WiFi, this is where I connect an AP to Port 1. The Port 1 is the physical port 4.



Screenshot 2024-01-13 234517.png
 Description:
 Filesize:  31 KB
 Viewed:  826 Time(s)

Screenshot 2024-01-13 234517.png




Last edited by maxiscool on Sat Jan 13, 2024 15:47; edited 1 time in total
ho1Aetoo
DD-WRT Guru


Joined: 19 Feb 2019
Posts: 3006
Location: Germany

PostPosted: Sat Jan 13, 2024 15:45    Post subject: Reply with quote
I have just seen that I have a mistake in the text

-Archer +E4200

_________________
Quickstart guides:
use Pi-Hole as simple DNS-Server with DD-WRT
VLAN configuration via GUI - 1 CPU port
VLAN configuration via GUI - 2 CPU ports (R7800, EA8500 etc)

Routers
Marvell OCTEON TX2 - QHora-322 - OpenWrt 23.05.3 - Gateway
Qualcomm IPQ8065 - R7800 - DD-WRT - WAP
maxiscool
DD-WRT Novice


Joined: 14 Feb 2012
Posts: 26

PostPosted: Sat Jan 13, 2024 15:53    Post subject: Reply with quote
Question: My AP now actually have untagged 50, and tagged 10. Possible to configure in UI to change this settings? Or command to make this?

Otherwise, I need to figure out on how to tinker on my AP.
ho1Aetoo
DD-WRT Guru


Joined: 19 Feb 2019
Posts: 3006
Location: Germany

PostPosted: Sat Jan 13, 2024 16:09    Post subject: Reply with quote
maxiscool wrote:
Update: Seems I've managed to get it work partially on VLAN 10 & 50. I remove the VLAN 10 from CPU.


Then the E4200 has no access to the VLAN and VLAN10 is only forwarded from the WAN port to port 1.

I have already explained above that such a configuration is perfectly possible.

But if you don't answer my questions and don't explain to me which VLAN is used where and for what - then you'll just have to figure it out for yourself.

maxiscool wrote:
My AP now actually have untagged 50, and tagged 10. Possible to configure in UI to change this settings? Or command to make this?

Otherwise, I need to figure out on how to tinker on my AP.


No, this is not supported via the GUI.
We have already written this several times, either tagged or untagged but not both at the same time.

You can remove the tagging on Port1, then the switch may do something automatically that is IEEE 802.1Q compliant. (either tag all VLANs or tag 1 VLAN and untag 1)

With a lot of luck you will then get the desired configuration - or not.

and that was the last thing I wrote about it
We have instructions and they are there so that I don't have to constantly spoon-feed lazy users.

_________________
Quickstart guides:
use Pi-Hole as simple DNS-Server with DD-WRT
VLAN configuration via GUI - 1 CPU port
VLAN configuration via GUI - 2 CPU ports (R7800, EA8500 etc)

Routers
Marvell OCTEON TX2 - QHora-322 - OpenWrt 23.05.3 - Gateway
Qualcomm IPQ8065 - R7800 - DD-WRT - WAP
maxiscool
DD-WRT Novice


Joined: 14 Feb 2012
Posts: 26

PostPosted: Sat Jan 13, 2024 16:30    Post subject: Reply with quote
Cool, thx for the guide.

Since the configuration already half success, will find a way to change my settings on the AP.
maxiscool
DD-WRT Novice


Joined: 14 Feb 2012
Posts: 26

PostPosted: Wed Jan 17, 2024 3:37    Post subject: Reply with quote
I've running this for up to 2 days it seems no issue for me now.
However I am runnning into problem that based on my limited understanding of networking, my Ubiquiti AP need a untagged VLAN for management vlan it to communicate with the controller.


So whenver I put a tagged on it, the AP would not run well.
I know this being mentioned many times that there is not a great idea, but it seems I do not comprehend enough to make properly work.

Any pointers that can lead me to try out?
I will need untagged 50 for local traffic and 10 for the guest wifi on the AP.

Thanks.



networking.png
 Description:
 Filesize:  66.55 KB
 Viewed:  720 Time(s)

networking.png



VLAN Config.png
 Description:
 Filesize:  54.29 KB
 Viewed:  722 Time(s)

VLAN Config.png


ho1Aetoo
DD-WRT Guru


Joined: 19 Feb 2019
Posts: 3006
Location: Germany

PostPosted: Wed Jan 17, 2024 9:04    Post subject: Reply with quote
Then you have to configure it via CLI - but this is not really persistent and can be overwritten if you press "apply" somewhere in the GUI.

Post the output of "swconfig dev switch0 show"

It may also be possible to flash the AP with dd-wrt - depending on the model.

_________________
Quickstart guides:
use Pi-Hole as simple DNS-Server with DD-WRT
VLAN configuration via GUI - 1 CPU port
VLAN configuration via GUI - 2 CPU ports (R7800, EA8500 etc)

Routers
Marvell OCTEON TX2 - QHora-322 - OpenWrt 23.05.3 - Gateway
Qualcomm IPQ8065 - R7800 - DD-WRT - WAP
maxiscool
DD-WRT Novice


Joined: 14 Feb 2012
Posts: 26

PostPosted: Wed Jan 17, 2024 10:07    Post subject: Reply with quote
OK, could you help or give some basic understanding how it works.

FYI, below is the out of the command as base on your guide in your signature.

Also FYI, when I was on older firmware and running with the the switch-robo.ko, it works until recently break.

Code:
rmmod switch-robo
insmod /jffs/switch-robo.ko
sleep 10
vconfig add eth0 500
vconfig add eth0 600
vconfig add eth0 10
ifconfig vlan500 up
ifconfig vlan600 up
ifconfig vlan10 up
brctl addif br0 vlan500
sleep 5
echo "0 1 2 4t 8t" > /proc/switch/eth0/vlan/500/ports
sleep 5
echo "4t 8t" > /proc/switch/eth0/vlan/600/ports
sleep 5
echo "3t 4t 8t" > /proc/switch/eth0/vlan/10/ports
sleep 10



Output.png
 Description:
 Filesize:  4.01 KB
 Viewed:  681 Time(s)

Output.png


ho1Aetoo
DD-WRT Guru


Joined: 19 Feb 2019
Posts: 3006
Location: Germany

PostPosted: Wed Jan 17, 2024 10:22    Post subject: Reply with quote
edit I have corrected a mistake


I'm not sure I suspect port 3 is WebIF port 1

Code:
swconfig dev switch0 set reset
swconfig dev switch0 set enable_vlan 1
swconfig dev switch0 vlan 10 set ports "3t 4t 8t"
swconfig dev switch0 vlan 50 set ports "0 1 2 3 4t 8t"
swconfig dev switch0 set apply
vconfig set_name_type VLAN_PLUS_VID_NO_PAD
vconfig add eth0 10
vconfig add eth0 50
brctl addif br1 vlan10
brctl addif br0 vlan50
ifconfig vlan10 up
ifconfig vlan50 up


if it does not work then try port 4

Code:
swconfig dev switch0 set reset
swconfig dev switch0 set enable_vlan 1
swconfig dev switch0 vlan 10 set ports "3t 4t 8t"
swconfig dev switch0 vlan 50 set ports "0 1 2 3t 4 8t"
swconfig dev switch0 set apply
vconfig set_name_type VLAN_PLUS_VID_NO_PAD
vconfig add eth0 10
vconfig add eth0 50
brctl addif br1 vlan10
brctl addif br0 vlan50
ifconfig vlan10 up
ifconfig vlan50 up


save it startup or firewall script, deactivate the "switch config tab"

_________________
Quickstart guides:
use Pi-Hole as simple DNS-Server with DD-WRT
VLAN configuration via GUI - 1 CPU port
VLAN configuration via GUI - 2 CPU ports (R7800, EA8500 etc)

Routers
Marvell OCTEON TX2 - QHora-322 - OpenWrt 23.05.3 - Gateway
Qualcomm IPQ8065 - R7800 - DD-WRT - WAP
maxiscool
DD-WRT Novice


Joined: 14 Feb 2012
Posts: 26

PostPosted: Wed Jan 17, 2024 11:12    Post subject: Reply with quote
You are awesome, this worked perfectly from the right away. I’ve been trying to figure this out for quite some time since it broke.

Code:
swconfig dev switch0 set reset
swconfig dev switch0 set enable_vlan 1
swconfig dev switch0 vlan 10 set ports "3t 4t 8t"
swconfig dev switch0 vlan 50 set ports "0 1 2 3 4t 8t"
swconfig dev switch0 set apply
vconfig set_name_type VLAN_PLUS_VID_NO_PAD
vconfig add eth0 10
vconfig add eth0 50
brctl addif br1 vlan10
brctl addif br0 vlan50
ifconfig vlan10 up
ifconfig vlan50 up
ho1Aetoo
DD-WRT Guru


Joined: 19 Feb 2019
Posts: 3006
Location: Germany

PostPosted: Wed Jan 17, 2024 11:20    Post subject: Reply with quote
I only learned this through the forum and from egc - at a time when the tab didn't work yet.

At some point I realized how the whole VLAN stuff works.

Unfortunately the CLI settings are not persistent...

They may be overwritten if you click on "apply" somewhere in the GUI.(so don't change anything in the "swconfig tab" and "networking" can also be problematic - but should actually work as far as I can see)

_________________
Quickstart guides:
use Pi-Hole as simple DNS-Server with DD-WRT
VLAN configuration via GUI - 1 CPU port
VLAN configuration via GUI - 2 CPU ports (R7800, EA8500 etc)

Routers
Marvell OCTEON TX2 - QHora-322 - OpenWrt 23.05.3 - Gateway
Qualcomm IPQ8065 - R7800 - DD-WRT - WAP
maxiscool
DD-WRT Novice


Joined: 14 Feb 2012
Posts: 26

PostPosted: Wed Jan 17, 2024 11:42    Post subject: Reply with quote
Yeah I do you read your guide and proceed with try and error before posted more problem of what I face, I guess that you deserve "Guru" tag with the detail explanation Smile

What you mean not persistent means, if I ever apply in the settings likely I need to reboot the device to get it back up?

Yeah unlikely I will change anything now until I see something doesn't work right again.
ho1Aetoo
DD-WRT Guru


Joined: 19 Feb 2019
Posts: 3006
Location: Germany

PostPosted: Wed Jan 17, 2024 11:55    Post subject: Reply with quote
If the "Switch Config tab" is activated - the switch configuration is updated every time you press "apply" anywhere - even in the WLAN settings.

If the "Switch Config tab" is deactivated, this was (previously) not the case.

You just have to try it out, press apply everywhere (WLAN, Networking) and then check whether the port configuration remains unchanged "swconfig dev switch0 show".

In the Networking tab there is the problem that the bridge assignment is updated.
But this should not be a problem for you because you have the assignment redudant "brctl addif" and in the GUI "Assign to Bridge"

Without the "Assign to Bridge" you would lose the bridge assignments.

No, you do not have to restart the router, you simply add the commands to "Commands" and then click on "Run Commands"
You can also click on "Edit" which automatically inserts commands in "Commands".

the CLI stuff is unfortunately not an optimal solution
but if it works ....

_________________
Quickstart guides:
use Pi-Hole as simple DNS-Server with DD-WRT
VLAN configuration via GUI - 1 CPU port
VLAN configuration via GUI - 2 CPU ports (R7800, EA8500 etc)

Routers
Marvell OCTEON TX2 - QHora-322 - OpenWrt 23.05.3 - Gateway
Qualcomm IPQ8065 - R7800 - DD-WRT - WAP
Goto page Previous  1, 2, 3  Next Display posts from previous:    Page 2 of 3
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