VMM: IP-Address Pools: Unterschied zwischen den Versionen

Aus Wiki-WebPerfect
Wechseln zu: Navigation, Suche
K (Admin verschob die Seite VMM: Add-IPReservation nach VMM: IP-Address Pools, ohne dabei eine Weiterleitung anzulegen)
Zeile 4: Zeile 4:
  
  
== Allocate new IP-Address to a VMM-IPAddress-Pool (Show which is the next IP address that VMM allocate to a VM) ==
+
== Allocate new IP-Address to a VMM-IPAddress-Pool (Show which is the next IP address that VMM allocate to a VM -> VMM selects the IP-Address) ==
 
<source lang="powershell">
 
<source lang="powershell">
 
$VM = Get-SCVirtualMachine -Name <"VMName">
 
$VM = Get-SCVirtualMachine -Name <"VMName">
Zeile 12: Zeile 12:
 
</source>
 
</source>
  
 +
== Allocate new defined IP-Address to a VMM-IPAddress-Pool ==
 +
<source lang="powershell">
 +
$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 -IPAddress <IP-Address>
 +
</source>
  
  

Version vom 17. Oktober 2018, 16:02 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 -> VMM selects the IP-Address)

$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

Allocate new defined IP-Address to a VMM-IPAddress-Pool

$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 -IPAddress <IP-Address>


Revoke IP-Address

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