Solved

Identifying physical port on server to port in VMware

Posted on 2016-07-28
9
56 Views
Last Modified: 2016-11-22
Hello Experts - I need to move one of the four network cables from an ESX host to a different switch to get Websense working.  The NICs are labeled 1-4 on the Dell ESX host but in VMware they show up as vmnic0 through vmnic3.  I want to assume that port one on the ESX server matches vmnic0 in VMware but figured I'd check here before taking any chances since I need to make sure I don't interrupt any services.  Is there a reliable way I can be sure before I start pulling cables?
0
Comment
Question by:danbrown_
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 3
  • 2
9 Comments
 
LVL 10

Expert Comment

by:Richardson Porto
ID: 41733445
You can use CDP or LLDP (depending of your switch vendor) to see where which vmnic is connected. Take a look at the following KB article to see where to get that information: https://kb.vmware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalId=1007069
0
 

Author Comment

by:danbrown_
ID: 41733454
I'm using HP2920 switches so no CDP.  I'm not familiar with LLDP and didn't see any reference to that in the link, did I miss it?
0
 
LVL 10

Expert Comment

by:Richardson Porto
ID: 41733467
Since you have a HP switch, I believe that LLDP is enabled by default on switch, but LLDP on vSphere side will only be available if you have Distributed Switch. The following blog post shows how to enable LLDP on distributed switch: http://wahlnetwork.com/2012/07/17/utilizing-cdp-and-lldp-with-vsphere-networking/
0
Optimize your web performance

What's in the eBook?
- Full list of reasons for poor performance
- Ultimate measures to speed things up
- Primary web monitoring types
- KPIs you should be monitoring in order to increase your ROI

 
LVL 121
ID: 41733470
you should be able to use show mac address on HP switches.

which will show you the MAC Address, or use SNMP and PRTG or Observium, which will map ALL MAC addresses to all ports on your switches for FREE!
0
 

Author Comment

by:danbrown_
ID: 41733558
Hmm, I thought this was going to be dead simple!  So I'm on the HP switch and when I run a show mac-address I do see quite a few but not the mac for the port I'm looking for.  I know it's plugged in there for sure.  I saw a few articles that say to run a port scan on the network but the way Websense works in my case is a port mirror for the port where the router is connected.  The NIC is configured without an IP address on the Websense server so a port scan does nothing here.  Is there a command on the HP I can run that will force it to revel the mac of a device connected to a specific port?
0
 
LVL 121
ID: 41733583
does this "device" with an IP Address, have a MAC Address ?

if it has no IP Address, and IS NOT sending traffic, it will not hit the switch!
0
 

Author Comment

by:danbrown_
ID: 41733596
It does have a mac but no IP, I found it using the vcenter client:

vcenter
The Websense VM it is connected to has two NICs assisgned.  One is on the primary network shared with the other servers and the other is (supposed to be) plugged in to a port on the switch which mirrors the port where my router is connected.  This NIC on the server side has no IP address configured (IPv4 and IPv6 are disabled).  I have one of the ESX physical NICs dedicated to the task and just need to be sure I'm moving the right cable over.
0
 
LVL 121

Accepted Solution

by:
Andrew Hancock (VMware vExpert / EE MVE^2) earned 500 total points
ID: 41733608
okay, I see what's happening here, if no traffic is coming from that mac address 14:18:77:62:67:5f, it will not show.

if the VM is just attached to a vSwitch, again it will not show....

but why don't you just quickly create a management network on that vSwitch/Nic, temp IP Address, ping it from workstation, and then get the mac address, and work out physical port?

then remove the management network.
0
 

Author Closing Comment

by:danbrown_
ID: 41733616
Thanks Andrew, I was able to confirm I had the right port this way.
0

Featured Post

Optimize your web performance

What's in the eBook?
- Full list of reasons for poor performance
- Ultimate measures to speed things up
- Primary web monitoring types
- KPIs you should be monitoring in order to increase your ROI

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

HOW TO: Connect to the VMware vSphere Hypervisor 6.5 (ESXi 6.5) using the vSphere (HTML5 Web) Host Client 6.5, and perform a simple configuration task of adding a new VMFS 6 datastore.
In this article, I will show you HOW TO: Suppress Configuration Issues and Warnings Alert displayed in Summary status for ESXi 6.5 after enabling SSH or ESXi Shell.
Teach the user how to rename, unmount, delete and upgrade VMFS datastores. Open vSphere Web Client: Rename VMFS and NFS datastores: Upgrade VMFS-3 volume to VMFS-5: Unmount VMFS datastore: Delete a VMFS datastore:
This tutorial will walk an individual through the steps necessary to enable the VMware\Hyper-V licensed feature of Backup Exec 2012. In addition, how to add a VMware server and configure a backup job. The first step is to acquire the necessary licen…

628 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question