Identify the network interface controllers to be used for the management or compute traffic and assign the IP address to the first port.
Note: This step is not needed if you have DHCP in your environment. Ensure the hosts are assigned IPs in the correct VLAN.
Log in to the host console of each system using iDRAC virtual console and assign host IPs and respective VLANs.
- Disable the DHCP on the management adapters.
Set-NetIPInterface -InterfaceAlias "Integrated NIC 1 Port 1-1",”Integrated NIC 1 Port 2-1” -Dhcp Disabled
- Disable disconnected network interface controllers.
Get-NetAdapter | Where-Object {$_.status -eq "disconnected"} | Disable-NetAdapter
- Assign management IP address to the first port.
New-NetIPAddress -InterfaceAlias "Integrated NIC 1 Port 1-1" -IPAddress 192.168.11.11 -DefaultGateway 192.168.10.1 -PrefixLength 24 -AddressFamily IPv4 –Verbose
- Set VLAN ID for management adapters.
Get-NetAdapter -Name "Integrated NIC 1 Port 1-1" | Set-NetAdapter -VlanID 202 -Confirm: $false
-
Set a DNS IP address.
Set-DnsClientServerAddress -InterfaceAlias "Integrated NIC 1 Port 1-1" -ServerAddresses 192.168.11.50, 192.168.11.51