This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
aix:network_cdp [2024/07/02 14:50] manu created |
aix:network_cdp [2024/07/02 14:51] (current) manu |
||
---|---|---|---|
Line 1: | Line 1: | ||
====== Cisco Discovery Protocol (CDP) on AIX ====== | ====== 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. | 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. | ||
- | <cli> | + | <cli prompt='#'> |
# oslevel -s | # oslevel -s | ||
7300-02-01-2346 | 7300-02-01-2346 | ||
Line 8: | Line 10: | ||
An SR-IOV logical port is assigned to this LPAR and is connected to my network. | An SR-IOV logical port is assigned to this LPAR and is connected to my network. | ||
- | <cli> | + | <cli prompt='#'> |
# lsdev -Cc adapter | grep VF | # lsdev -Cc adapter | grep VF | ||
ent1 Available 07-00 PCIe3 100/1000 Base-TX 4-port Converged Network Adapter VF (df1028e214103c04) | ent1 Available 07-00 PCIe3 100/1000 Base-TX 4-port Converged Network Adapter VF (df1028e214103c04) | ||
Line 19: | Line 21: | ||
We start the cdpd daemon on AIX. | We start the cdpd daemon on AIX. | ||
- | <cli> | + | <cli prompt='#'> |
# startsrc -s cdpd | # startsrc -s cdpd | ||
0513-059 The cdpd Subsystem has been started. Subsystem PID is 20054430. | 0513-059 The cdpd Subsystem has been started. Subsystem PID is 20054430. | ||
Line 25: | Line 27: | ||
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. | 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. | ||
- | <cli> | + | <cli prompt='#'> |
# cdpctl add en1 | # cdpctl add en1 | ||
cdpctl: 0812-005 successfully added port en1 | cdpctl: 0812-005 successfully added port en1 | ||
Line 31: | Line 33: | ||
We then display the list of network interfaces that are configured to receive incoming data using CDP on this AIX LPAR. | We then display the list of network interfaces that are configured to receive incoming data using CDP on this AIX LPAR. | ||
- | <cli> | + | <cli prompt='#'> |
# cdpctl show portlist | # cdpctl show portlist | ||
1.en1 | 1.en1 | ||
Line 38: | Line 40: | ||
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. | 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. | ||
- | + | <cli prompt='#'> | |
- | <cli> | + | |
# cdpctl show port en1 | # cdpctl show port en1 | ||