Solved

How to quickly test multiple port groups on a new ESXi 5.0 host

Posted on 2014-03-26
2
537 Views
Last Modified: 2014-04-06
Hey folks,

I just added a new host running ESXi 5 update 1 to a new cluster. This particular cluster isn't using distributed switches and it contains a bunch of VM Network port groups. In the past I had to create a test VM and manually test network communication, then manually change the network on the vmmic and test again by going into the VM network settings, changing IP information, and run some tests.

My question is this - Is there a tool that exist that makes this process less painful? It can be GUI or script.

Thanks.

KJ
0
Comment
Question by:kj_syence
2 Comments
 
LVL 118

Accepted Solution

by:
Andrew Hancock (VMware vExpert / EE MVE) earned 500 total points
ID: 39956686
There is not really a tool, but you could write a script using PowerCLI, that changes the Virtual Machine Portgroup the VM is connected to, and then use ping...

$OldNet = "VM Network1"
$NewNet = "VM Network1"

Open in new window


Get-VM |Get-NetworkAdapter |Where {$_.NetworkName -eq $OldNet } |Set-NetworkAdapter -NetworkName $NewNet -Confirm:$false

Open in new window

0

Featured Post

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

When it comes to security, there are always trade-offs between security and convenience/ease of administration. This article examines some of the main pros and cons of using key authentication vs password authentication for hosting an SFTP server.
In this article, I will show you HOW TO: Perform a Physical to Virtual (P2V) Conversion the easy way from a computer backup (image).
This video shows you how to use a vSphere client to connect to your ESX host as the root user. Demonstrates the basic connection of bypassing certification set up. Demonstrates how to access the traditional view to begin managing your virtual mac…
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…

746 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now