設定 VMM 光纖中的靜態 IP 位址集區Set up static IP address pools in the VMM fabric

重要

已不再支援此版本的 Virtual Machine Manager (VMM),建議升級至 VMM 2019This version of Virtual Machine Manager (VMM) has reached the end of support, we recommend you to upgrade to VMM 2019.

本文說明如何在 System Center - Virtual Machine Manager (VMM) 網路網狀架構中,設定邏輯和 VM 網路的靜態 IP 位址集區。This article describes how to set up static IP address pools for logical and VM networks in the System Center - Virtual Machine Manager (VMM) networking fabric.

當您設定邏輯網路時,如果未使用 DHCP,則必須設定靜態 IP 位址集區。When you set up the logical network you'll need to configure a static IP address pool if you're not using DHCP. 在某些情況下,您只需要在邏輯網路上建立 IP 位址集區,而在其他情況下,您需要在邏輯和 VM 網路上建立集區︰In some circumstances you'll need to create IP address pools on the logical network only, and in others you'll need to create the pool on both the logical and VM networks:

  • 邏輯和 VM 網路上的集區:如果您設定進行網路虛擬化的邏輯網路,則需要在邏輯網路和 VM 網路上建立 IP 位址集區。Pool on logical and VM network: If you configure your logical network for network virtualization you'll need to create IP address pools on the logical network and the VM network.
  • 僅限邏輯網路上的集區:如果您是使用 VLAN 或無隔離,則可以使用 DHCP,或只在邏輯網路上建立 IP 位址集區。Pool on logical network only: If you're using VLAN or no isolation you can use DHCP or create IP address pools on the logical network only. 它們會自動在 VM 網路上變成可供使用。They'll automatically become available on the VM network.
  • 匯入的位址集區︰如果您透過廠商主控台使用外部網路,則會從廠商匯入 IP 位址集區,而且您不需要在 VMM 中建立它們。Imported address pools: If you are using external networks through a vendor console your IP address pools will be imported from the vendor and you don't need to create them in VMM.

