Skip to content

Commit d497b61

Browse files
committed
Merge branch '517' into stage
2 parents a135ce6 + 0e5f666 commit d497b61

1 file changed

Lines changed: 59 additions & 28 deletions

File tree

content/cumulus-linux-517/Layer-2/Link-Layer-Discovery-Protocol.md

Lines changed: 59 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -516,14 +516,34 @@ You can transmit the following IEEE 802.1 TLVs when exchanging LLDP messages. By
516516
| VLAN Name | 3 | The name of any VLAN to which the port belongs. |
517517
| Link Aggregation | 7 | Indicates if the port supports link aggregation and if it is on. |
518518

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:
520522

521523
```
522524
cumulus@switch:~$ nv set system lldp dot1-tlv enabled
523525
cumulus@switch:~$ nv config apply
524526
```
525527

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.
527547

528548
To show if IEEE 802.1 TLV transmission is enabled, run the NVUE `nv show system lldp` command:
529549

@@ -542,12 +562,27 @@ mode default default default
542562
<!-- vale off -->
543563
#### IEEE 802.3 TLVs
544564
<!-- vale on -->
545-
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.
546566

547567
| Name | Subtype | Description |
548568
|-------------------- | ------- | ----------- |
549569
| Link Aggregation | 3 | Indicates if the port supports link aggregation and if it is enabled. |
550570
| Maximum Frame Size | 4 | The MTU configuration on the port. The MTU on the port is the <span class="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+
```
551586

552587
#### QoS TLVs
553588

@@ -569,49 +604,45 @@ When you enable {{<link url="RDMA-over-Converged-Ethernet-RoCE" text="ROCE">}} o
569604
- 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.
570605
{{%/notice%}}
571606

572-
To enable PFC Configuration TLV 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.
573608

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%}}
585612

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:
587614

588615
```
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
590619
cumulus@switch:~$ nv config apply
591620
```
592621

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:
598623

599624
```
600-
cumulus@switch:~$ nv unset interface swp1 lldp dcbx-pfc-tlv
625+
cumulus@switch:~$ nv set system lldp tlv profile dcbx-swp1 egress-policy dcbx-pfc state enabled
626+
cumulus@switch:~$ nv set system lldp tlv profile dcbx-swp1 egress-policy dcbx-ets-config state enabled
627+
cumulus@switch:~$ nv set system lldp tlv profile dcbx-swp1 egress-policy dcbx-ets-recomm state enabled
628+
cumulus@switch:~$ nv set interface swp1 lldp tlv profile dcbx-swp1
601629
cumulus@switch:~$ nv config apply
602630
```
603631

604-
To disable ETS Configuration TLV transmission, run the `nv unset interface <interface-id> lldp dcbx-ets-config-tlv` command:
632+
To disable PFC Configuration, ETS Configuration, or ETS Recommendation TLV transmission globally, run the
633+
`nv set interface <interface-id> lldp dcbx-pfc-tlv disabled`, `nv set interface <interface-id> lldp dcbx-ets-tlv disabled`, or `nv set interface <interface-id> lldp dcbx-ets-recomm-tlv disabled` commands.
605634

606635
```
607-
cumulus@switch:~$ nv unset interface swp1 lldp dcbx-ets-config-tlv
608-
cumulus@switch:~$ nv config apply
636+
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
609640
```
610641

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:
612643

613644
```
614-
cumulus@switch:~$ nv unset interface swp1 lldp dcbx-ets-recomm-tlv
645+
cumulus@switch:~$ nv set interface swp1 lldp tlv profile dcbx-swp1 disabled
615646
cumulus@switch:~$ nv config apply
616647
```
617648

0 commit comments

Comments
 (0)