Hey MikroTik Gurus! I am wondering if you could help me finish setting up my CRS210-8G-2S+ switch.
I followed the MikroTik Wiki and got the basic VLANs set up and running (https://help.mikrotik.com/docs/pages/viewpage.action?pageId=103841836). Everything is working for the clients as expected.
I have eth1 as uplink to the router, and eth3-eth6 + eth8 as untagged with two different VLANs. Config below.
The uplink from the router is coming as untagged + tagged VLANs 5, 10 and 20. I am only using VLANs 10 and 20 for access ports.
Th thing which I do not know how to set up is the DHCP client on the bridge that will have the IP address assigned via VLAN 5. The way I have set it up now, the switch gets an IP assigned from the untagged VLAN.
CRS210 is, as far as I know, old switching chip and the VLAN assignments are done via the Switch menu, not the Bridge menu as per http://forum.mikrotik.com/t/using-routeros-to-vlan-your-network/126489/1 And even in that post, the IP is assigned manually and not via DHCP.
Is it possible to have the switch get IP address from the VLAN 5 subnet via DHCP?
Thanks!
/interface bridge
add admin-mac=E4:8D:8C:A8:EE:1C auto-mac=no name=bridge
/interface wireless security-profiles
set [ find default=yes ] supplicant-identity=MikroTik
/port
set 0 name=serial0
/interface bridge port
add bridge=bridge interface=ether1
add bridge=bridge interface=ether2
add bridge=bridge interface=ether3
add bridge=bridge interface=ether4
add bridge=bridge interface=ether5
add bridge=bridge interface=ether6
add bridge=bridge interface=ether7
add bridge=bridge interface=ether8
add bridge=bridge interface=sfp-sfpplus1
add bridge=bridge interface=sfpplus2
/interface ethernet switch egress-vlan-tag
add tagged-ports=ether1,ether4,ether5,ether6 vlan-id=10
add tagged-ports=ether1,ether8 vlan-id=20
/interface ethernet switch ingress-vlan-translation
add customer-vid=0 new-customer-vid=10 ports=ether3,ether4,ether5,ether6
add customer-vid=0 new-customer-vid=20 ports=ether8
/interface ethernet switch vlan
add ports=ether1,ether3,ether4,ether5,ether6 vlan-id=10
add ports=ether1,ether8 vlan-id=20
add ports=ether1 vlan-id=5
/ip dhcp-client
add interface=bridge