?
Solved

How to determine and setup IP, MAC address in both physical and virtual machines

Posted on 2011-05-08
8
Medium Priority
?
904 Views
Last Modified: 2012-06-27
Developing a small production datacenter and as we deploy virtual machine after machine, we're getting the knack for P2V and now looking to wholesale virtualization of entire enterprise as part of modernization (ERP system is running on HPUX 10.2 from ~1994.)  All the backstory to reinforce that in general we're good at keeping systems healthy and recovering from disaster and getting good at virtualization.  The more we know the more we go for.

The problem/question as we start hardening up the new server farm (more like patio garden for some but big to us); how do we access and know what all the physical and virtual IP and MAC address informationnis?

We'll have pieced together as many as 10 physical servers and an NAS storage unit and most of them have two NIC's apiece; then many of the virtual machines were physical conversions and they have networking "memories" of their physical self and then virtual NIC's added during P2V process.

Bottom line is we're grappling with how to apply physical NIC, MAC & switch thinking in our new virtual world and in several instances we can't get virtual machines to connect normally outside their new environment.  Is there or is there a better way to know and/or static assign physical IP and MAC and virtual IP and MAC assignments in all cases?
0
Comment
Question by:VirtualDallas
  • 5
  • 3
8 Comments
 
LVL 125
ID: 35716352
If you look at the information of the network interface card in properties of the virtual machine you can find out the virtual network interface assigned to the Virtual Machine MAC address, and you can also if you wish assign a static MAC address there also.

This is by using the vSphere Client GUI.

Also, using a third party too for free Veam Free Reporter, you can run reports of the same http://www.veeam.com/vmware-esx-reporter-free.html.

0
 
LVL 125

Accepted Solution

by:
Andrew Hancock (VMware vExpert / EE MVE^2) earned 1000 total points
ID: 35716391
Personally, I also think this is one of vSphere vCenter biggest weaknesses of managing a large estate of virtual machines the ability to report on machine configurations.

VMware Community Pack Networking Info
VMware Community Pack Networking Info
VMware Community Pack Networking Info

VMware Community Pack Networking Info



I would recommend using the following, also VMware recommends the use of PowerCLI, which is PowerShell interface with vSphere-specific additions. You'll be able to find IP addresses and MAC Addresses very easily, and Network Information available to you at a glance.

http://communities.vmware.com/community/vmtn/server/vsphere/automationtools/powercli

One of the simplest PowerCLI examples, and something which is actually extremely useful on its own, is the Get-VM cmdlet. Which lists VMs.

PowerCLI can be a bit overwhelming to use,  But it can be enhanced with a nice toolset and a library of preconfigured scripts to jump-start your mass changes, which is possible with PowerGUI

http://powergui.org/index.jspa

and

VMware Community Pack

http://www.virtu-al.net/featured-scripts/vmware-powerpack/

It's also worth looking at The free VMware Guest Console

http://labs.vmware.com/flings/vgc

The free VMware Guest Console, an experimental application created by VMware Labs, is a great tool for managing vSphere VM processes and files. You can view, sort and kill processes across all VMs, and you can also run a script on all Windows or Linux VMs.
0
 

Author Comment

by:VirtualDallas
ID: 35716638
Still digesting all the information but appears huge help.  Glad i wasn't just too old school to understand things like "assinging" a MAC address.  Still a freaky concept, but thats life in vworld.  At first (second and third) glance most above adrresses finding & knowing IP & MAC.  Anything that simply assigns IP to physical and virtual?   Apolgies if its there and just haven't dug in deep enough and thank you.  Again, huge help.
0
Who's Defending Your Organization from Threats?

Protecting against advanced threats requires an IT dream team – a well-oiled machine of people and solutions working together to defend your organization. Download our resource kit today to learn more about the tools you need to build you IT Dream Team!

 
LVL 125
ID: 35716674
If you want to assign MAC addresses to a Virtual Machine (I would strongly advise against doing this unless you have reasons, Port Security, Network Load Balancing for Uni or Multicast), you must do it via vSphere Client GUI, check the Virtual Machine properties, edit the Network Interface, and specify the MAC address you want to use there, but is MUST be a valid VMware MAC address of the format 00:50:56:00:00:00 to 00:50:56:3F:FF:FF.

Generally, we just let VMware auto generate them, and record them in database.

http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalId=507

http://virtrix.blogspot.com/2007/04/vmware-configuring-static-mac-address.html

http://www.networknet.nl/apps/wp/archives/787

As for changing the physical MAC address of the host, this is not configured by ESX, it's a hardware function.
0
 

Author Comment

by:VirtualDallas
ID: 35716788
OK; have studied the links on your post and understood about MAC addressing, not a need but a curosity.  Will avoid.  Static addressing IP's is the one more common on physical machines and elusive in vSphere.  But before I beat it to death; we'll go ahead with Power \GUI & Community Pack.  With some patience & practice, I bet we'll get it, now that you've guided us to them and counseled that it wasn't "just us" in the virtual IP addressing challenge.  Borh are good to know and huge help.  Thank You.
0
 
LVL 125
ID: 35716847
But when you install a physical server, you just "accept" it's mac address, you don't usually change it!

So when creating a MAC address, one is generated for you, which you can record, so is there any difference between physical and virtual?
0
 

Author Comment

by:VirtualDallas
ID: 35716983
I guess the piece I'm missing is the two NIC's on one server; but I havent studied NIC teaming enough and haven't applied the 2nd NIC on sandbox installs, yet.  What I'm finding is MAC Addresses on my Domain Controller tied to IP's that DHCP assigned.  The IP's are virtual machine access IP's, but to confound all; we're running an .ovf of an IBM Server technology called Cast Iron which doesn't expose its operating system through the console well.  So Cast Iron is not connecting and not sure where it got/gave DHCP the MAC addresses for the IP's and would prefer not to use DHCP at all; but struggling to know where all the virtual addresses were coming from and you seemed to help enough to get me back on track, tomorrow.

Bottom line is ist a combination of taking a big bit in new IBM Data Integration technology, upgrading an acient ERP system and virtualizing all when we never have before.  Good news is we're a resourcefull bunch here in Tesas and with genuine help from talented folks like yourself, we'll get 'er done.
0
 
LVL 125
ID: 35716995
any other specific VMware issues there are enough VMware Experts here to answer your questions. So just post your questions.
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

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.
In this article we will learn how to backup a VMware farm using Nakivo Backup & Replication. In this tutorial we will install the software on a Windows 2012 R2 Server.
This Micro Tutorial walks you through using a remote console to access a server and install ESXi 5.1. This example is showing remote access and installation using a Dell server. The hypervisor is the very first component of your virtual infrastructu…
Monitoring a network: how to monitor network services and why? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the philosophy behind service monitoring and why a handshake validation is critical in network monitoring. Software utilized …
Suggested Courses

616 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