Возникла хотелка написать нехитрый профиль.
Хочу фильтровать весь трафик на uni0 и uni1 портах по ether type.
А точнее мне надо, что бы ходил только ether type 0x8863 и 0x8864
На терминале прописаны следующие правила:
rule show pon
Код: Выделить всё
5: if (VID == 9) then discard *Profile*
5: if (VID == 1001) then discard *Profile*
5: if (VID == 316) then DeleteTag; forward *Profile*
14: if (LinkIndex == 0x0) then path = port 0 queue 0; forward *Profile*
14: if (LinkIndex == 0x1) then path = port 0 queue 1; forward *Profile*
14: if (LinkIndex == 0x2) then path = port 1 queue 0; forward *Profile*
14: if (LinkIndex == 0x3) then path = port 1 queue 1; forward *Profile*
rule show uni0
Код: Выделить всё
5: if (L3Proto == 0x8863) then AddTagVID = 316; forward *Profile*
5: if (L3Proto == 0x8864) then AddTagVID = 316; forward *Profile*
14: if (Always) then path = link 0 queue 0; forward *Profile*
Однако на OLT (NTE-8X) я вижу мак в VID 1, а ожидалось его узреть в VID316. PPPoE сессия не подключается. PADI пакетов в VLAN316 нема.
В итоге, в кач-ве временной заглушку, сделал для uni0 порта следующий профиль:
Код: Выделить всё
5: if (L3Proto == 0x8863) then AddTagVID = 316; forward *Profile*
5: if (L3Proto == 0x8864) then AddTagVID = 316; forward *Profile*
5: if (Always) then AddTagVID = 316; forward *Profile*
14: if (Always) then path = link 0 queue 0; forward *Profile*
Подскажите, пожалуйста, почему не отработали первые 2 правила для uni0 порта?