Jump to content

Recommended Posts

Posted (edited)

Всем доброго времени суток, настраиваю в точности по примеру как в вики, но почему-то не работает, подскажите плиз что упустил.

http://wiki.mikrotik.com/wiki/Manual:CRS_examples

Example 1 (Trunk and Access ports)

 

У меня следующий конфиг

/interface ethernet

set [ find default-name=ether21 ] master-port=ether24

set [ find default-name=ether22 ] master-port=ether24

 

/interface ethernet switch ingress-vlan-translation

add customer-vid=0 new-customer-vid=21 ports=ether21 sa-learning=yes

add customer-vid=0 new-customer-vid=22 ports=ether22 sa-learning=yes

 

/interface ethernet switch egress-vlan-tag

add tagged-ports=ether24 vlan-id=21

add tagged-ports=ether24 vlan-id=22

 

/interface ethernet switch vlan

add ports=ether21,ether24 vlan-id=21

add ports=ether22,ether24 vlan-id=22

 

 

/interface ethernet switch

set drop-if-invalid-or-src-port-not-member-of-vlan-on-ports=ether24,ether21,ether22

 

На транкпорту работает centos

настроены интерфейсы

ifcfg-eth1.21 и ifcfg-eth1.22

 

VLAN=yes

DEVICE=eth1.ХХ

ONBOOT=yes

 

Ну и проблема в том что три девайса, подключенные в эти порты, друг друга не видят.

 

Настраивал эту же конструкцию через бриджи - работает

/interface bridge

add name=bridge21

add name=bridge22

 

/interface vlan

add interface=ether24 l2mtu=1584 name=vlan21 vlan-id=21

add interface=ether24 l2mtu=1584 name=vlan22 vlan-id=22

 

/interface bridge port

add bridge=bridge21 interface=vlan21

add bridge=bridge21 interface=ether21

add bridge=bridge22 interface=vlan22

add bridge=bridge22 interface=ether22

 

 

PS Mikrotik только осваивать начинаю, сильно не пинайте)

Edited by xvld
Posted (edited)

Ваше:

/interface ethernet switch vlan
add ports=ether21,ether24 vlan-id=21
add ports=ether22,ether24 vlan-id=22

 

Мануальное;

/interface ethernet switch vlan
add ports=ether2,ether6 vlan-id=200 learn=yes
add ports=ether2,ether7 vlan-id=300 learn=yes
add ports=ether2,ether8 vlan-id=400 learn=yes

 

Без изучения MAC-адресов, видимо, не алё.

Edited by jagamaster
Posted

Удалось выяснить почему не работает

На выходе из access-порта не снимается vlan-тег

В вики пишут необходимо использовать параметр vlan-header=always-strip, но в своей железке я его не наблюдаю.

Подскажите как выйти из ситуации?

Свитч CRS125-24G-1S-RM

Posted (edited)

Продвинулся дальше, тег должен удаляться с помощью egress-vlan-translation, но этого не происходит.

Немного упростил пример

tagged VLAN100 <-> ether5 <-> ether4 <-> untagged VLAN100

/interface ethernet switch egress-vlan-tag
add tagged-ports=ether5 vlan-id=100

/interface ethernet switch egress-vlan-translation
add customer-vid=100 new-customer-vid=0 ports=ether4

/interface ethernet switch ingress-vlan-translation
add customer-vid=0 new-customer-vid=100 ports=ether4 sa-learning=yes

/interface ethernet switch vlan
add ports=ether4,ether5 vlan-id=100

Edited by xvld
Posted

Это единственная свитч группа на коммутаторе?

Не единственная.

Тестовая группа из двух портов ether4 и ether5 (set [ find default-name=ether4 ] master-port=ether5)

Устальные по умолчанию slave с мастер портом ether1

Posted

Выдержка из Вики

Note: Multiple master-port configuration is designed as fast and simple port isolation solution, but it limits part of VLAN functionality supported by CRS switch-chip. For advanced configurations use one master-port within CRS switch chip for all ports, configure VLANs and isolate port groups with port isolation profile configuration.

  • 1 year later...
Posted

Выдержка из Вики

Note: Multiple master-port configuration is designed as fast and simple port isolation solution, but it limits part of VLAN functionality supported by CRS switch-chip. For advanced configurations use one master-port within CRS switch chip for all ports, configure VLANs and isolate port groups with port isolation profile configuration.

А можно перевести(объяснить)? А то что с моим "английским"(и с гуглтранслейтером) не совсем понятно.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...
На сайте используются файлы cookie и сервисы аналитики для корректной работы форума и улучшения качества обслуживания. Продолжая использовать сайт, вы соглашаетесь с использованием файлов cookie и с Политикой конфиденциальности.