標籤:windows server 2012 r2 active directory(活動目錄)實驗三
在實驗二的結尾中,提到了AD和DNS部署在同一台伺服器上的弊端,只有這一台伺服器來維持正常的生產,風險極大,一旦這台伺服器的任何一個地方出了問題,那我們整個域環境就完全癱瘓了,所以為了防止這樣的情況發生,我們需要做一個備份,或者說是一台額外的網域控制站。
部署額外網域控制站的好處其實挺多的,可以實現網域控制站的容錯,即使主網域控制站出了問題,我們也不用擔心,額外的網域控制站會繼續代替主網域控制站來完成驗證工作,保持整個域環境的正常運行,而且有了兩台網域控制站同時工作,域環境的驗證速度會加快很多,有利於提高生產效率,額外的網域控制站也會替主網域控制站分擔負載,讓整個域保持在一個相對輕鬆的運行狀態中。
有了額外控制器必然是好事,但我們要知道,部署了額外網域控制站之後,兩台伺服器是同時工作的,想要讓額外網域控制站實現完美的容錯,那就必須保證兩台網域控制站之間的資料時刻保持同步。
首先仍然說明實驗需求和目的,本次實驗需要兩台虛擬機器,Server01作為主網域控制站,Server02作為Server01的額外網域控制站,實驗中仍然會省略一些之前實驗做過的細節,不懂的朋友請翻看著之前的實驗。
下面開始我們的實驗,Server01需要先把DNS指向自己。
650) this.width=650;" style="background-image:none;border-bottom:0px;border-left:0px;padding-left:0px;padding-right:0px;border-top:0px;border-right:0px;padding-top:0px;" title="image" border="0" alt="image" src="http://s3.51cto.com/wyfs02/M01/5C/1C/wKioL1UaxQPhpbbWAAHVma2k-hs368.jpg" height="550" />
然後安裝AD網域服務。
650) this.width=650;" style="background-image:none;border-bottom:0px;border-left:0px;padding-left:0px;padding-right:0px;border-top:0px;border-right:0px;padding-top:0px;" title="image" border="0" alt="image" src="http://s3.51cto.com/wyfs02/M02/5C/1C/wKioL1UaxQ7Qa5sBAAKOTYwCQ2U878.jpg" height="554" />
安裝成功後,提升為網域控制站。
650) this.width=650;" style="background-image:none;border-bottom:0px;border-left:0px;padding-left:0px;padding-right:0px;border-top:0px;border-right:0px;padding-top:0px;" title="image" border="0" alt="image" src="http://s3.51cto.com/wyfs02/M00/5C/1C/wKioL1UaxRnCCKfcAAL98PjkYoo265.jpg" height="505" />
安裝了AD網域服務之後,原生DNS可能會被更改,我們需要去檢查,並保持DNS指向自己,可以正常解析。
650) this.width=650;" style="background-image:none;border-bottom:0px;border-left:0px;padding-left:0px;padding-right:0px;border-top:0px;border-right:0px;padding-top:0px;" title="image" border="0" alt="image" src="http://s3.51cto.com/wyfs02/M01/5C/1C/wKioL1UaxSLj2HZCAAGEfGZu5KA781.jpg" height="450" />
接下來是Server02的配置,同樣是改DNS,使DNS指向Server01,不然提升域控的時候會出錯。
650) this.width=650;" style="background-image:none;border-bottom:0px;border-left:0px;padding-left:0px;padding-right:0px;border-top:0px;border-right:0px;padding-top:0px;" title="image" border="0" alt="image" src="http://s3.51cto.com/wyfs02/M02/5C/1C/wKioL1UaxTahTT5jAAJ6JOo5EfI265.jpg" height="569" />
安裝成功後,提升為網域控制站,在這裡需要注意下,由於Server01是主網域控制站,所以我們已經建立好了林和域,Server02的額外網域控制站,只需要選擇加入現有域就可以了。
650) this.width=650;" style="background-image:none;border-bottom:0px;border-left:0px;padding-left:0px;padding-right:0px;border-top:0px;border-right:0px;padding-top:0px;" title="image" border="0" alt="image" src="http://s3.51cto.com/wyfs02/M00/5C/1C/wKioL1UaxVXzrQ3mAAHIq0h9_FM209.jpg" height="570" />
在填寫憑據的時候,一定要填寫網域系統管理員的賬戶。
650) this.width=650;" style="background-image:none;border-bottom:0px;border-left:0px;padding-left:0px;padding-right:0px;border-top:0px;border-right:0px;padding-top:0px;" title="image" border="0" alt="image" src="http://s3.51cto.com/wyfs02/M01/5C/1C/wKioL1UaxV7wjg9uAADR-SPNzQA957.jpg" height="306" />
成功提升網域控制站之後,登入並檢查管理工具是否工作正常。
650) this.width=650;" style="background-image:none;border-bottom:0px;border-left:0px;padding-left:0px;padding-right:0px;border-top:0px;border-right:0px;padding-top:0px;" title="image" border="0" alt="image" src="http://s3.51cto.com/wyfs02/M02/5C/1C/wKioL1UaxW_isCaVAAK6-AirgM4556.jpg" height="367" />
檢查DNS工作是否正常。
650) this.width=650;" style="background-image:none;border-bottom:0px;border-left:0px;padding-left:0px;padding-right:0px;border-top:0px;border-right:0px;padding-top:0px;" title="image" border="0" alt="image" src="http://s3.51cto.com/wyfs02/M00/5C/22/wKiom1UaxEKQCGU8AAGOjVklyoU382.jpg" height="334" />
檢查共用資料夾是否工作正常。
650) this.width=650;" style="background-image:none;border-bottom:0px;border-left:0px;padding-left:0px;padding-right:0px;border-top:0px;border-right:0px;padding-top:0px;" title="image" border="0" alt="image" src="http://s3.51cto.com/wyfs02/M00/5C/22/wKiom1UaxFTCFUwVAAGG4KPm97s743.jpg" height="448" />
所有的檢查工作都正常後,我們需要兩台網域控制站的首選DNS指向對方,備用DNS指向自己。
650) this.width=650;" style="background-image:none;border-bottom:0px;border-left:0px;padding-left:0px;padding-right:0px;border-top:0px;border-right:0px;padding-top:0px;" title="image" border="0" alt="image" src="http://s3.51cto.com/wyfs02/M01/5C/22/wKiom1UaxGSTWvuwAAGCOB2uqcs800.jpg" height="484" />650) this.width=650;" style="background-image:none;border-bottom:0px;border-left:0px;padding-left:0px;padding-right:0px;border-top:0px;border-right:0px;padding-top:0px;" title="image" border="0" alt="image" src="http://s3.51cto.com/wyfs02/M02/5C/22/wKiom1UaxHSiJ64KAAFkbDGscLE252.jpg" height="484" />
接下來我們測試兩台網域控制站之間的同步是否正常,開啟兩台伺服器的Active Directory使用者和電腦。
650) this.width=650;" style="background-image:none;border-bottom:0px;border-left:0px;padding-left:0px;padding-right:0px;border-top:0px;border-right:0px;padding-top:0px;" title="image" border="0" alt="image" src="http://s3.51cto.com/wyfs02/M00/5C/22/wKiom1UaxIayNkZfAAMYwCEGTh4567.jpg" height="527" />
在Server01上面建立名為HR的組織單位。
650) this.width=650;" style="background-image:none;border-bottom:0px;border-left:0px;padding-left:0px;padding-right:0px;border-top:0px;border-right:0px;padding-top:0px;" title="image" border="0" alt="image" src="http://s3.51cto.com/wyfs02/M01/5C/22/wKiom1UaxJDilbGwAAIPofzug3o332.jpg" height="545" />
再建立兩個使用者tom和jerry。
650) this.width=650;" style="background-image:none;border-bottom:0px;border-left:0px;padding-left:0px;padding-right:0px;border-top:0px;border-right:0px;padding-top:0px;" title="image" border="0" alt="image" src="http://s3.51cto.com/wyfs02/M02/5C/22/wKiom1UaxKSzi8rDAAJ_Qkc_hRs822.jpg" height="365" />
Server01上面已經建立好了組織單位和使用者,接下來我們去重新整理Server02,看看資料有沒有同步。
650) this.width=650;" style="background-image:none;border-bottom:0px;border-left:0px;padding-left:0px;padding-right:0px;border-top:0px;border-right:0px;padding-top:0px;" title="image" border="0" alt="image" src="http://s3.51cto.com/wyfs02/M01/5C/22/wKiom1UaxLLT0FhBAAI_uXHciqQ874.jpg" height="482" />
建立新的使用者的資料已經成功同步了,而且幾乎沒有延遲,接下來我們刪除Server01上名為HR的組織單位和裡面的使用者tom\jerry。
650) this.width=650;" style="background-image:none;border-bottom:0px;border-left:0px;padding-left:0px;padding-right:0px;border-top:0px;border-right:0px;padding-top:0px;" title="image" border="0" alt="image" src="http://s3.51cto.com/wyfs02/M00/5C/22/wKiom1UaxNfQN6O9AALyoA-EXXQ002.jpg" height="317" />
重新整理Server02,查看資料有沒有正常同步。
650) this.width=650;" style="background-image:none;border-bottom:0px;border-left:0px;padding-left:0px;padding-right:0px;border-top:0px;border-right:0px;padding-top:0px;" title="image" border="0" alt="image" src="http://s3.51cto.com/wyfs02/M01/5C/22/wKiom1UaxPGjcSV_AAKu_FXXrBs533.jpg" height="371" />
由此可以看得出來,兩台網域控制站之間的工作正常,效率很高,現實生產環境中有很多這樣的配置,效果很好。
(聲明:實驗中的uec.com僅為示範所用。)
本文出自 “jinning的部落格” 部落格,轉載請與作者聯絡!
Windows Server 2012 R2 Active Directory(活動目錄)實驗三