思科路由器做DHCP服務器配置

Router>en
Router#ip dhcp ?
% Unrecognized command
Router#conf
Router#configure ter
Router#configure terminal
Enter configuration commands, one per line.  End with CNTL/Z.
Router(config)#ip
Router(config)#ip dhcp ?
  excluded-address  Prevent DHCP from assigning certain addresses
  pool              Configure DHCP address pools
Router(config)#ip dhcp poo
Router(config)#ip dhcp pool globe                                      #定義一個名稱爲globe的地址池
Router(dhcp-config)#netwo
Router(dhcp-config)#network 192.168.1.0 255.255.255.0                #定義地址網段
Router(dhcp-config)#defa
Router(dhcp-config)#default-router 192.168.1.254                           #網關地址
Router(dhcp-config)#dns
Router(dhcp-config)#dns-server 8.8.8.8                                               #DNS地址
Router(dhcp-config)#ip dhcp excl
Router(dhcp-config)#ip dhcp exclud
Router(dhcp-config)#ip dhcp excluded-address 192.168.1.200 192.168.1.254          #不開放地址範圍
Router(config)#sho
Router(config)#show
Router(config)#^Z
Router#
%SYS-5-CONFIG_I: Configured from console by console

Router#
Router#sho
Router#show ru
Router#

擴展:

子地址池:在當前地址池基礎上重新創建

Router(dhcp-config)#domain-name test.com              #定義域後綴(可選)

Router(dhcp-config)#netbios-name-server 192.168.1.254          #定義wins服務器

Router(dhcp-config)#lease 30                    #定義地租租約

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章