Lldp

LLDP Tests

Test LLDP Packets

Description

This scenario checks that a device can send and receive LLDP packets when LLDP is configured on an Ethernet interface.

Scenario

Step 1: Set the following configuration in DUT0 :

set interfaces ethernet eth0 address 192.168.100.101/24
set interfaces ethernet eth0 lldp
set system login user admin authentication encrypted-password '$6$GSjsCj8gHLv$/VcqU6FLi6CT2Oxn0MJQ2C2tqnRDrYKNF8HIYWJp68nvXvPdFccDsT04.WtigUONbKYrgKg8d6rEs8PjljMkH0'

Step 2: Set the following configuration in DUT1 :

set interfaces ethernet eth0 address 192.168.100.102/24
set interfaces ethernet eth0 lldp
set system login user admin authentication encrypted-password '$6$GSjsCj8gHLv$/VcqU6FLi6CT2Oxn0MJQ2C2tqnRDrYKNF8HIYWJp68nvXvPdFccDsT04.WtigUONbKYrgKg8d6rEs8PjljMkH0'

Note

Start packet capture in DUT0.

Step 3: Run command traffic dump monitor interface eth0 detail at DUT0.

Note

Stop packet capture in DUT0 and expect LLDP.

Show output
tcpdump: listening on eth0, link-type EN10MB (Ethernet), snapshot length 262144 bytes
18:19:06.784305 de:ad:be:ef:6c:00 > 01:80:c2:00:00:0e, ethertype LLDP

Test LLDP Voice

Description

This scenario checks LLDP voice without VLAN works when configured on an Ethernet interface.

Scenario

Step 1: Set the following configuration in DUT0 :

set interfaces ethernet eth0 address 192.168.100.101/24
set interfaces ethernet eth0 lldp voice dscp 54
set system login user admin authentication encrypted-password '$6$GSjsCj8gHLv$/VcqU6FLi6CT2Oxn0MJQ2C2tqnRDrYKNF8HIYWJp68nvXvPdFccDsT04.WtigUONbKYrgKg8d6rEs8PjljMkH0'

Step 2: Set the following configuration in DUT1 :

set interfaces ethernet eth0 address 192.168.100.102/24
set interfaces ethernet eth0 lldp
set system login user admin authentication encrypted-password '$6$GSjsCj8gHLv$/VcqU6FLi6CT2Oxn0MJQ2C2tqnRDrYKNF8HIYWJp68nvXvPdFccDsT04.WtigUONbKYrgKg8d6rEs8PjljMkH0'

Note

Start packet capture in DUT0.

Step 3: Run command traffic dump monitor interface eth0 detail at DUT0.

Note

Stop packet capture in DUT0 and expect: Organization specific TLV (127), length 8: OUI ANSI/TIA (0x0012bb), Network policy Subtype (2), Application type [voice] (0x01), Flags [none] and DSCP value 54.

