Managing Network Datalinks in Oracle® Solaris 11.2

Exit Print View

Updated: September 2014
 
 

How to Define TLV Units

This procedure explains how to provide values for specific TLV units.


Tip  -  You can reset the TLV properties to their default values by using the lldpadm reset-tlvprop command for global TLV units and lldpadm reset-agenttlvprop command for per-agent TLV units.
  1. Become an administrator.

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

  2. Configure a global or a per-agent TLV unit.
    • To configure a global TLV unit, set the appropriate TLV property to contain the values that you want to advertise.
      # lldpadm set-tlvprop -p TLV-property=value[,value,value,...] TLV-name

      where TLV-name is the name of the global TLV unit and TLV-property is a property of that TLV unit. You can assign multiple values to the property. For a list of global TLV units and their properties, see Table 5–2.

    • To configure a per-agent TLV unit, configure the appropriate TLV property of the LLDP agent to contain the values that you want the agent to advertise.
      # lldpadm set-agenttlvprop -p TLV-property[+|-]=value[,value,value,...] -a agent TLV-name

      where TLV-name is the name of the agent TLV unit and TLV-property is a property of that TLV unit. You can assign multiple values to the property. For a list of per-agent TLV units and their properties, see Table 5–3.

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

  3. (Optional) Display the values of the TLV property that you have configured.
    • To display the global TLV property values:
      # lldpadm show-tlvprop
    • To display the values of the TLV property of an agent:
      # lldpadm show-agenttlvprop
Example 5-5  Defining TLV Values for the syscapab and mgmtaddr TLV Units

In the following example, specific information about the capabilities of the system to be advertised in the LLDP packet and management IP address is configured.

  1. Configure both supported and enabled properties of the syscapab TLV unit.

    # lldpadm set-tlvprop -p supported=bridge,router,repeater syscapab
    # lldpadm set-tlvprop -p enabled=router syscapab
  2. Specify the management IP address for the mgmtaddr TLV unit.

    # lldpadm set-tlvprop -p ipaddr=192.168.1.2 mgmtaddr
  3. Display the TLV values of the agent properties.

    # lldpadm show-tlvprop
    TLVNAME    PROPERTY   PERM  VALUE        DEFAULT         POSSIBLE
    syscapab   supported  rw    bridge,      bridge,router,  other,router,
                                router,      station         repeater,bridge,
                                repeater                     wlan-ap,telephone,
                                                             docis-cd,station,
                                                             cvlan,svlan,tpmr
    syscapab   enabled    rw    router       none            bridge,router,
                                                             repeater
    mgmtaddr   ipaddr     rw    192.162.1.2  none            --

    The output includes the default values of the TLV units and also the possible values that can be set for the property.

For information about configuring per-agent TLV properties, see Chapter 6, Managing Converged Networks by Using Data Center Bridging.