XenServer-LLDP
Jump To: Support > KB > Citrix > XenServer > LLDP
Using LLDP to determine what switch port each NIC is connected to
Determine which interface is which
The interface-rename
command is helpful to list all the physical network ports, including where they are located in the machine:
# interface-rename -l Name MAC PCI ethN Phys SMBios Driver Version Firmware eth0 11:22:33:44:55:00 0000:01:00.0[0] eth0 em1_1 Integrated NIC 1 igb 5.3.5.20 1.67, 0x80000faa, 19.5.12 eth1 11:22:33:44:55:01 0000:01:00.1[0] eth1 em2_1 Integrated NIC 2 igb 5.3.5.20 1.67, 0x80000faa, 19.5.12 eth2 11:22:33:44:55:02 0000:01:00.2[0] eth2 em3_1 Integrated NIC 3 igb 5.3.5.20 1.67, 0x80000faa, 19.5.12 eth3 11:22:33:44:55:03 0000:01:00.3[0] eth3 em4_1 Integrated NIC 4 igb 5.3.5.20 1.67, 0x80000faa, 19.5.12 eth4 11:22:33:44:55:04 0000:03:00.0[0] eth4 p3p0_1 PCIe Slot 3 ixgbe 5.5.2 0x8000095d, 19.5.12 eth5 11:22:33:44:55:05 0000:03:00.1[0] eth5 p3p0_1 PCIe Slot 3 ixgbe 5.5.2 0x8000095d, 19.5.12 eth6 11:22:33:44:55:06 0000:81:00.0[0] eth6 p2p0_1 PCIe Slot 2 igb 5.3.5.20 1.67, 0x80000fb7, 19.5.12 eth7 11:22:33:44:55:07 0000:81:00.1[0] eth7 p2p0_1 PCIe Slot 2 igb 5.3.5.20 1.67, 0x80000fb7, 19.5.12 eth8 11:22:33:44:55:08 0000:81:00.2[0] eth8 p2p0_1 PCIe Slot 2 igb 5.3.5.20 1.67, 0x80000fb7, 19.5.12 eth9 11:22:33:44:55:09 0000:81:00.3[0] eth9 p2p0_1 PCIe Slot 2 igb 5.3.5.20 1.67, 0x80000fb7, 19.5.12
Enabling processing of received LLDP packets on an interface
# lldptool -L -i eth0 adminStatus=rx adminStatus = rx
Viewing the neighbour status of an interface
# lldptool -t -n -i eth0 Chassis ID TLV MAC: 01:23:45:67:89:ab Port ID TLV Local: Eth101/1/36 Time to Live TLV 120 Port Description TLV Ethernet101/1/36 System Name TLV MySwitchName System Description TLV Cisco Nexus Operating System (NX-OS) Software TAC support: http://www.cisco.com/tac Copyright (c) 2002-2013, Cisco Systems, Inc. All rights reserved. System Capabilities TLV System capabilities: Bridge Enabled capabilities: Bridge Management Address TLV MAC: aa:bb:cc:dd:ee:ff Ifindex: 83886080 CIN DCBX TLV Control TLV: SeqNo: 1, AckNo: 0 LAN Logical Link TLV: Enabled, Not Willing, No Error Link is up Cisco 4-wire Power-via-MDI TLV 4-Pair PoE not supported Spare pair Detection/Classification not required PD Spare pair Desired State: Disabled PSE Spare pair Operational State: Disabled Port VLAN ID TLV PVID: 11 End of LLDPDU TLV