Show output
tcpdump: listening on eth0, link-type EN10MB (Ethernet), snapshot length 262144 bytes
18:19:14.168557 de:ad:be:ef:6c:00 > 33:33:00:00:00:16, ethertype IPv6 (0x86dd), length 150: (hlim 1, next-header Options (0) payload length: 96) fe80::dcad:beff:feef:6c00 > ff02::16: HBH (rtalert: 0x0000) (padn) [icmp6 sum ok] ICMP6, multicast listener report v2, 4 group record(s) [gaddr ff02::1:ff00:0 to_ex { }] [gaddr ff02::1:ffef:6c00 to_ex { }] [gaddr ff05::2 to_ex { }] [gaddr ff02::2 to_ex {
}]
18:19:14.180509 de:ad:be:ef:6c:00 > 33:33:00:00:00:16, ethertype IPv6 (0x86dd), length 90: (hlim 1, next-header Options (0) payload length: 36) fe80::dcad:beff:feef:6c00 > ff02::16: HBH (rtalert: 0x0000) (padn) [icmp6 sum ok] ICMP6, multicast listener report v2, 1 group record(s) [gaddr ff02::1:ff00:0 to_ex { }]
18:19:14.372525 de:ad:be:ef:6c:00 > 33:33:00:00:00:16, ethertype IPv6 (0x86dd), length 90: (hlim 1, next-header Options (0) payload length: 36) fe80::dcad:beff:feef:6c00 > ff02::16: HBH (rtalert: 0x0000) (padn) [icmp6 sum ok] ICMP6, multicast listener report v2, 1 group record(s) [gaddr ff02::1:ff00:0 to_ex { }]
18:19:14.552526 de:ad:be:ef:6c:00 > 33:33:00:00:00:16, ethertype IPv6 (0x86dd), length 150: (hlim 1, next-header Options (0) payload length: 96) fe80::dcad:beff:feef:6c00 > ff02::16: HBH (rtalert: 0x0000) (padn) [icmp6 sum ok] ICMP6, multicast listener report v2, 4 group record(s) [gaddr ff02::1:ff00:0 to_ex { }] [gaddr ff02::1:ffef:6c00 to_ex { }] [gaddr ff05::2 to_ex { }] [gaddr ff02::2 to_ex {
}]
18:19:42.872308 de:ad:be:ef:6c:00 > 01:80:c2:00:00:0e, ethertype LLDP (0x88cc), length 246: LLDP, length 232
        Chassis ID TLV (1), length 7
          Subtype MAC address (4): de:ad:be:ef:6c:00
          0x0000:  04de adbe ef6c 00
        Port ID TLV (2), length 7
          Subtype MAC address (3): de:ad:be:ef:6c:00
          0x0000:  03de adbe ef6c 00
        Time to Live TLV (3), length 2: TTL 120s
          0x0000:  0078
        System Name TLV (5), length 4: osdx
          0x0000:  6f73 6478
        System Description TLV (6), length 116
          Debian GNU/Linux 12 (bookworm) Linux 6.12.73 #1~bpo12+1++teldat~v4.2.9.0~2~49b305420 SMP PREEMPT_DYNAMIC Wed  x86_64
          0x0000:  4465 6269 616e 2047 4e55 2f4c 696e 7578
          0x0010:  2031 3220 2862 6f6f 6b77 6f72 6d29 204c
          0x0020:  696e 7578 2036 2e31 322e 3733 2023 317e
          0x0030:  6270 6f31 322b 312b 2b74 656c 6461 747e
          0x0040:  7634 2e32 2e39 2e30 7e32 7e34 3962 3330
          0x0050:  3534 3230 2053 4d50 2050 5245 454d 5054
          0x0060:  5f44 594e 414d 4943 2057 6564 2020 7838
          0x0070:  365f 3634
        System Capabilities TLV (7), length 4
          System  Capabilities [Bridge, WLAN AP, Router, Station Only] (0x009c)
          Enabled Capabilities [Router] (0x0010)
          0x0000:  009c 0010
        Management Address TLV (8), length 12
          Management Address length 5, AFI IPv4 (1): 192.168.100.101
          Interface Index Interface Numbering (2): 2
          0x0000:  0501 c0a8 6465 0200 0000 0200
        Management Address TLV (8), length 24
          Management Address length 17, AFI IPv6 (2): fe80::dcad:beff:feef:6c00
          Interface Index Interface Numbering (2): 2
          0x0000:  1102 fe80 0000 0000 0000 dcad beff feef
          0x0010:  6c00 0200 0000 0200
        Port Description TLV (4), length 4: eth0
          0x0000:  6574 6830
        Organization specific TLV (127), length 9: OUI IEEE 802.3 Private (0x00120f)
          Link aggregation Subtype (3)
            aggregation status [supported], aggregation port ID 0
          0x0000:  0012 0f03 0100 0000 00
        Organization specific TLV (127), length 9: OUI IEEE 802.3 Private (0x00120f)
          MAC/PHY configuration/status Subtype (1)
            autonegotiation [none] (0x00)
            PMD autoneg capability [unknown] (0x8000)
            MAU type Unknown (0x0000)
          0x0000:  0012 0f01 0080 0000 00
        Organization specific TLV (127), length 8: OUI ANSI/TIA (0x0012bb)
          Network policy Subtype (2)
            Application type [voice] (0x01), Flags [none]
            Vlan id 0, L2 priority 0, DSCP value 54

