[uanog] дешевый коммутатор :-)

Volodymyr Litovka doka at xlit.one
Thu Aug 13 14:17:46 EEST 2020


У него в help’е написано, что -V если org tldiv отличается от 127. Но фишка в том, насколько стандартным является "VLAN name Subtype”, который tcpdump знает под номером 3, а вот разберет ли его lldptool - непонятно.

Но в любом случае - я признателен за помощь, спасибо.

-- 
Volodymyr Litovka
  "Vision without Execution is Hallucination." -- Thomas Edison

> On 13 Aug 2020, at 12:52, Alexander Shikov <minotaur at crete.org.ua> wrote:
> 
> On Thu, Aug 13, 2020 at 12:38:32 +0300, Volodymyr Litovka wrote:
>> Супер, спасибо!
>> 
>> А не будет ли крайней наглостью попросить еще проверить, хавает ли lldpad/lldptool этот vendor specific? :-)
> 
> Ну, у меня на FreeBSD lldptool и lldpad нет.
> То, что есть:
> /usr/ports/net-mgmt/lldpd
> /usr/ports/net-mgmt/openlldp
> 
> - не умеет декодировать.
> 
> Но ты прочти внимательно lldptool help, возможно там что-то есть:
> 
> -V [tlvid]
>    specifies the TLV identifier
>    The tlvid is an integer value used to identify specific LLDP TLVs. The tlvid value is the Type value for types not equal to 127 (the organizationally specific type). For organizationally specific TLVs, the tlvid is the value represented by the 3 byte OUI and 1 byte subtype - where the subtype is the lowest order byte of the tlvid.
>    The tlvid can be entered as a numerical value (e.g. 10 or 0xa), or for supported TLVs, as a keyword. Review the lldptool help output to see the list of supported TLV keywords. 
> 
>> -- 
>> Volodymyr Litovka
>>  "Vision without Execution is Hallucination." -- Thomas Edison
>> 
>>> On 13 Aug 2020, at 12:36, Alexander Shikov <minotaur at crete.org.ua> wrote:
>>> 
>>> On Thu, Aug 13, 2020 at 11:34:56 +0300, Volodymyr Litovka wrote:
>>>> Привет,
>>>> 
>>>> а кто может назвать самый дешевый гигабитный коммутатор, который бы поддерживал (1) vlan trunking, (2) lldp и (3) отсылку информации о вланах на транке over lldp.
>>>> 
>>>> Старые каталисты из категории “куплю на ebay” не поддерживают п.3
>>>> 
>>>> Спасибо
>>> 
>>> Привет.
>>> 
>>> Extreme Networks, любой Summit. Но это вроде vendor-specific расширение.
>>> 
>>> create vlan "test_40"
>>> configure vlan test_40 tag 40
>>> create vlan "test_41"
>>> configure vlan test_41 tag 41
>>> create vlan "test_42"
>>> configure vlan test_42 tag 42
>>> configure vlan test_40 add ports 1:12 tagged
>>> configure vlan test_41 add ports 1:12 tagged
>>> configure vlan test_42 add ports 1:12 tagged
>>> enable lldp ports 1:12 transmit-only
>>> configure lldp port 1:12 advertise vendor-specific dot1 vlan-name
>>> 
>>> 
>>> 
>>> tcpdump с порта 1:12:
>>> 
>>> 12:35:03.570111 02:04:96:27:7e:3d > 01:80:c2:00:00:0e, ethertype LLDP (0x88cc), length 190: LLDP, length 176
>>>       Chassis ID TLV (1), length 7
>>>         Subtype MAC address (4): 02:04:96:27:7e:3d
>>>         0x0000:  0402 0496 277e 3d
>>>       Port ID TLV (2), length 5
>>>         Subtype Interface Name (5): 1:12
>>>         0x0000:  0531 3a31 32
>>>       Time to Live TLV (3), length 2: TTL 120s
>>>         0x0000:  0078
>>>       System Description TLV (6), length 104
>>>         ExtremeXOS (Stack) version 15.3.5.2 v1535b2-patch1-13 by release-manager on Thu Dec 15 11:08:24 EST 2016
>>>         0x0000:  4578 7472 656d 6558 4f53 2028 5374 6163
>>>         0x0010:  6b29 2076 6572 7369 6f6e 2031 352e 332e
>>>         0x0020:  352e 3220 7631 3533 3562 322d 7061 7463
>>>         0x0030:  6831 2d31 3320 6279 2072 656c 6561 7365
>>>         0x0040:  2d6d 616e 6167 6572 206f 6e20 5468 7520
>>>         0x0050:  4465 6320 3135 2031 313a 3038 3a32 3420
>>>         0x0060:  4553 5420 3230 3136
>>>       Organization specific TLV (127), length 14: OUI Ethernet bridged (0x0080c2)
>>>         VLAN name Subtype (3)
>>>           vlan id (VID): 40
>>>           vlan name: test_40
>>>         0x0000:  0080 c203 0028 0774 6573 745f 3430
>>>       Organization specific TLV (127), length 14: OUI Ethernet bridged (0x0080c2)
>>>         VLAN name Subtype (3)
>>>           vlan id (VID): 41
>>>           vlan name: test_41
>>>         0x0000:  0080 c203 0029 0774 6573 745f 3431
>>>       Organization specific TLV (127), length 14: OUI Ethernet bridged (0x0080c2)
>>>         VLAN name Subtype (3)
>>>           vlan id (VID): 42
>>>           vlan name: test_42
>>>         0x0000:  0080 c203 002a 0774 6573 745f 3432
>>>       End TLV (0), length 0
>> 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.uanog.kiev.ua/pipermail/uanog/attachments/20200813/f181a8f3/attachment-0001.html>


More information about the uanog mailing list