建立邏輯網路的靜態位址集區Create a static address pool for a logical network

  1. 在 [邏輯網路和 IP 集區] 中,按一下邏輯網路 > [首頁] > [建立] > [建立 IP 集區] 。in Logical Networks and IP Pools click the logical network > Home > Create > Create IP Pool.

  2. 在 [建立靜態 IP 位址集區精靈] [名稱] > 中,指定名稱和描述。In Create Static IP Address Pool Wizard > Name specify a name and description. 確定已指出正確的邏輯網路。Make sure the correct logical network is indicated.

  3. 在 [網站] 中,選取以使用現有網站,然後選取 IP 子網路,或建立新的網站。In Network Site select to use an existing site and select the IP subnet, or create a new site.

    • 針對現有網站,選取要用來建立集區的網站和 IP 子網路。For an existing site select the site and IP subnet from which to create the pool.
    • 針對新的網站,指定網站名稱、指派給網站的 IP 子網路,以及相關的 VLAN 資訊。For a new site specify the site name, IP subnet to assign to the site, and VLAN information if relevant. 選取可存取這個網站的主機群組以及邏輯網路。Select the host groups that can access this site and the logical network.
  4. 如果您是使用網路虛擬化,則可以使用集區來支援多點傳送或廣播。If you're using network virtualization you can use the pool to support multicasting or broadcasting. 若要這樣做,請按一下 [建立多點傳送 IP 位址集區] ,然後選取您想要使用的 IP 子網路。To do this click Create a multicast IP address pool and select the IP subnet you want to use. 若要使用多點傳送或廣播,請注意︰To use multicasting or broadcasting note that:

    • 邏輯網路必須啟用網路虛擬化。The logical network must have network virtualization enabled.
    • VM 網路的 IP 通訊協定設定必須符合基礎邏輯網路的 IP 通訊協定設定。The IP protocol setting for the VM network must match the IP protocol settings for the underlying logical network. 在建立通訊協定設定之後,無法在 VMM 主控台中檢視該設定。You can't view the protocol setting in the VMM console after you've created it. 您需要執行 Get-SCVMMNEtwork -Name <VM network name> | Format -List Name, Isolation Type, PoolType 才能看到它。You'll need to run Get-SCVMMNEtwork -Name <VM network name> | Format -List Name, Isolation Type, PoolType to see it.
    • 設定這個功能之後,VM 網路上的多點傳送和廣播封包將會使用來自多點傳送 IP 位址集區的 IP 位址。After you've configured this feature multicast and broadcast packets on the VM network will use the IP addresses from the multicast IP address pool. VM 網路中的每個子網路都會從多點傳送集區取用一個 IP 位址。Each subnet in the VM network will consume one IP address from the multicast pool.
  5. 在 [IP 位址範圍] 中,輸入集區的開始和結束位址。In IP address range enter the start and end address for the pool. 它們必須包含在子網路內。They must be contained within the subnet. 在 [VIP 和保留的 IP 位址] 中,指定您要為 VIP 保留的 IP 位址範圍。In VIPs and reserved IP addresses specify IP address range you want to reserve for VIPs. 在負載平衡服務層中部署服務期間,會使用 VIPS。VIPS are used during deployment of a service in a load-balanced service tier. VMM 會自動將保留 VIP 位址範圍內的 VIP 指派給負載平衡器。VMM automatically assigns a VIP to the load balancer from the reserved VIP address range.

  6. 如果您想要指定一或多個預設閘道和計量,請按一下 [閘道] 中的 [插入] 。In Gateway click Insert if you want to specify one or more default gateways and the metric. 預設閘道位址必須落在與 IP 位址集區相同的子網路範圍內,但不需要是集區的一部分。The default gateway address must be in the same subnet range as the IP address pool but doesn't need to be part of the pool.

  7. 在 [DNS] 中,指定 DNS 資訊,包括 DNS 伺服器、連線的預設 DNS 尾碼以及 DNS 搜尋尾碼清單。In DNS specify DNS information, including DNS servers, the default DNS suffix for the connection, and the list of DNS search suffixes.

  8. 如果您想要輸入 WINS 伺服器的 IP 位址,請按一下 [WINS] 中的 [插入] 。In WINS click Insert if you want to enter the IP address of a WINS server. 您也可以選取是否啟用 NetBIOS over TCP/IP。You can also select whether to enable NetBIOS over TCP/IP. 如果位址範圍是由公用位址所構成,則不建議這麼做。This isn't recommended if the address range is made up of public addresses.

  9. 驗證 [摘要] 中的設定,然後按一下 [完成] 。In Summary verify the settings and click Finish. 工作顯示為 [已完成] 時,請確認 [邏輯網路和 IP 集區] 中的集區。When the job shows as Completed verify the pool in Logical Networks and IP Pools.

