I have a CRS switch which I have configured with one trunk port and several
access ports using 2 vlans.

I followed the mikrotik config example for port based vlan and it worked
great but didn't enable management to the router, I had to do much playing
to get that working and now I think possibly I've got that wrong even
though it's working and it may be causing my lockup problems.

Would anyone have a moment to look at the config below and tell me if it
looks wrong ?

/interface ethernet
set [ find default-name=sfp-sfpplus1 ] rx-flow-control=auto
tx-flow-control=\
    auto
set [ find default-name=sfpplus2 ] master-port=sfp-sfpplus1
rx-flow-control=\
    auto tx-flow-control=auto
/interface vlan
add interface=sfp-sfpplus1 name=vlan202 vlan-id=202
/interface ethernet
set [ find default-name=ether1 ] master-port=sfp-sfpplus1 rx-flow-control=\
    auto tx-flow-control=auto
set [ find default-name=ether2 ] master-port=sfp-sfpplus1 rx-flow-control=\
    auto tx-flow-control=auto
set [ find default-name=ether3 ] master-port=sfp-sfpplus1 rx-flow-control=\
    auto tx-flow-control=auto
set [ find default-name=ether4 ] master-port=sfp-sfpplus1 rx-flow-control=\
    auto tx-flow-control=auto
set [ find default-name=ether5 ] master-port=sfp-sfpplus1 rx-flow-control=\
    auto tx-flow-control=auto
set [ find default-name=ether6 ] master-port=sfp-sfpplus1 rx-flow-control=\
    auto tx-flow-control=auto
set [ find default-name=ether7 ] master-port=sfp-sfpplus1 rx-flow-control=\
    auto tx-flow-control=auto
set [ find default-name=ether8 ] master-port=sfp-sfpplus1 rx-flow-control=\
    auto tx-flow-control=auto
/interface ethernet switch
set
drop-if-invalid-or-src-port-not-member-of-vlan-on-ports="sfp-sfpplus1,ethe\

r1,ether2,ether3,switch1-cpu,ether4,ether5,ether6,ether7,ether8,sfpplus2"
/interface ethernet switch egress-vlan-tag
add tagged-ports=switch1-cpu,sfp-sfpplus1 vlan-id=202
add tagged-ports=sfp-sfpplus1 vlan-id=203
/interface ethernet switch ingress-vlan-translation
add customer-vid=0 new-customer-vid=202 ports=ether1
add customer-vid=0 new-customer-vid=202 ports=ether2
add customer-vid=0 new-customer-vid=202 ports=ether3
add customer-vid=0 new-customer-vid=202 ports=ether4
add customer-vid=0 new-customer-vid=202 ports=ether5
add customer-vid=0 new-customer-vid=202 ports=ether6
add customer-vid=0 new-customer-vid=203 ports=ether7
add customer-vid=0 new-customer-vid=203 ports=ether8
add customer-vid=0 new-customer-vid=202 ports=sfpplus2
/interface ethernet switch vlan
add ports=ether7,ether8,sfp-sfpplus1 vlan-id=203
add
ports="switch1-cpu,ether1,ether2,ether3,ether4,ether5,ether6,sfpplus2,sfp-\
    sfpplus1" vlan-id=202
/ip address
add address=10.20.1.10/24 interface=vlan202 network=10.20.1.0
/ip dns
set servers=8.8.8.8,8.8.4.4
/ip route
add distance=1 gateway=10.20.1.1
_______________________________________________
Mikrotik-users mailing list
[email protected]
http://lists.wispa.org/mailman/listinfo/mikrotik-users

Reply via email to