Mundy

IT Knowledge Base

User Tools

Site Tools


Sidebar

Contact me at dan@mundy.co for any feedback or suggestions.


My other sites:

Search all my sites:

cisco_router_as_a_dhcp_server

Cisco Router as a DHCP Server

The following will configure the Cisco router as a DHCP server:

ip dhcp pool dhcp_pool
   network 192.168.30.0 255.255.255.0
   default-router 192.168.30.1
   dns-server 208.67.222.222 208.67.220.220
!
ip dhcp excluded-address 192.168.30.1 192.168.30.10
no ip dhcp use vrf connected
service dhcp




To show leases handed out by the router:

sh ip dhcp binding

Address exclusion is done at the global level, and can exclude ranges of IP addresses or just individual addresses

Multiple DHCP Pools

When using only one DHCP pool, use:

no ip dhcp use vrf connected

When you have mode than one DHCP pool and want to assign to specific interfaces, use:

ip dhcp use vrf connected

More info: Cisco Support Forum Post

VLANs

I have this bit of code which says the has reference to VLANs but I'm not sure exactly how this works. Treat the following as untested and possibly wrong - I'll update it when I get a chance to test it properly.

ip dhcp pool VLAN10 Admin
   network 192.168.20.0 255.255.255.0
   default-router 192.168.20.254
   dns-server 192.231.203.132 192.231.203.3
!
ip dhcp excluded-address 192.168.0.1 192.168.0.10
no ip dhcp use vrf connected
cisco_router_as_a_dhcp_server.txt · Last modified: 2018/04/09 09:56 (external edit)