How to obtain the IP address of a Windows Server v. Hyper-V virtual machine

Source: Internet
Author: User

This is a simple question that happened to be asked today, summed up here; if you do not manage through VMM there are two ways to get the IP address of the virtual machine.

The first method, of course, is easy to think of, that is, through the interface of Hyper-V Virtual Machine Manager, select the managed virtual machine and then directly through the Network tab can be seen, the following figure:

Of course, if you need a simpler way, of course, the PowerShell management Tools command line that is provided through Hyper-V rsat, it's quite rich to know that 164 cmdlet is available for Hyper-V in Windows Server 2012.

To know the IP address of a virtual machine in Hyper-V, you can use the following command:

See more highlights of this column: http://www.bianceng.cnhttp://www.bianceng.cn/Servers/virtualization/

Of course we can take out the array includes the IP address and the MAC address, it appears that the Get-vmnetworkadapter IP address field includes this array:

So, simply handle the first line to get the IP address we want:

See? It's as simple as this:

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.