Locating the connection ID for an uplink/vmnic in a vSphere Distributed Switch
search cancel

Locating the connection ID for an uplink/vmnic in a vSphere Distributed Switch

book

Article ID: 308566

calendar_today

Updated On:

Products

VMware vSphere ESXi

Issue/Introduction

This article provides steps to locate the connection ID value for an uplink adapter in a vSphere Distributed Switch. The connection ID value can be useful when correlating log entries and for troubleshooting purposes.

Environment

VMware ESXi 4.1.x Installable
VMware vSphere ESXi 5.1
VMware vSphere ESXi 5.0

Resolution

To determine the connection ID for an uplink/vmnic:
  1. Connect to the ESXi host using SSH or Local Tech Support Mode. For more information, see Using Tech Support Mode in ESXi 4.1 and ESXi 5.x (1017910).
  2. Run this command to determine the dvport number assigned to the vmnic:

    # esxcfg-vswitch -l

    You see output similar to:

    DVS Name Num Ports Used Ports Configured Ports MTU Uplinks
    Test 512 20 512 1500 vmnic0,vmnic1

    DVPort ID In Use Client
    400 1 vmnic0
    404 1 vmnic1


  3. Note the DVPort ID associated with the vmnic. In the sample output, vmnic0 has a DVPort ID 400.
  4. Run this command to view the detailed information regarding the Distributed Switch:

    # net-dvs -l |less

  5. In the less utility, press / to initiate a search.
  6. Type the DVPort ID and press Enter.

    You see output similar to:

    port 400:
    com.vmware.common.port.alias = dvUplink1 , propType = CONFIG
    ........
    propType = CONFIG
    propType = CONFIG
    com.vmware.etherswitch.port.txUplink = normal , propType = CONFIG
    com.vmware.common.port.connectid = connect_ID, propType = CONFIG

    Where connect_ID is the connection ID for port 400.

    For example:

    com.vmware.common.port.connectid = 861310864, propType = CONFIG


Additional Information

Using Tech Support Mode in ESXi 4.1, ESXi 5.x, and ESXi 6.x