How to turn off or disable DHCP on a cisco router

Printer-friendly versionPDF version

For all of you experienced Cisco people, this may seem easy to you, however,  for all the noobs out there, this is how you turn off or disable DHCP on a Cisco router:

config t

no service dhpc

end

copy run start

Really simple, huh...

Hope that helps some of you

I think the command should be:

no service dhcp

-- now, what about enabling DHCP?

!
no ip dhcp conflict logging
ip dhcp excluded-address 172.16.1.1 172.16.1.20
!
ip dhcp pool MyRouterDHCPPool
network 172.16.0.0 /16
default-router 172.16.1.1
domain-name mydomain.local
dns-server 172.16.1.5
netbios-name-server 172.16.1.5
netbios-node-type h-node
!
!

Then you can enable it using the
no service dhcp

if you wanted it to stop serving addresses.

Joel Helgeson

Post new comment