Windows Server 2012 DHCP

來源:互聯網
上載者:User

標籤:windows server 2012 dhcp

   本次實驗所要示範的主要內容是DHCP,也就是動態主機協議,為主機動態分配地址,至於DHCP的安裝過程非常簡單,在這裡就不多闡述了,不會的同學可以自行百度。

   首先說一下本次實驗的大環境,一台DHCP伺服器同時為企業多個部門,不同網段分配IP地址,子網路遮罩,網關和DNS等配置,具體資訊如。

650) this.width=650;" style="background-image:none;padding-left:0px;padding-right:0px;border-top-width:0px;border-bottom-width:0px;border-left-width:0px;padding-top:0px;" title="無標題" border="0" alt="無標題" src="http://s3.51cto.com/wyfs02/M00/6D/E7/wKioL1Vu27nya3TmAAHOmjuLq40421.jpg" width="803" height="451" />

 

   首先我們為路由器的兩塊網卡配置IP。

650) this.width=650;" style="background-image:none;margin:0px;padding-left:0px;padding-right:0px;border-top-width:0px;border-bottom-width:0px;border-left-width:0px;padding-top:0px;" title="image" border="0" alt="image" src="http://s3.51cto.com/wyfs02/M00/6D/E7/wKioL1Vu27mRpNOnAAJ4IwzhA_0156.jpg" width="901" height="350" />

 

   兩塊網卡分別串連到兩個VMnet上,Ethernet0—VMnet1,Ethernet1—VMnet2。

650) this.width=650;" style="background-image:none;margin:0px;padding-left:0px;padding-right:0px;border-top-width:0px;border-bottom-width:0px;border-left-width:0px;padding-top:0px;" title="image" border="0" alt="image" src="http://s3.51cto.com/wyfs02/M01/6D/E7/wKioL1Vu27nBAednAADWaA5o8_A988.jpg" width="288" height="283" />

 

   網路設定成功後,需要安裝遠端存取,做軟路由,之前的實驗室有示範過。

650) this.width=650;" style="background-image:none;margin:0px;padding-left:0px;padding-right:0px;border-top-width:0px;border-bottom-width:0px;border-left-width:0px;padding-top:0px;" title="image" border="0" alt="image" src="http://s3.51cto.com/wyfs02/M01/6D/EB/wKiom1Vu2h6QF7rEAAJECTHW2P4906.jpg" width="599" height="507" />

 

   接下來我們配置DHCP伺服器,建立兩個範圍,由於本次示範是在工作群組環境中,所以範圍並不需要授權,如果是在域環境中,則需要授權。

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="圖片1" border="0" alt="圖片1" src="http://s3.51cto.com/wyfs02/M02/6D/EB/wKiom1Vu2h7jAf8PAAMw7wcyxjE300.jpg" height="536" />

 

   接下來我們要在路由器上面啟用DHCP中繼,來允許DHCP包的通過,Server01工具—路由和遠端存取—IPV4—右鍵常規—新增路由協議。

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="無標題" border="0" alt="無標題" src="http://s3.51cto.com/wyfs02/M00/6D/E7/wKioL1Vu27mT6GmTAAKCuA66SAs577.jpg" height="514" />

 

   選擇DHCP Relay Agent。

650) this.width=650;" style="background-image:none;border-bottom:0px;border-left:0px;margin: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/6D/E7/wKioL1Vu27rTBTYdAAD33PA472A577.jpg" height="507" />

 

   DHCP中繼代理開啟後,我們右鍵DHCP中繼代理—新增介面。

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="無標題" border="0" alt="無標題" src="http://s3.51cto.com/wyfs02/M02/6D/E7/wKioL1Vu27qS7MOJAAGWsNah9ds355.jpg" height="510" />

 

   注意這裡的介面一定要選擇和DHCP不是一個網段的那塊網卡。

650) this.width=650;" style="background-image:none;border-bottom:0px;border-left:0px;margin: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/6D/E7/wKioL1Vu27rBqtafAADUL3OYU_g830.jpg" height="509" />

 

   這裡預設下一步。

650) this.width=650;" style="background-image:none;border-bottom:0px;border-left:0px;margin: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/6D/EB/wKiom1Vu2h-RJfCLAAED34RBy-c669.jpg" height="588" />

 

   顯示已啟動就說明DHCP中繼代理成功了。

650) this.width=650;" style="background-image:none;border-bottom:0px;border-left:0px;margin: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/6D/EB/wKiom1Vu2h-iJseBAAG4c__-TSY583.jpg" height="341" />

 

   最後我們還有為DHCP中繼代理配置一個伺服器的地址,右鍵DHCP中繼代理—屬性—伺服器位址是DHCP的IP地址,填好後先點擊添加,然後再確定。

650) this.width=650;" style="background-image:none;border-bottom:0px;border-left:0px;margin: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/6D/EB/wKiom1Vu2h_AFABZAAEmxfR8tOk218.jpg" height="591" />

 

   配置結束後我們進行最後的測試,首先把Server03的IP擷取方式改為自動。

650) this.width=650;" style="background-image:none;border-bottom:0px;border-left:0px;margin: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/6D/EB/wKiom1Vu2h-jL9_9AAJ_b7j_kQw942.jpg" height="506" />

 

   按照實驗的目的,Server03應該擷取到來自DHCP伺服器分配的192.168.10.0 /24這個網段的一個IP,我們設定的位址範圍是192.168.10.100—200 /24,我們通過命令列ipconfig來查看。

650) this.width=650;" style="background-image:none;border-bottom:0px;border-left:0px;margin: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/6D/EB/wKiom1Vu2h_Rt8usAAHtDfHNIAQ764.jpg" height="368" />

 

   Server03沒有問題之後,我們對Server04做同樣的操作,設定網路IP擷取方式為自動。

650) this.width=650;" style="background-image:none;border-bottom:0px;border-left:0px;margin: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/6D/EB/wKiom1Vu2iDACUF7AAHW3dgitE0873.jpg" height="417" />

 

   然後用命令列查看。

650) this.width=650;" style="background-image:none;border-bottom:0px;border-left:0px;margin: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/6D/E7/wKioL1Vu27uSzJfNAAKHjgwhGYg020.jpg" height="428" />

 

   本次實驗到此結束。

本文出自 “jinning的部落格” 部落格,轉載請與作者聯絡!

Windows Server 2012 DHCP

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在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.