Virtual I/O Server: Configuring LLDP

Virtual I/O Server: Configuring LLDP

This article briefly describes how to configure LLDP on a virtual I/O server. LLDP is implemented by the lldpd daemon and can be configured and controlled using the lldpctl command.

The Link Layer Discovery Protocol LLDP is implemented on virtual I/O servers by the lldpd service. When booting the virtual I/O server, the inittab entry rcvnet starts the script /etc/rc.vnet:

padmin> oem_setup_env
# lsitab rcvnet
rcvnet:23456789:wait:/etc/rc.vnet> /dev/console 2>&1 # Start lldp/ecpvdp daemons
#

The script starts both, lldpd (LLDP) and ecpvdpd (ECP and VDP). When booting, the following two lines are displayed on the console:

0513-059 The lldpd Subsystem has been started. Subsystem PID is 20250872.
0513-059 The ecpvdpd Subsystem has been started. Subsystem PID is 16515160.

The script enables LLDP on all shared ethernet adapters where the lldpsvc attribute is set to yes. By default, the attribute is set to no.

For queries and configuration changes the command lldpctl is available. We can use the command to show the ports on which LLDP is currently active:

# lldpctl show portlist
lldpctl: 0812-001 lldpd is currently not managing any ports
#

Since the attribute lldpsvc is set to no by default for all shared ethernet adapters, there are no ports where LLDP is active.

On our system there are the following shared ethernet adapters:

# lsdev -l ent\* | grep Shared
ent15 Available       Shared Ethernet Adapter
#

We set the attribute lldpsvc for this shared ethernet adapter to yes:

# chdev -l ent15 -a lldpsvc=yes
ent15 changed
#

The change must now be signaled to the lldpd. This is most easily done by the command lldpsync (shell script):

# lldpsync
#

LLDP should now be active for our shared ethernet adapter (ent15):

# lldpctl show portlist
ent15
# lldpctl show port ent15
Port: ent15
        TLVs:
                Chassis ID: XX:XX:XX:XX:XX:XX (MAC address)
                Port ID: ent15 (interface name)
                TTL: 120
                Port Description: ent15
                System Name: ms2-vio1
                System Description: AIX ms2-vio1 1 6 00XXXXXXXX00
                System Capabilities:
                        Capabilities:
                                Station Only
                        Enabled:
                                Station Only
                Management Address:
                        Address Subtype: 6 (802)
                        Management Address: XX:XX:XX:XX:XX:XX
                        Interface Subtype: ifIndex
                        Interface Number: 15
                        OID: not provided
                (EVB) EVB Configuration:
                        Capabilities:
                                Standard 802.1Q
                                Retransmission Exponent
                                ECP
                                VDP
                        Current Config:
                                Standard 802.1Q
                                Retransmission Exponent
                        VSIs supported: 0
                        VSIs configured: 0
                        RTE: 16
        Port Statistics:
                FramesOutTotal          7
                AgeoutsTotal            0
                FramesDiscardedTotal    0
                FramesInErrorsTotal     0
                FramesInTotal           6
                TLVsDiscardedTotal      0
                TLVsUnrecognizedTotal   0
#

The port statistics at the end of the output shows that the lldpd has already sent 7 LLDP packets over the port ent15 and has also received 6 LLDP packets. The neighboring system, a physical switch, has therefore already sent some LLDP packets and should therefore already be known. We take a quick look at the neighbor:

# lldpctl show neighbor ent15
MSAP: XX:XX:XX:XX:XX:XX Eth101/1/5
        Received on port: ent15
        TLVs:
                Chassis ID: XX:XX:XX:XX:XX:XX (MAC address)
                Port ID: Eth101/1/5 (locally assigned)
                TTL: 120
                Port Description: Ethernet101/1/5
                System Name: sw10
                System Description: Cisco Nexus Operating System (NX-OS) Software 9.2(2)
TAC support: http://www.cisco.com/tac
Copyright (c) 2002-2018, Cisco Systems, Inc. All rights reserved.
                System Capabilities:
                        Capabilities:
                                Bridge
                                Router
                        Enabled:
                                Bridge
                Management Address:
                        Address Subtype: 1 (IPv4)
                        Management Address: X.X.X.X
                        Interface Subtype: ifIndex
                        Interface Number: 83886080
                        OID: not provided
                Unrecongized TLV type 127
                (802.1) Port VLAN ID: 1
#

This is a Cisco switch and our shared ethernet adapter is connected to the port with ID Eth101/1/5.

If you have other shared ethernet adapters and you also want to use LLDP on these adapters, then set the attribute lldpsvc=yes and then update the lldpd by using the command lldpsync.

A german version is available here: https://powercampus.de/artikel/aix/virtual-i-o-server-konfiguration-lldp

To view or add a comment, sign in

More articles by Armin Schmidt

  • AIX: "sudo" or "sudo -i" does not work

    Newer sudo versions need entries in /etc/pam.conf, which are not present by default.

  • AIX Trusted Installation Reloaded

    Starting with AIX 7.3 TL1, there is a new procedure for AIX Trusted Installation that replaces the Digital Signature…

  • Some Download Links for AIX Software

    There are several sources for software for AIX. Depending on whether the software you are looking for is the operating…

    3 Comments
  • Connecting a Power 10 eBMC system to an HMC

    This blog post will show how to connect a Power 10 eBMC managed system to an HMC. The necessary steps are shown once…

    1 Comment
  • Status of LPARs

    With the LPAR tool, the status of one, several or all LPARs can be easily determined using the “lpar status” command…

    3 Comments
  • NTP Configuration on HMC with LPAR tool

    The current status of NTP on an HMC can then be displayed using “hmc lsntp“: $ hmc lsntp NAME   XNTP    XNTPSTATUS…

  • History Expansion bash

    Many AIX and UNIX users use bash as their preferred shell. Navigating in the history with the cursor keys is certainly…

    4 Comments
  • The Command chrctcp

    On AIX, the System Resource Controller (SRC) is used to control subsystems and subservers. Every AIX administrator is…

    2 Comments
  • Path to the executable of a running AIX process

    If a process was not started with an absolute path, it is surprisingly difficult to find out the absolute path for the…

    2 Comments
  • LPAR tool 1.7.0.1 is now available

    Version 1.7.

Others also viewed

Explore content categories