Test LLDP Voice Vlan

Description

This scenario checks LLDP voice with VLAN works when configured on an Ethernet interface.

Scenario

Step 1: Set the following configuration in DUT0 :

set interfaces ethernet eth0 address 192.168.100.101/24
set interfaces ethernet eth0 lldp voice dscp 54
set interfaces ethernet eth0 lldp voice vlan 100 cos 3
set system login user admin authentication encrypted-password '$6$GSjsCj8gHLv$/VcqU6FLi6CT2Oxn0MJQ2C2tqnRDrYKNF8HIYWJp68nvXvPdFccDsT04.WtigUONbKYrgKg8d6rEs8PjljMkH0'

Step 2: Set the following configuration in DUT1 :

set interfaces ethernet eth0 address 192.168.100.102/24
set interfaces ethernet eth0 lldp
set system login user admin authentication encrypted-password '$6$GSjsCj8gHLv$/VcqU6FLi6CT2Oxn0MJQ2C2tqnRDrYKNF8HIYWJp68nvXvPdFccDsT04.WtigUONbKYrgKg8d6rEs8PjljMkH0'

Note

Start packet capture in DUT0.

Step 3: Run command traffic dump monitor interface eth0 detail at DUT0.

Note

Stop packet capture in DUT0 and expect: Organization specific TLV (127), length 8: OUI ANSI/TIA (0x0012bb), Network policy Subtype (2), Application type [voice] (0x01), Flags [Tagged] and Vlan id 100, L2 priority 3, DSCP value 54.

Show output
tcpdump: listening on eth0, link-type EN10MB (Ethernet), snapshot length 262144 bytes
18:19:50.269379 de:ad:be:ef:6c:00 > 33:33:00:00:00:16, ethertype IPv6 (0x86dd), length 150: (hlim 1, next-header Options (0) payload length: 96) fe80::dcad:beff:feef:6c00 > ff02::16: HBH (rtalert: 0x0000) (padn) [icmp6 sum ok] ICMP6, multicast listener report v2, 4 group record(s) [gaddr ff02::1:ff00:0 to_ex { }] [gaddr ff02::1:ffef:6c00 to_ex { }] [gaddr ff05::2 to_ex { }] [gaddr ff02::2 to_ex {
}]
18:19:50.281323 de:ad:be:ef:6c:00 > 33:33:00:00:00:16, ethertype IPv6 (0x86dd), length 90: (hlim 1, next-header Options (0) payload length: 36) fe80::dcad:beff:feef:6c00 > ff02::16: HBH (rtalert: 0x0000) (padn) [icmp6 sum ok] ICMP6, multicast listener report v2, 1 group record(s) [gaddr ff02::1:ff00:0 to_ex { }]
18:19:50.421325 de:ad:be:ef:6c:00 > 33:33:00:00:00:16, ethertype IPv6 (0x86dd), length 150: (hlim 1, next-header Options (0) payload length: 96) fe80::dcad:beff:feef:6c00 > ff02::16: HBH (rtalert: 0x0000) (padn) [icmp6 sum ok] ICMP6, multicast listener report v2, 4 group record(s) [gaddr ff02::1:ff00:0 to_ex { }] [gaddr ff02::1:ffef:6c00 to_ex { }] [gaddr ff05::2 to_ex { }] [gaddr ff02::2 to_ex {
}]
18:19:51.069337 de:ad:be:ef:6c:00 > 33:33:00:00:00:16, ethertype IPv6 (0x86dd), length 90: (hlim 1, next-header Options (0) payload length: 36) fe80::dcad:beff:feef:6c00 > ff02::16: HBH (rtalert: 0x0000) (padn) [icmp6 sum ok] ICMP6, multicast listener report v2, 1 group record(s) [gaddr ff02::1:ff00:0 to_ex { }]
18:20:18.881132 de:ad:be:ef:6c:00 > 01:80:c2:00:00:0e, ethertype LLDP (0x88cc), length 246: LLDP, length 232
        Chassis ID TLV (1), length 7
          Subtype MAC address (4): de:ad:be:ef:6c:00
          0x0000:  04de adbe ef6c 00
        Port ID TLV (2), length 7
          Subtype MAC address (3): de:ad:be:ef:6c:00
          0x0000:  03de adbe ef6c 00
        Time to Live TLV (3), length 2: TTL 120s
          0x0000:  0078
        System Name TLV (5), length 4: osdx
          0x0000:  6f73 6478
        System Description TLV (6), length 116
          Debian GNU/Linux 12 (bookworm) Linux 6.12.73 #1~bpo12+1++teldat~v4.2.9.0~2~49b305420 SMP PREEMPT_DYNAMIC Wed  x86_64
          0x0000:  4465 6269 616e 2047 4e55 2f4c 696e 7578
          0x0010:  2031 3220 2862 6f6f 6b77 6f72 6d29 204c
          0x0020:  696e 7578 2036 2e31 322e 3733 2023 317e
          0x0030:  6270 6f31 322b 312b 2b74 656c 6461 747e
          0x0040:  7634 2e32 2e39 2e30 7e32 7e34 3962 3330
          0x0050:  3534 3230 2053 4d50 2050 5245 454d 5054
          0x0060:  5f44 594e 414d 4943 2057 6564 2020 7838
          0x0070:  365f 3634
        System Capabilities TLV (7), length 4
          System  Capabilities [Bridge, WLAN AP, Router, Station Only] (0x009c)
          Enabled Capabilities [Router] (0x0010)
          0x0000:  009c 0010
        Management Address TLV (8), length 12
          Management Address length 5, AFI IPv4 (1): 192.168.100.101
          Interface Index Interface Numbering (2): 2
          0x0000:  0501 c0a8 6465 0200 0000 0200
        Management Address TLV (8), length 24
          Management Address length 17, AFI IPv6 (2): fe80::dcad:beff:feef:6c00
          Interface Index Interface Numbering (2): 2
          0x0000:  1102 fe80 0000 0000 0000 dcad beff feef
          0x0010:  6c00 0200 0000 0200
        Port Description TLV (4), length 4: eth0
          0x0000:  6574 6830
        Organization specific TLV (127), length 9: OUI IEEE 802.3 Private (0x00120f)
          Link aggregation Subtype (3)
            aggregation status [supported], aggregation port ID 0
          0x0000:  0012 0f03 0100 0000 00
        Organization specific TLV (127), length 9: OUI IEEE 802.3 Private (0x00120f)
          MAC/PHY configuration/status Subtype (1)
            autonegotiation [none] (0x00)
            PMD autoneg capability [unknown] (0x8000)
            MAU type Unknown (0x0000)
          0x0000:  0012 0f01 0080 0000 00
        Organization specific TLV (127), length 8: OUI ANSI/TIA (0x0012bb)
          Network policy Subtype (2)
            Application type [voice] (0x01), Flags [Tagged]
            Vlan id 100, L2 priority 3, DSCP value 54

Test LLDP Packets Bridge

Description

This scenario checks that a device can send and receive LLDP packets when LLDP is configured on an Ethernet interface that is part of a bridge group.

Scenario

Step 1: Set the following configuration in DUT0 :