在 VM 網路上設定 IP 位址集區Set up an IP address pool on a VM network

  1. 按一下 [VM 和服務] > [VM 網路] > [首頁] > [顯示] > [VM 網路] > [VM 網路] 索引標籤。Click VMs and Services > VM Networks > Home > Show > VM Networks > VM Network tab.
  2. 在 [VM 網路和 IP 集區] 中,按一下 VM 網路 > [建立] > [建立 IP 集區] 。In VM Networks and IP Pools click the VM network Create > Create IP Pool.
  3. 在 [建立靜態 IP 位址集區精靈] [名稱] > 中,指定名稱和描述。In Create Static IP Address Pool Wizard > Name specify a name and description. 確定已指出正確的邏輯網路。Make sure the correct logical network is indicated. 檢查已選取正確的 VM 網路和子網路。Check that the correct VM network and subnet is selected.
  4. 在 [IP 位址範圍] 中,輸入集區的開始和結束位址。In IP address range enter the start and end address for the pool. 您可以在子網路中建立多個 IP 位址集區,但範圍不得重疊。You can create multiple IP address pools in a subnet but the ranges mustn't overlap. 在 [保留的 IP 位址] 中,指定您要為其他用途保留的任何範圍。In Reserved IP addresses specify any ranges you want to reserve for other purposes.
  5. 如果您想要指定一或多個預設閘道和計量,請按一下 [閘道] 中的 [插入] 。In Gateway click Insert if you want to specify one or more default gateways and the metric. 預設閘道位址必須落在與 IP 位址集區相同的子網路範圍內,但不需要是集區的一部分。The default gateway address must be in the same subnet range as the IP address pool but doesn't need to be part of the pool.
  6. 在 [DNS] 中,指定 DNS 資訊,包括 DNS 伺服器、連線的預設 DNS 尾碼以及 DNS 搜尋尾碼清單。In DNS specify DNS information, including DNS servers, the default DNS suffix for the connection, and the list of DNS search suffixes. 若為將加入 Active Directory 網域的虛擬機器,我們建議您使用群組原則來設定主要 DNS 尾碼。For virtual machines that will join an Active Directory domain, we recommend that you use Group Policy to set the primary DNS suffix. 這可確保設定 Windows 型虛擬機器,以主要 DNS 尾碼來登錄其 IP 位址時,Windows 型 DNS 伺服器將以動態方式登錄 IP 位址。This will ensure that when a Windows-based virtual machine is set to register its IP addresses with the primary DNS suffix, a Windows-based DNS server will register the IP address dynamically. 此外,使用群組原則可讓您擁有跨多個網域的 IP 位址集區。Additionally, the use of Group Policy enables you to have an IP address pool that spans multiple domains. 在此案例中,您不會想指定單一主要 DNS 尾碼。In this case, you would not want to specify a single primary DNS suffix.
  7. 如果您想要輸入 WINS 伺服器的 IP 位址,請按一下 [WINS] 中的 [插入] 。In WINS click Insert if you want to enter the IP address of a WINS server. 您也可以選取是否啟用 NetBIOS over TCP/IP。You can also select whether to enable NetBIOS over TCP/IP. 如果位址範圍是由公用位址所構成,則不建議這麼做。This isn't recommended if the address range is made up of public addresses.
  8. 驗證 [摘要] 中的設定,然後按一下 [完成] 。In Summary verify the settings and click Finish. 工作顯示為 [已完成] 時,請確認 [邏輯網路和 IP 集區] 中的集區。When the job shows as Completed verify the pool in Logical Networks and IP Pools.

從靜態位址集區釋放非使用中位址Release inactive addresses from the static address pool

您可以釋放非使用中位址。You can release inactive addresses. 當您這麼做時,VMM 會將位址傳回靜態 IP 或 MAC 位址集區,並將其視為可供重新指派。When you do VMM returns the address to the static IP or MAC address pool and considers it available for reassignment. 如果是下列情況,則會將位址視為非使用中︰An address is considered inactive if:

  • 從 VMM 管理中移除已透過裸機部署程序為其指派靜態 IP 位址的主機。A host that was assigned a static IP address through the bare-metal deployment process is removed from VMM management. 當您移除主機時,已靜態指派給主機上虛擬機器的任何 IP 和 MAC 位址也會標示為非使用中。When you remove the host, any IP and MAC addresses that were statically assigned to virtual machines on the host are also marked as inactive.
  • 虛擬機器進入遺失狀態,因為已在 VMM 外將其移除。A virtual machine goes into a missing state because it was removed outside VMM.
  1. 釋放 IP 位址:Release the IP addresses:

    • 若要釋放邏輯網路之集區中的位址,請按一下 [邏輯網路和 IP 集區] ,並展開邏輯網路,然後按一下 IP 位址集區。To release addresses in a pool in a logical network click Logical Networks and IP Pools expand the logical network and click the IP address pool.
    • 若要釋放 VM 網路之集區中的位址,請按一下 [邏輯網路和 IP 集區] ,並展開 VM 網路,然後按一下 IP 位址集區。To release addresses in a pool in a VM network click Logical Networks and IP Pools expand the VM network and click the IP address pool.
  2. 按一下 [首頁] > [內容] > [非使用中位址] ,然後選取您想要釋放的非使用中 IP 位址。Click Home > Properties > Inactive addresses and select the inactive IP addresses that you want to release.

後續步驟Next steps

建立 VM 網路Create a VM network