Windows server 2012 R2 DHCP failover配置

來源:互聯網
上載者:User

標籤:windows   server   解決方案   管理員   伺服器   

Windows Server 2012 中的DHCP 容錯移轉允許管理員部署具有原生高可用的 DHCP 服務,這一功能的主要目標如下:

Windows Server 2012 中的DHCP 容錯移轉允許管理員部署具有原生高可用的 DHCP 服務,這一功能的主要目標如下:


總是在商業網路上提供 DHCP 服務可用性。
 

如果一個 DHCP 伺服器無法再串連上,DHCP 用戶端可以通過聯絡商業網路上的另一台 DHCP 伺服器,延長它當前 IP 位址上的租約。
 

 

在 Windows Server(R) 2008 R2 中,為 DHCP 伺服器部署提供了兩個高可用性的選項。但這兩個解決方案都有各自的缺點:

 

  • Windows 容錯移轉叢集中的 DHCP。此選項將 DHCP 伺服器置於一個群集當中,該群集有一個附加的伺服器,它由 DHCP 服務進行配置,在主 DHCP 伺服器失效的時候承擔負荷。

      缺點:需要使用SAN儲存,增加部署成本和維護成本。

  • 拆分範圍 DHCP。拆分範圍 DHCP 使用兩個獨立的 DHCP 伺服器共用對範圍的職責。通常範圍內 70% 的地址被分配給主伺服器,剩下的 30% 被分配給備份伺服器。如果用戶端無法到達主伺服器,那麼它們可以從次要伺服器獲得一個 IP 配置。

          缺點:但如果用戶端需要續租一個IP地址,卻找不到原有的DHCP伺服器時,用戶端無法從另一台DHCP伺服器續租地址,只能等待地址到期。

 

 

DHCP failover 可以被配置成下列兩種模式:

  • 熱待命伺服器模式 Hot standby mode

  • 負載共用模式  Load-sharing mode

 

現在測試一下配置負載共用模式:

我有兩台DHCP伺服器:

win2012-1 (沒有加域,DHCP server) 10.10.10.11/24

win2012-2.demo.local    (Domain Controller, DNS, DHCP) 10.10.10.12/24

在DHCP 管理主控台,可以看到DHCP伺服器win2012-2.demo.local 已經配置好了IP scope (10.10.10.0 demo scope). 在DHCP服務win2012-1 上,還沒有配置IP scope.

650) this.width=650;" style="width:650px;height:427.013px;" alt="\" src="http://www.it165.net/uploadfile/2013/0423/20130423102519165.gif" border="0" width="650" />

 

右鍵 10.10.10.0 demo scope, 點擊  configure failover

 

650) this.width=650;" style="width:650px;height:425.967px;" alt="\" src="http://www.it165.net/uploadfile/2013/0423/20130423102519866.gif" border="0" width="650" />

 

選擇需要配置的區間(scope)

 

650) this.width=650;" style="width:509px;height:556px;" alt="\" src="http://www.it165.net/uploadfile/2013/0423/20130423102520604.gif" border="0" />

 

添加 partner server, win2012-1,  下一步

 

650) this.width=650;" style="width:504px;height:552px;" alt="\" src="http://www.it165.net/uploadfile/2013/0423/20130423102520346.gif" border="0" />

 

配置具體的failover setting, 我選擇Load Balance 模式,建立一個shared secret, 剩餘保持預設。這樣,兩個DHCP各負責"demo scope 10.10.10.0"50%的ip 地址。 

 

650) this.width=650;" style="width:513px;height:556px;" alt="\" src="http://www.it165.net/uploadfile/2013/0423/20130423102521281.gif" border="0" />

 

瀏覽設定,點擊完成。

 

650) this.width=650;" style="width:509px;height:557px;" alt="\" src="http://www.it165.net/uploadfile/2013/0423/20130423102522967.gif" border="0" />

 

DHCP failover 就配置完成了。

 

650) this.width=650;" style="width:507px;height:555px;" alt="\" src="http://www.it165.net/uploadfile/2013/0423/20130423102522364.gif" border="0" />

 

現在回到DHCP控制台,可以看到DHCP 伺服器win2012-1 已經有一個IP 範圍了。

650) this.width=650;" style="width:650px;height:430.023px;" alt="\" src="http://www.it165.net/uploadfile/2013/0423/20130423102523281.gif" border="0" width="650" />

 

在server win2012-1下,右鍵 IPv4 under , 點擊 failover 頁面, 可以看到相關的配置資訊。

 

650) this.width=650;" style="width:650px;height:429.532px;" alt="\" src="http://www.it165.net/uploadfile/2013/0423/20130423102524140.gif" border="0" width="650" />

 

也可以點擊edit,看詳細資料或者更改配置。

 

650) this.width=650;" style="width:650px;height:467.544px;" alt="\" src="http://www.it165.net/uploadfile/2013/0423/20130423102525568.gif" border="0" width="650" />

右鍵IPv4, 點擊 display statistics,可以看到當前的IP地址租用情況,這裡可以顯示兩個DHCP伺服器的相關情況。

 

650) this.width=650;" style="width:650px;height:424.767px;" alt="\" src="http://www.it165.net/uploadfile/2013/0423/20130423102526501.gif" border="0" width="650" />

 

如果想取消DHCP failover, 右鍵scope, 選擇 deconfigure failover

650) this.width=650;" style="width:650px;height:375.556px;" alt="\" src="http://www.it165.net/uploadfile/2013/0423/20130423102526107.gif" border="0" width="650" />


Windows server 2012 R2 DHCP failover配置

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.