Hello, I am new user whit the mikrotik switches. Its a a nice device, but I have some troubles to configure the managment vlan. I hope someone can me give some input.
I have a verry simple szenario:
Hardware: 8 Port CSR210 Switch:
Port 1 is mi uplink port to a firewall. The port on the firewall is tagged whit vlan 34 and vlan 35
I want to make port 2 to 6 untagged VLAN34
I want to make port 7 and 8 unttaged VLAN35
I need to change the management IP from default 192.168.88.1/24 to 192.168.34.254/24
The management ip must be reacable from the port 2 to 6 (untagged VLAN34) and from the firewall
This is are my steps: the vlans are working. the only problem ist the management IP and VLAN ( Step 4 and 5)
/interface ethernet
set ether2 master-port=ether1
set ether3 master-port=ether1
set ether4 master-port=ether1
set ether5 master-port=ether1
set ether6 master-port=ether1
set ether7 master-port=ether1
set ether8 master-port=ether1
This is wrong:
add ports=ether6 customer-vid=0 new-customer-vid=35 sa-learning=yes
It should be 34 not 35.
On this you need to add switch1-cpu:
/interface ethernet switch vlan
add ports=switch1-cpu,ether1,ether2,ether3,ether4,ether5,ether6 vlan-id=34 learn=yes
Add a VLAN interface:
/interface vlan
add interface=ether1 name=vlan34 vlan-id=34
and put an IP address on it:
/ip address
add address=192.168.34.254/24 interface=vlan34
You probably want to set vlan-mode=secure as well on “/interface ethernet switch vlan” once you’re all setup, tested and working (use Safe mode just in case you cut yourself off).
Hello thanks for the fast reply. But no chance to whit this config i have the same problem. The switch is not accessible on the untagges vlan 34 and not accessible from the firewall.
This was exact the solution. Thank you verry much. No it works
/interface ethernet
set ether2 master-port=ether1
set ether3 master-port=ether1
set ether4 master-port=ether1
set ether5 master-port=ether1
set ether6 master-port=ether1
set ether7 master-port=ether1
set ether8 master-port=ether1