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