set interfaces bridge br0 address 192.168.100.101/24
set interfaces ethernet eth0 bridge-group bridge br0
set interfaces ethernet eth0 lldp
set system login user admin authentication encrypted-password '$6$GSjsCj8gHLv$/VcqU6FLi6CT2Oxn0MJQ2C2tqnRDrYKNF8HIYWJp68nvXvPdFccDsT04.WtigUONbKYrgKg8d6rEs8PjljMkH0'

Step 2: Set the following configuration in DUT1 :

set interfaces ethernet eth0 address 192.168.100.102/24
set interfaces ethernet eth0 lldp
set system login user admin authentication encrypted-password '$6$GSjsCj8gHLv$/VcqU6FLi6CT2Oxn0MJQ2C2tqnRDrYKNF8HIYWJp68nvXvPdFccDsT04.WtigUONbKYrgKg8d6rEs8PjljMkH0'

Note

Start packet capture in DUT0.

Step 3: Run command traffic dump monitor interface eth0 detail at DUT0.

Note

Stop packet capture in DUT0 and expect LLDP.

Show output
tcpdump: listening on eth0, link-type EN10MB (Ethernet), snapshot length 262144 bytes
18:20:25.941728 de:ad:be:ef:6c:00 > 33:33:00:00:00:16, ethertype IPv6 (0x86dd), length 150: (hlim 1, next-header Options (0) payload length: 96) fe80::8892:50ff:febd:8dea > ff02::16: HBH (rtalert: 0x0000) (padn) [icmp6 sum ok] ICMP6, multicast listener report v2, 4 group record(s) [gaddr ff02::1:ff00:0 to_ex { }] [gaddr ff02::1:ffbd:8dea to_ex { }] [gaddr ff02::6a to_ex { }] [gaddr ff02::2 to_ex {
 }]
18:20:25.953627 de:ad:be:ef:6c:00 > 33:33:00:00:00:16, ethertype IPv6 (0x86dd), length 90: (hlim 1, next-header Options (0) payload length: 36) fe80::8892:50ff:febd:8dea > ff02::16: HBH (rtalert: 0x0000) (padn) [icmp6 sum ok] ICMP6, multicast listener report v2, 1 group record(s) [gaddr ff02::1:ff00:0 to_ex { }]
18:20:25.973665 de:ad:be:ef:6c:00 > 33:33:00:00:00:16, ethertype IPv6 (0x86dd), length 150: (hlim 1, next-header Options (0) payload length: 96) fe80::dcad:beff:feef:6c00 > ff02::16: HBH (rtalert: 0x0000) (padn) [icmp6 sum ok] ICMP6, multicast listener report v2, 4 group record(s) [gaddr ff02::1:ff00:0 to_ex { }] [gaddr ff02::1:ffef:6c00 to_ex { }] [gaddr ff05::2 to_ex { }] [gaddr ff02::2 to_ex {
}]
18:20:25.985643 de:ad:be:ef:6c:00 > 33:33:00:00:00:16, ethertype IPv6 (0x86dd), length 90: (hlim 1, next-header Options (0) payload length: 36) fe80::dcad:beff:feef:6c00 > ff02::16: HBH (rtalert: 0x0000) (padn) [icmp6 sum ok] ICMP6, multicast listener report v2, 1 group record(s) [gaddr ff02::1:ff00:0 to_ex { }]
18:20:26.029670 de:ad:be:ef:6c:00 > 33:33:00:00:00:16, ethertype IPv6 (0x86dd), length 90: (hlim 1, next-header Options (0) payload length: 36) fe80::8892:50ff:febd:8dea > ff02::16: HBH (rtalert: 0x0000) (padn) [icmp6 sum ok] ICMP6, multicast listener report v2, 1 group record(s) [gaddr ff02::1:ff00:0 to_ex { }]
18:20:26.421648 de:ad:be:ef:6c:00 > 33:33:00:00:00:16, ethertype IPv6 (0x86dd), length 90: (hlim 1, next-header Options (0) payload length: 36) fe80::dcad:beff:feef:6c00 > ff02::16: HBH (rtalert: 0x0000) (padn) [icmp6 sum ok] ICMP6, multicast listener report v2, 1 group record(s) [gaddr ff02::1:ff00:0 to_ex { }]
18:20:26.549666 de:ad:be:ef:6c:00 > 33:33:00:00:00:16, ethertype IPv6 (0x86dd), length 150: (hlim 1, next-header Options (0) payload length: 96) fe80::8892:50ff:febd:8dea > ff02::16: HBH (rtalert: 0x0000) (padn) [icmp6 sum ok] ICMP6, multicast listener report v2, 4 group record(s) [gaddr ff02::1:ff00:0 to_ex { }] [gaddr ff02::1:ffbd:8dea to_ex { }] [gaddr ff02::6a to_ex { }] [gaddr ff02::2 to_ex {
 }]
18:20:26.613661 de:ad:be:ef:6c:00 > 33:33:00:00:00:16, ethertype IPv6 (0x86dd), length 150: (hlim 1, next-header Options (0) payload length: 96) fe80::dcad:beff:feef:6c00 > ff02::16: HBH (rtalert: 0x0000) (padn) [icmp6 sum ok] ICMP6, multicast listener report v2, 4 group record(s) [gaddr ff02::1:ff00:0 to_ex { }] [gaddr ff02::1:ffef:6c00 to_ex { }] [gaddr ff05::2 to_ex { }] [gaddr ff02::2 to_ex {
}]
18:20:26.691393 de:ad:be:ef:6c:10 > 33:33:00:00:00:16, ethertype IPv6 (0x86dd), length 150: (hlim 1, next-header Options (0) payload length: 96) fe80::dcad:beff:feef:6c10 > ff02::16: HBH (rtalert: 0x0000) (padn) [icmp6 sum ok] ICMP6, multicast listener report v2, 4 group record(s) [gaddr ff02::1:ff00:0 to_ex { }] [gaddr ff02::1:ffef:6c10 to_ex { }] [gaddr ff05::2 to_ex { }] [gaddr ff02::2 to_ex {
}]
18:20:26.703271 de:ad:be:ef:6c:10 > 33:33:00:00:00:16, ethertype IPv6 (0x86dd), length 90: (hlim 1, next-header Options (0) payload length: 36) fe80::dcad:beff:feef:6c10 > ff02::16: HBH (rtalert: 0x0000) (padn) [icmp6 sum ok] ICMP6, multicast listener report v2, 1 group record(s) [gaddr ff02::1:ff00:0 to_ex { }]
18:20:27.491457 de:ad:be:ef:6c:10 > 33:33:00:00:00:16, ethertype IPv6 (0x86dd), length 90: (hlim 1, next-header Options (0) payload length: 36) fe80::dcad:beff:feef:6c10 > ff02::16: HBH (rtalert: 0x0000) (padn) [icmp6 sum ok] ICMP6, multicast listener report v2, 1 group record(s) [gaddr ff02::1:ff00:0 to_ex { }]
18:20:27.683334 de:ad:be:ef:6c:10 > 33:33:00:00:00:16, ethertype IPv6 (0x86dd), length 150: (hlim 1, next-header Options (0) payload length: 96) fe80::dcad:beff:feef:6c10 > ff02::16: HBH (rtalert: 0x0000) (padn) [icmp6 sum ok] ICMP6, multicast listener report v2, 4 group record(s) [gaddr ff02::1:ff00:0 to_ex { }] [gaddr ff02::1:ffef:6c10 to_ex { }] [gaddr ff05::2 to_ex { }] [gaddr ff02::2 to_ex {
}]
18:20:54.768438 de:ad:be:ef:6c:00 > 01:80:c2:00:00:0e, ethertype LLDP