Download as txt, pdf, or txt
Download as txt, pdf, or txt
You are on page 1of 2

Router>enable

Router#configure
Router(config)#hostname R1-DHCP
R1-DHCP(config)#interface g0/0
R1-DHCP(config-if)#ip address 192.168.10.160 255.255.255.224
Bad mask /27 for address 192.168.10.160
R1-DHCP(config-if)#ip address 192.168.10.191 255.255.255.224
Bad mask /27 for address 192.168.10.191
R1-DHCP(config-if)#
R1-DHCP(config-if)#ip address 192.168.10.178 255.255.255.224
R1-DHCP(config-if)#
R1-DHCP(config-if)#no shut

%LINK-5-CHANGED: Interface GigabitEthernet0/0, changed state to up

%LINEPROTO-5-UPDOWN: Line protocol on Interface GigabitEthernet0/0, changed state


to up

R1-DHCP(config-if)#exit
R1-DHCP(config)#
R1-DHCP(config)#ip dhcp excluded-address 192.168.10.162 192.168.10.177
R1-DHCP(config)#ip dhcp pool P
R1-DHCP(dhcp-config)#network 192.168.10.160 255.255.255.224
R1-DHCP(dhcp-config)#default-router 192.168.10.178
R1-DHCP(dhcp-config)#^Z
R1-DHCP#
%SYS-5-CONFIG_I: Configured from console by console

R1-DHCP#
R1-DHCP#show run
R1-DHCP#show running-config
Building configuration...

Current configuration : 851 bytes


!
version 15.1
no service timestamps log datetime msec
no service timestamps debug datetime msec
no service password-encryption
!
hostname R1-DHCP
!
!
!
!
ip dhcp excluded-address 192.168.10.162 192.168.10.177
!
ip dhcp pool P
network 192.168.10.160 255.255.255.224
default-router 192.168.10.178
!
!
!
ip cef
no ipv6 cef

R1-DHCP#
R1-DHCP#
R1-DHCP#
R1-DHCP#%DHCPD-4-PING_CONFLICT: DHCP address conflict: server pinged
192.168.10.178.

R1-DHCP#
R1-DHCP#
R1-DHCP#
R1-DHCP#show ip dhc
R1-DHCP#show ip dhcp poo
R1-DHCP#show ip dhcp pool

Pool P :
Utilization mark (high/low) : 100 / 0
Subnet size (first/next) : 0 / 0
Total addresses : 30
Leased addresses : 3
Excluded addresses : 1
Pending event : none

1 subnet is currently in the pool


Current index IP address range Leased/Excluded/Total
192.168.10.161 192.168.10.161 - 192.168.10.190 3 / 1 / 30
R1-DHCP#
R1-DHCP#
R1-DHCP#show ip dhc
R1-DHCP#show ip dhcp bi
R1-DHCP#show ip dhcp binding
IP address Client-ID/ Lease expiration Type
Hardware address
192.168.10.161 00E0.F98A.2542 -- Automatic
192.168.10.179 0060.7064.9BAE -- Automatic
192.168.10.180 00D0.BC96.609B -- Automatic
R1-DHCP#

You might also like