Windows XP Windows 7 Windows 2003 Windows Vista Windows 綜合教學 Linux 系統教學
Windows 10 Windows 8 Windows 2008 Windows NT Windows Server 電腦軟體教學

教您將 DHCP 資料庫移動到運行 Win 2003 計算機的方法(上)

編輯:Win7 系統基礎知識

前言

DHCP 資料庫檔案對伺服器正常運行起關鍵作用,尤其系統出現故障時,必須透過對資料庫檔案操作來還原恢復。本文簡要介紹如何將 DHCP (動態主機設定協定) 資料庫移動到運行 Windows Server 2003 的計算機上?

從運行 Windows NT Server 4.0 或 Windows 2000 伺服器導出 DHCP 資料庫

停止伺服器上的 DHCP 伺服器服務

  1. 依序點選「開始」→「執行」,「開啟」框輸入 cmd 點「確定」
  2. 命令提示字元下輸入 net stop "microsoft dhcp server" 按 Enter,收到「Microsoft DHCP Server 服務正在停止。Microsoft DHCP Server 服務已成功停止」訊息
  3. 輸入 exit 按 Enter

使用 Jetpack 公用程式壓縮 DHCP 資料庫

  1. 「開始」→「執行」輸入 cmd 點「確定」
  2. 命令提示字元輸入 cd %systemroot%\system32\dhcp 按 Enter
  3. 輸入 jetpack dhcp.mdb temp.mdb 按 Enter
  4. 成功壓縮後輸入 exit 按 Enter

使用 DHCP 匯出匯入公用程式 導出資料庫

可從 Windows 2000 Resource Kit Supplement 1 取得此公用程式。也可造訪 Microsoft 網站取得 Dhcpexim.exe。

導出資料庫:

  1. 安裝 Dhcpexim.exe 並啟動
  2. 「歡迎使用 DHCP 匯出匯入工具」畫面點「將本機服務配置導出到檔案」→「確定」
  3. 「檔名」框輸入導出檔名 (如 dhcpdatabase.txt) →「儲存」
  4. 點選要導出的範圍,勾選「導出前停用本機電腦上選定範圍」→「導出」→「確定」

停用伺服器上的 DHCP 伺服器服務

  1. 「開始」→「設定」→「控制台」→雙擊「服務」
  2. 「服務」清單中依序點選「Microsoft DHCP 伺服器」→「啟動」→「停用」→「確定」
  3. 若服務已啟動,點「停止」→「是」確認停止
  4. 點「關閉」關閉「服務」對話框

重要說明:將資料庫從運行 Windows 2000 伺服器成功移動到 Windows Server 2003 需使用 Dhcpexim.exe。若只需配置 (而非資料庫),可在要導出配置的 Windows 2000 伺服器使用指令:netsh dhcp server export C:\dhcp.txt all (其中 C:\dhcp.txt 為導出檔名與路徑)。

從運行 Windows Server 2003 伺服器導出 DHCP 資料庫

將 DHCP 資料庫與配置從運行 Windows Server 2003 伺服器移動到另一台 Windows Server 2003 伺服器:

  1. 「開始」→「執行」輸入 cmd →「確定」
  2. 輸入 netsh dhcp server export C:\dhcp.txt all 按 Enter
  3. 將檔案複製到新伺服器
  4. 輸入 netsh dhcp server import C:\dhcp.txt all 按 Enter

在運行 Windows Server 2003 伺服器上安裝 DHCP 伺服器服務

在現有 Windows Server 2003 伺服器上安裝 DHCP 伺服器服務:

  1. 「開始」→「控制台」→雙擊「新增或移除程式」
  2. 點選「新增/移除 Windows 元件」
Copyright © Windows教程網 All Rights Reserved