User Tools

Site Tools


aix:network_cdp

Cisco Discovery Protocol (CDP) on AIX

http://gibsonnet.net/blog/cgaix/

Starting with AIX 7.3 TL2, AIX systems that are using native SR-IOV adapters (logical ports) can now display information for Cisco network devices (switches) that they are directly connected to.

# oslevel -s
7300-02-01-2346

An SR-IOV logical port is assigned to this LPAR and is connected to my network.

# lsdev -Cc adapter | grep VF
ent1    Available 07-00 PCIe3 100/1000 Base-TX 4-port Converged Network Adapter VF (df1028e214103c04)

# ifconfig en1
en1: flags=1e084863,18c0<UP,BROADCAST,NOTRAILERS,RUNNING,SIMPLEX,MULTICAST,GROUPRT,64BIT,CHECKSUM_OFFLOAD(ACTIVE),LARGESEND,CHAIN>
        inet 10.8.12.11 netmask 0xffffff00 broadcast 10.8.12.255
         tcp_sendspace 131072 tcp_recvspace 65536 rfc1323 0

We start the cdpd daemon on AIX.

# startsrc -s cdpd
0513-059 The cdpd Subsystem has been started. Subsystem PID is 20054430.

We add the SR-IOV VF network interface (en1) to the cdpd monitoring framework so that it can receive data packets and messages from the physically connected Cisco switch, using CDP.

# cdpctl add en1
cdpctl: 0812-005 successfully added port en1

We then display the list of network interfaces that are configured to receive incoming data using CDP on this AIX LPAR.

# cdpctl show portlist
1.en1

Finally, we display the CDP information (such as the network switch and router capabilities) that are being received on the configured CDP-capable network interfaces, i.e. en1.

# cdpctl show port en1

Waiting for CDP advertise (default 60 seconds)......

Device ID               : route1-n1.local(AGE19190TKY)
Address                 : 10.10.10.2
Port ID                 : Ethernet3/43
Capabilities
                        : Router Level 3
                        : Level 2 Switch
Cisco switch OS Version : Cisco Nexus Operating System (NX-OS) Software, Version 9.3(9)
Platform                : N9K-C9508
Native VLAN ID          : 32
Trusted Bitmap          : N/A
AVVID untrusted ports   : N/A
Duplex                  : Full
MTU                     : 576
System Name             : route1-n1
System Object ID        : N/A
Management Addresses    : 10.1.2.10
 CDP record received on dev en1 also stored at /tmp/cdp_record_en1
aix/network_cdp.txt · Last modified: 2024/07/02 14:51 by manu