3745路由器配置簡單的dhcp server

3745路由器配置簡單的dhcp server
   本文用的是GNS的模擬器來完成dhcp分配的,這款路由器的歷史比較老了,然後用帶dhcp snooping的交換機來完成監聽功能。
   實現還是比較簡單的,初學的同學有幫助哦。
(第一次沒有分配的原因是地址池沒有配置好)Gns上的7345 連在交換機上

 

 

Router(dhcp-config)#network 192.168.1.0 255.255.255.0
Router(dhcp-config)#lease 0 12
Router(dhcp-config)#ex
Router(config)#ex
% Ambiguous command:  "ex"

Router(config)#exi

Router#
*Mar  1 00:12:19.047: %SYS-5-CONFIG_I: Configured from console by console
Router#sho run
Router#sho running-config
Building configuration...

 

Current configuration : 1357 bytes
!
version 12.4
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname Router
!
boot-start-marker
boot-end-marker
!
!
no aaa new-model
memory-size iomem 5
ip cef
!
!
no ip dhcp use vrf connected
ip dhcp excluded-address 192.168.1.1 192.168.1.12
!
ip dhcp pool office
   network 192.168.1.0 255.255.255.0
   dns-server 211.98.2.4
   default-router 192.168.1.255
   lease 0 12
!
!
ip auth-proxy max-nodata-conns 3
ip admission max-nodata-conns 3
!
multilink bundle-name authenticated
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
archive
 log config
  hidekeys
!
!
!
!
!
!
!
!
interface FastEthernet0/0
 ip address 192.168.1.1 255.255.255.0
 duplex auto
 speed auto
!
interface FastEthernet0/1
 no ip address
 shutdown
 duplex auto
 speed auto
!
interface FastEthernet1/0
 no ip address
 shutdown
 duplex auto
 speed auto
!
interface Serial2/0
 no ip address
 shutdown
 no fair-queue
 serial restart-delay 0
!
interface Serial2/1
 no ip address
 shutdown
 serial restart-delay 0
!
interface Serial2/2
 no ip address
 shutdown
 serial restart-delay 0
!
interface Serial2/3
 no ip address
 shutdown
 serial restart-delay 0
!
ip forward-protocol nd
!
!
ip http server
no ip http secure-server
!
!
!
!
!
!
!
control-plane
!
!
!
!
!
!
!
!
!
!
line con 0
 exec-timeout 0 0
line aux 0
line vty 0 4
!
!
end

 

 

Pc機上的結果
見附近1
 
交換機上的結果
見附近2
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章