VMM: IP-Address Pools: Unterschied zwischen den Versionen

Aus Wiki-WebPerfect
Wechseln zu: Navigation, Suche
(Die Seite wurde neu angelegt: „== Show IP-Address allocated to a IP-Address-Pool == <source lang="powershell>(Get-SCStaticIPAddressPool <"IP-PoolName">) | Get-SCIPAddress | select Name, Desc…“)
 
Zeile 1: Zeile 1:
 
== Show IP-Address allocated to a IP-Address-Pool ==
 
== Show IP-Address allocated to a IP-Address-Pool ==
<source lang="powershell>(Get-SCStaticIPAddressPool <"IP-PoolName">) | Get-SCIPAddress | select Name, Description, State, ObjectType </source>
+
<source lang="powershell">(Get-SCStaticIPAddressPool <"IP-PoolName">) | Get-SCIPAddress | select Name, Description, State, ObjectType </source>
  
  

Version vom 17. Oktober 2018, 15:30 Uhr

Show IP-Address allocated to a IP-Address-Pool

(Get-SCStaticIPAddressPool <"IP-PoolName">) | Get-SCIPAddress | select Name, Description, State, ObjectType


Allocate new IP-Address to a VMM-IPAddress-Pool (Show which is the next IP address that VMM allocate to a VM)

$VM = Get-SCVirtualMachine -Name <"VMName">
$vNICs = $VM.VirtualNetworkAdapters
$IPPool = Get-SCStaticIPAddressPool -Name <"IP-PoolName">
Grant-SCIPAddress -StaticIPAddressPool $IPPool -GrantToObjectType VirtualMachine -GrantToObjectID $vNICs[0].ID -Description $VM.Name


Revoke IP IP-Address

Get-SCIPAddress -IPAddress <IP-Address> | Revoke-SCIPAddress