You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: content/cumulus-linux-517/Layer-2/Link-Layer-Discovery-Protocol.md
+59-28Lines changed: 59 additions & 28 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -516,14 +516,34 @@ You can transmit the following IEEE 802.1 TLVs when exchanging LLDP messages. By
516
516
| VLAN Name | 3 | The name of any VLAN to which the port belongs. |
517
517
| Link Aggregation | 7 | Indicates if the port supports link aggregation and if it is on. |
518
518
519
-
To enable IEEE 802.1 TLV transmission, run the `nv set system lldp dot1-tlv enabled` command:
519
+
You enable IEEE 802.1 TLV transmission either globally or for a profile applied to an interface. You can send or receive all IEEE 802.1 TLVs or only specific IEEE 802.1 TLVs; for example, you can send the port VLAN ID and the VLAN name but not Link Aggregation.
520
+
521
+
The following example enables IEEE 802.1 TLV transmission globally. The switch sends and receives LLDP frames with the PORT VLAN ID, VLAN Name, and Link Aggregation on all ports:
520
522
521
523
```
522
524
cumulus@switch:~$ nv set system lldp dot1-tlv enabled
523
525
cumulus@switch:~$ nv config apply
524
526
```
525
527
526
-
To disable IEEE 802.1 TLV transmission, run the `nv unset system lldp dot1-tlv` command.
528
+
The following example configures the switch to send LLDP frames with only the port VLAN ID and VLAN Name on all ports:
529
+
530
+
```
531
+
cumulus@switch:~$ nv set system lldp tlv egress-policy vlan-name state enabled
532
+
cumulus@switch:~$ nv set system lldp tlv egress-policy port-vlan-id state enabled
533
+
cumulus@switch:~$ nv config apply
534
+
```
535
+
536
+
The following example configures an egress policy profile called VLAN for swp1 that sends LLDP frames with the port VLAN ID and VLAN name only:
537
+
538
+
```
539
+
cumulus@switch:~$ nv set system lldp tlv profile VLAN egress-policy vlan-name state enabled
540
+
cumulus@switch:~$ nv set system lldp tlv profile VLAN egress-policy port-vlan-id state enabled
541
+
cumulus@switch:~$ nv set interface swp1 lldp tlv profile VLAN
542
+
cumulus@switch:~$ nv config apply
543
+
```
544
+
545
+
- To disable IEEE 802.1 TLV transmission globally, run the `nv unset system lldp dot1-tlv` command.
546
+
- To disable IEEE 802.1 TLV transmission for a profile, run the `nv set interface <interface-id> lldp tlv profile <profile-id> disabled` command.
527
547
528
548
To show if IEEE 802.1 TLV transmission is enabled, run the NVUE `nv show system lldp` command:
Cumulus Linux transmits the following IEEE 802.3 TLVs by default. You do not need to enable them.
565
+
Cumulus Linux transmits the following IEEE 802.3 TLVs by default. You can disable the IEEE 802.3 TLVs individually either globally or for a profile.
546
566
547
567
| Name | Subtype | Description |
548
568
|-------------------- | ------- | ----------- |
549
569
| Link Aggregation | 3 | Indicates if the port supports link aggregation and if it is enabled. |
550
570
| Maximum Frame Size | 4 | The MTU configuration on the port. The MTU on the port is the <spanclass="a-tooltip">[MFS](##"Maximum Frame Size ")</span>. |
571
+
| MAC PHY Configuration | 1 | Advertises port auto-negotiation capabilities, operational status, duplex setting, bit rate, and physical interface type. |
572
+
||||
573
+
574
+
The following example disables the Maximum Frame Size TLV on egress for all ports:
575
+
576
+
```
577
+
cumulus@leaf01:mgmt:~$ nv set system lldp tlv egress-policy max-frame-size
578
+
cumulus@leaf01:mgmt:~$ nv config apply
579
+
```
580
+
581
+
The following example disables the Link Aggregation TLV on egress for the profile LINK-AGG:
582
+
583
+
```
584
+
cumulus@leaf01:mgmt:~$ nv set system lldp tlv profile LINK-AGG egress-policy max-frame-size state disabled
585
+
```
551
586
552
587
#### QoS TLVs
553
588
@@ -569,49 +604,45 @@ When you enable {{<link url="RDMA-over-Converged-Ethernet-RoCE" text="ROCE">}} o
569
604
- LLDP frames for all switch port interfaces carry PFC configuration, ETS configuration, ETS recommendation, and APP Priority TLVs. The ETS configuration and PFC configuration TLV payloads are the same for all interfaces.
570
605
{{%/notice%}}
571
606
572
-
To enable PFC ConfigurationTLV transmission, run the `nv set interface <interface-id> lldp dcbx-pfc-tlv enabled` command:
607
+
You enable PFC Configuration, ETS Configuration, and ETS Recommendation TLV transmission either globally or for a profile, then set the interface.
573
608
574
-
```
575
-
cumulus@switch:~$ nv set interface swp1 lldp dcbx-pfc-tlv enabled
576
-
cumulus@switch:~$ nv config apply
577
-
```
578
-
579
-
To enable ETS Configuration TLV transmission, run the `nv set interface <interface-id> lldp dcbx-ets-config-tlv enabled` command:
580
-
581
-
```
582
-
cumulus@switch:~$ nv set interface swp1 lldp dcbx-ets-config-tlv enabled
583
-
cumulus@switch:~$ nv config apply
584
-
```
609
+
{{%notice note%}}
610
+
The interface must be a physical interface; you cannot enable TLVs on bonds.
611
+
{{%/notice%}}
585
612
586
-
To enable ETS Recommendation TLV transmission, run the `nv set interface <interface-id> lldp dcbx-ets-recomm-tlv enabled` command:
613
+
The following example enables PFC Configuration, ETS Configuration, and ETS Recommendation TLV transmission on egress globally:
587
614
588
615
```
589
-
cumulus@switch:~$ nv set interface swp1 lldp dcbx-ets-recomm-tlv enabled
616
+
cumulus@switch:~$ nv set system lldp tlv egress-policy dcbx-pfc state enabled
617
+
cumulus@switch:~$ nv set system lldp tlv egress-policy dcbx-ets state enabled
618
+
cumulus@switch:~$ nv set system lldp tlv egress-policy dcbx-ets-recomm state enabled
590
619
cumulus@switch:~$ nv config apply
591
620
```
592
621
593
-
{{%notice note%}}
594
-
The interface must be a physical interface; you cannot enable TLVs on bonds.
595
-
{{%/notice%}}
596
-
597
-
To disable PFC Configuration TLV transmission, run the `nv unset interface <interface-id> lldp dcbx-pfc-tlv` command:
622
+
The following example enables PFC Configuration, ETS Configuration, and ETS Recommendation TLV transmission for an egress policy profile called dcbx-swp1 on swp1:
cumulus@switch:~$ nv set interface swp1 lldp dcbx-pfc-tlv disabled
637
+
cumulus@switch:~$ nv set interface swp1 lldp dcbx-ets-tlv disabled
638
+
cumulus@switch:~$ nv set interface swp1 lldp dcbx-ets-recomm-tlv disabled
639
+
cumulus@switch:~$ nv config apply
609
640
```
610
641
611
-
To disable ETS Recommendation TLV transmission, run the `nv unset interface <interface-id> lldp dcbx-ets-recomm-tlv` command:
642
+
To disable PFC Configuration, ETS Configuration, or ETS Recommendation TLV transmission for a profile, run the `nv set interface <interface-id> lldp tlv profile <profile-id> disabled` command:
0 commit comments