Managing Network Datalinks in Oracle® Solaris 11.2

Exit Print View

Updated: September 2014
 
 

How to Specify TLV Units for the LLDP Packet of an Agent

This procedure explains how to specify TLV units to be advertised in an LLDP packet that an agent transmits.

  1. Become an administrator.

    For more information, see Using Your Assigned Administrative Rights in Securing Users and Processes in Oracle Solaris 11.2 .

  2. (Optional) Identify the LLDP agent property that can contain the TLV unit that you want to add by displaying the TLV units.
    # lldpadm show-agentprop agent

    This command helps you to see the TLV units that are already set for each property. If you do not specify a property, this command displays all the LLDP agent properties and their TLV values. For a list of agent properties, see Table 5–1.

  3. Add or remove the TLV unit from the property.
    # lldpadm set-agentprop -p property[+|-]=value[,...] agent

    You can use qualifiers to add (+) or remove (-) values from the list of values for properties that accept multiple values.

    If you do not use the add (+) or remove (-) qualifiers, then the value that you set replaces all the values that were previously defined for the property.

  4. (Optional) Display the new values for the property.
    # lldpadm show-agentprop -p property agent
Example 5-4  Adding Optional TLV Units to an LLDP Packet

In the following example, the LLDP agent has net0 configured to advertise VLAN information in its LLDP packet. The LLDP packet is further configured to include system capabilities, link aggregation, and virtual NIC information as items that the LLDP can advertise. Later, the VLAN description is removed from the packet.

  1. Display the existing agent properties.

    # lldpadm show-agentprop net0
    AGENT   PROPERTY   PERM   VALUE          DEFAULT   POSSIBLE
    net0    mode       rw     both           disable   txonly,rxonly,both,disable
    net0    basic-tlv  rw     sysname,        none     none,portdesc,
                              sysdesc                  sysname,sysdesc,
                                                       syscapab,mgmtaddr,
                                                       all
    net0    dot1-tlv   rw     vlanname,       none     none,vlanname,pvid,
                              pvid,pfc                 linkaggr,pfc,appln,
                                                       evb,etscfg,etsreco,all
    net0    dot3-tlv   rw     max-framesize   none     none, max-framesize,
                                                       all
    net0    virt-tlv   rw     none            none     none,vnic,all

    The output displays the existing, default, and possible values for each property of the LLDP agent.

  2. Set system capabilities, link aggregation, and network virtualization information as items to advertise over the network.

    # lldpadm set-agentprop -p basic-tlv+=syscapab,dot1-tlv+=linkaggr,virt-tlv=vnic net0
  3. Remove the VLAN description from the packet.

    # lldpadm set-agentprop -p dot1-tlv-=vlanname net0
  4. Display the agent properties.

    # lldpadm show-agentprop -p net0
    AGENT   PROPERTY   PERM   VALUE          DEFAULT   POSSIBLE
    net0    mode       rw     both           disable   txonly,rxonly,both,
                                                       disable
    net0    basic-tlv  rw     sysname,        none     none,portdesc,
                              sysdesc,                 sysname,sysdesc,
                              syscapab                 syscapab,mgmtaddr,
                                                       all
    net0    dot1-tlv   rw     pvid,pfc        none     none,vlanname,pvid,
                              linkaggr                 linkaggr,pfc,appln,
                                                       evb,etscfg,etsreco,all
    net0    dot3-tlv   rw     max-framesize   none     none, max-framesize,
                                                       all
    net0    virt-tlv   rw     vnic            none     none,vnic,all