Jump to content

Recommended Posts

Posted

сабж на этом примере влан -порт

 

class "vlan900:p1" {
match if (
binary-to-ascii (10, 16, «», substring( option agent.circuit-id, 2, 2))="900"
and binary-to-ascii(10, 8, ",", suffix( option agent.circuit-id, 1)) = "1"
);
}

 

собственно что получил

 

Option: (t=82,l=18) Agent Information Option
        Option: (82) Agent Information Option
        Length: 18
        Value: 010600040384000702080006001FCE103986
        Agent Circuit ID: 000403840007
        Agent Remote ID: 0006001FCE103986
    End Option

Posted

Ну очевидно и в Agent Circuit ID и в Agent Remote ID первые два байта это длина данных. В первом случае 0004 - 4 байта, 0006 - 6 байт.

Дальше идут сами данные. В Agent Circuit ID 03848887 как обычно это Vlan/модуль/порт = 0384/00/07 т.е. 0384(hex) = 900 Vlan, модуль 0 и порт 7

А в Agent Remote ID: 001FCE103986 это МАС свича.

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 и с Политикой конфиденциальности.