Windows XP Windows 7 Windows 2003 Windows Vista Windows 綜合教學 Linux 系統教學
Windows 10 Windows 8 Windows 2008 Windows NT Windows Server 電腦軟體教學
您现在的位置: Windows教程網 >> Windows教程 >  >> 電腦軟體教學 >> 伺服器技術 >> 伺服器綜合

DCRS-5526S 交換機 DHCP 伺服器配置實戰

編輯:伺服器綜合

實驗拓撲

實驗線路連接圖

配置目標

  • DHCP 地址池名稱:shenzhi
  • 租約期限:5 天
  • 排除地址:192.168.10.1 - 192.168.10.50
  • 網段:192.168.10.0/24
  • 預設閘道:192.168.10.10
  • DNS 伺服器:192.168.10.1
  • NetBIOS 名稱伺服器:192.168.10.2

完整配置指令

switch#config
switch(Config)#service dhcp
switch(Config)#hostname SwitchA
SwitchA(Config)#vlan 10
SwitchA(Config-Vlan10)#switchport interface ethernet 0/0/1-8
SwitchA(Config)#ip dhcp excluded-address 192.168.10.1 192.168.10.50
SwitchA(Config)#ip dhcp pool shenzhi
SwitchA(dhcp-shenzhi-config)#network-address 192.168.10.0
SwitchA(dhcp-shenzhi-config)#default-router 192.168.10.10
SwitchA(dhcp-shenzhi-config)#dns-server 192.168.10.1
SwitchA(dhcp-shenzhi-config)#netbios-name-server 192.168.10.2
SwitchA(dhcp-shenzhi-config)#lease 5

關鍵點提示

  1. 先啟用 service dhcp 全域功能。
  2. 用 excluded-address 保護靜態 IP 設備(閘道、伺服器、印表機等)。
  3. network-address 自動推導子網掩碼(此處為 255.255.255.0)。
  4. lease 5 單位為天。
  5. VLAN 10 下配置 8 個存取埠,對應實驗拓撲終端接入。
Copyright © Windows教程網 All Rights Reserved