Configuring Hyper-v Host Network Adapters for ISCSI Storage Connectivity with Powershell .

chinny chukwudozie, i.t. pro.

Windows Server 2012 R2 with PowerShell 4.0 has hugely expanded support for configuring multiple NICs on a Cluster/ISCSI Initiator node via command line. After deploying multiple Network Interface Cards on my Hyper-v host, it took me a while to figure out how to properly configure the NICS with PowerShell .

Prior to Windows Server 2012, NIC configurations could be accomplished with the GUI, Netsh command line utility or mainly WmiObject classes. The following cmdlets enabled me complete the configuration of multiple NICs on a cluster node:

List Available NICs on Host Server.

Get-NetAdapter -Physical

Capture

Rename Network Adapter for Storage/ISCSI Connection.

Get-NetAdapter -InterfaceIndex 15 | Rename-NetAdapter -NewName StorageNIC1

Capture_Edited

Set Private IP Address on Selected NIC.

Get-NetAdapter -InterfaceIndex 14 | New-NetIPAddress -IPAddress 192.168.3.8 -PrefixLength 24 -AddressFamily ipv4

Capture2

Disable Network Adapter Bindings.

Usually the Storage Network Adapter needs just the IPv4 TcpIp binding enabled:

PS C:\ Get-NetAdapterBinding -Name StorageNIC1

Name DisplayName ComponentID Enabled

View original post 345 more words

Advertisements

About Tiens van Zyl

I am a Microsoft Exchange Engineer for a local IT Outsource company assisting with 3rd line support to our Enterprise clients and Hosted Exchange Service. I'm a passionate gamer and also a very active musician. View all posts by Tiens van Zyl

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: