Page 1 of 1
RB450 VLAN - access port not working
Posted: Fri Aug 19, 2022 12:03 pm
by Tesar
Hello there, I successfully running RB450 router with VLAN config. Ether4 port is a trunk port which is working fine (connected to CRS354). Now I wanted to use another port (ether3) on RB450 as access port to one of the VLANs. Unfortunately, i can't connect to the desired network through it.
/interface bridge
add name=br-WAN
add name=br-switch1
/interface bridge port
add bridge=br-WAN interface=ether1
add bridge=br-switch1 interface=ether2
add bridge=br-switch1 interface=ether3
add bridge=br-switch1 interface=ether4
add bridge=br-switch1 interface=ether5
/interface vlan
add interface=br-switch1 name=vlan-PUBLIC vlan-id=3
add interface=br-switch1 name=vlan-KS vlan-id=4
/interface ethernet switch
set switch1 switch-all-ports=no
/interface ethernet switch port
set ether2 vlan-mode=disabled
set ether3 default-vlan-id=3 vlan-header=always-strip vlan-mode=secure
set ether4 vlan-header=add-if-missing vlan-mode=secure
set ether5 vlan-mode=disabled
set switch1-cpu vlan-mode=secure
/interface ethernet switch vlan
add ports=ether3,ether4,switch1-cpu switch=switch1 vlan-id=3
add ports=ether4,switch1-cpu switch=switch1 vlan-id=4
Re: RB450 VLAN - access port not working
Posted: Fri Aug 19, 2022 1:00 pm
by erlinden
You should configure it as:
set switch1-cpu vlan-header=leave-as-is vlan-mode=secure
Re: RB450 VLAN - access port not working
Posted: Fri Aug 19, 2022 2:12 pm
by Tesar
I have vlan-header=leave-as-is on switch1-cpu. It's the default value so not showing in my config export.
Re: RB450 VLAN - access port not working
Posted: Fri Aug 19, 2022 2:19 pm
by mkx
Configuration seems fine to me.
Did you try to cold-boot device after changing configuration of VLANs? I seem to remember rare cases where configuration did not apply properly after change in ROS and (oddly enough) did not apply at warm boot (reboot). Cold boot (power off, disconnect power for a few minutes, power on) did help.
Re: RB450 VLAN - access port not working
Posted: Fri Aug 19, 2022 3:10 pm
by Tesar
Configuration seems fine to me.
Did you try to cold-boot device after changing configuration of VLANs? I seem to remember rare cases where configuration did not apply properly after change in ROS and (oddly enough) did not apply at warm boot (reboot). Cold boot (power off, disconnect power for a few minutes, power on) did help.
no luck
Re: RB450 VLAN - access port not working
Posted: Fri Aug 19, 2022 3:21 pm
by erlinden
What RouterOS version and firmware are you running?
Re: RB450 VLAN - access port not working
Posted: Fri Aug 19, 2022 3:28 pm
by Tesar
What RouterOS version and firmware are you running?
both 7.4.1
Re: RB450 VLAN - access port not working
Posted: Fri Aug 19, 2022 3:43 pm
by erlinden
What exactly do you mean by "I can't connect to the desired network through it."?
Is this the complete export?
Why is there a second bridge (though not related)?
Can you also share the config of the CRS354?
Re: RB450 VLAN - access port not working
Posted: Fri Aug 19, 2022 5:59 pm
by CZFan
Which model do you have, RB450G or RB450Gx4?
Two different chips and needs to be configured differently
Re: RB450 VLAN - access port not working
Posted: Tue Aug 23, 2022 8:47 am
by Tesar
What exactly do you mean by "I can't connect to the desired network through it."?
Is this the complete export?
Why is there a second bridge (though not related)?
Can you also share the config of the CRS354?
There are DHCP servers + couple of virtual servers on each VLAN. Can't get the IP or connect to servers with static config on access port client.
Second bridge is not related, it's WAN interface on ether1 (which excluded from the switch group - /interface ethernet switch set switch1 switch-all-ports=no).
CRS354 running SWOS so can't export. But it's running fine (uplink from RB450 ether4, access and trunk ports working as expected).
Re: RB450 VLAN - access port not working
Posted: Tue Aug 23, 2022 8:51 am
by Tesar
Which model do you have, RB450G or RB450Gx4?
Two different chips and needs to be configured differently
RB450G with Atheros8316. Can you provide some hint regarding "needs to be configured differently"? I have another router with Atheros 8327 which running just fine. But can't find anywhere the required configuration differences.
Re: RB450 VLAN - access port not working [SOLVED]
Posted: Mon Aug 29, 2022 3:25 pm
by Tesar
You should configure it as:
set switch1-cpu vlan-header=leave-as-is vlan-mode=secure
So instead of:
/interface ethernet switch port
set switch1-cpu vlan-header=leave-as-is vlan-mode=secure
I used:
/interface ethernet switch port
set switch1-cpu vlan-header=add-if-missing vlan-mode=secure
Both trunk and access port are working now as expected.