Mikrotik CR switch - management VLAN - doplněno
Napsal: 09 Nov 2016 10:27
udělal jsem místo printu exporty a doplnil obrázek
Zdarec,
řeším prvně VLANy na MK a funguje myslím vše, kromě management vlany. Jel jsem podle návodu zde na začátku
http://wiki.mikrotik.com/wiki/Manual:CR ... figuration
Princip je jednoduchý, mám jeden vstupní port (uplink CCR), do toho jde jen tagovaná komunikace (vlany 4, 46, 96, 290) z nadřazeného MK. Tagy pak zahazuju a ven na odchozí porty jde komunikace už netagovaná. Management chci mít na jedné z vlan, konkétně na té 290 přístupný uplinkem.
Vlan 290 jsem přiřadil portu uplink CCR. Vlaně dal IP 192.168.214.2/24 a na nadřazeném routeru je to stejné, vlan 290 k odchozímu portu a IP 192.168.214.5/24. Čekal bych ping, ale nejde to. Co je blbě? děkuji.
Nastavení mám takto:
/interface ethernet
set [ find default-name=ether1 ] name="ether1-uplink CCR"
set [ find default-name=sfp1 ] master-port="ether1-uplink CCR" name=sfp1-290
set [ find default-name=sfp2 ] master-port="ether1-uplink CCR" name=sfp2-46
set [ find default-name=sfp3 ] master-port="ether1-uplink CCR" name=sfp3-4,5
set [ find default-name=sfp4 ] master-port="ether1-uplink CCR"
set [ find default-name=sfp5 ] master-port="ether1-uplink CCR" name=sfp5-289-dolu
set [ find default-name=sfp6 ] master-port="ether1-uplink CCR" name=sfp6-96
set [ find default-name=sfp7 ] master-port="ether1-uplink CCR"
set [ find default-name=sfp8 ] master-port="ether1-uplink CCR"
set [ find default-name=sfp9 ] master-port="ether1-uplink CCR"
set [ find default-name=sfp10 ] master-port="ether1-uplink CCR"
set [ find default-name=sfpplus1 ] disabled=yes
/interface vlan
add interface="ether1-uplink CCR" l2mtu=1584 name=vlan290 vlan-id=290
/interface ethernet switch
set drop-if-invalid-or-src-port-not-member-of-vlan-on-ports="ether1-uplink CCR,sfp1-290,sfp2-46,sfp3-4,5,sfp6-96"
/interface ethernet switch egress-vlan-tag
add tagged-ports="ether1-uplink CCR" vlan-id=96
add tagged-ports="ether1-uplink CCR" vlan-id=46
add tagged-ports="ether1-uplink CCR" vlan-id=4
add tagged-ports="switch1-cpu,ether1-uplink CCR" vlan-id=290
add disabled=yes tagged-ports="ether1-uplink CCR" vlan-id=287
/interface ethernet switch ingress-vlan-translation
add customer-vid=0 new-customer-vid=96 ports=sfp6-96 sa-learning=yes
add customer-vid=0 new-customer-vid=46 ports=sfp2-46 sa-learning=yes
add customer-vid=0 new-customer-vid=290 ports=sfp1-290 sa-learning=yes
add customer-vid=0 new-customer-vid=4 ports=sfp3-4,5 sa-learning=yes
/interface ethernet switch vlan
add ports="sfp6-96,ether1-uplink CCR" vlan-id=96
add ports="sfp2-46,ether1-uplink CCR" vlan-id=46
add ports="switch1-cpu,sfp1-290,ether1-uplink CCR" vlan-id=290
add ports="sfp3-4,5,ether1-uplink CCR" vlan-id=4
Zdarec,
řeším prvně VLANy na MK a funguje myslím vše, kromě management vlany. Jel jsem podle návodu zde na začátku
http://wiki.mikrotik.com/wiki/Manual:CR ... figuration
Princip je jednoduchý, mám jeden vstupní port (uplink CCR), do toho jde jen tagovaná komunikace (vlany 4, 46, 96, 290) z nadřazeného MK. Tagy pak zahazuju a ven na odchozí porty jde komunikace už netagovaná. Management chci mít na jedné z vlan, konkétně na té 290 přístupný uplinkem.
Vlan 290 jsem přiřadil portu uplink CCR. Vlaně dal IP 192.168.214.2/24 a na nadřazeném routeru je to stejné, vlan 290 k odchozímu portu a IP 192.168.214.5/24. Čekal bych ping, ale nejde to. Co je blbě? děkuji.
Nastavení mám takto:
/interface ethernet
set [ find default-name=ether1 ] name="ether1-uplink CCR"
set [ find default-name=sfp1 ] master-port="ether1-uplink CCR" name=sfp1-290
set [ find default-name=sfp2 ] master-port="ether1-uplink CCR" name=sfp2-46
set [ find default-name=sfp3 ] master-port="ether1-uplink CCR" name=sfp3-4,5
set [ find default-name=sfp4 ] master-port="ether1-uplink CCR"
set [ find default-name=sfp5 ] master-port="ether1-uplink CCR" name=sfp5-289-dolu
set [ find default-name=sfp6 ] master-port="ether1-uplink CCR" name=sfp6-96
set [ find default-name=sfp7 ] master-port="ether1-uplink CCR"
set [ find default-name=sfp8 ] master-port="ether1-uplink CCR"
set [ find default-name=sfp9 ] master-port="ether1-uplink CCR"
set [ find default-name=sfp10 ] master-port="ether1-uplink CCR"
set [ find default-name=sfpplus1 ] disabled=yes
/interface vlan
add interface="ether1-uplink CCR" l2mtu=1584 name=vlan290 vlan-id=290
/interface ethernet switch
set drop-if-invalid-or-src-port-not-member-of-vlan-on-ports="ether1-uplink CCR,sfp1-290,sfp2-46,sfp3-4,5,sfp6-96"
/interface ethernet switch egress-vlan-tag
add tagged-ports="ether1-uplink CCR" vlan-id=96
add tagged-ports="ether1-uplink CCR" vlan-id=46
add tagged-ports="ether1-uplink CCR" vlan-id=4
add tagged-ports="switch1-cpu,ether1-uplink CCR" vlan-id=290
add disabled=yes tagged-ports="ether1-uplink CCR" vlan-id=287
/interface ethernet switch ingress-vlan-translation
add customer-vid=0 new-customer-vid=96 ports=sfp6-96 sa-learning=yes
add customer-vid=0 new-customer-vid=46 ports=sfp2-46 sa-learning=yes
add customer-vid=0 new-customer-vid=290 ports=sfp1-290 sa-learning=yes
add customer-vid=0 new-customer-vid=4 ports=sfp3-4,5 sa-learning=yes
/interface ethernet switch vlan
add ports="sfp6-96,ether1-uplink CCR" vlan-id=96
add ports="sfp2-46,ether1-uplink CCR" vlan-id=46
add ports="switch1-cpu,sfp1-290,ether1-uplink CCR" vlan-id=290
add ports="sfp3-4,5,ether1-uplink CCR" vlan-id=4