DHCP Sample Config With Static Reservation
From Internetworkpro
Contributed 07/06/07 by sike (FreeNode #cisco)
! This sample config defines a DHCP pool for the 10.10.10.0/24 subnet.
! It will assign clients addresses from 10.10.10.21 to 10.10.10.240,
! and it has a dhcp reservation for the client joe_user, with mac
! address 1234.abcd.3456.cdef, assigning it IP address 10.10.10.10.
! The "option 150" line assigns joe_user a TFTP server - it is not
! a requirement, just an example - maybe for an IP phone, etc.
!
! There is a lot more you can do with DHCP - this is just a very basic,
! simple example to get you started.
!
ip dhcp excluded-address 10.10.10.1 10.10.10.20
ip dhcp excluded-address 10.10.10.241 10.10.10.254
!
ip dhcp pool ClientPool
network 10.10.10.0 255.255.255.0
domain-name yourdomain.com
default-router 10.10.10.1
!
ip dhcp pool joe_user
host 10.10.10.10 255.255.255.0
client-identifier 1234.abcd.3456.cdef
client-name joe_user
default-router 10.10.10.1
option 150 ip 10.10.10.2 255.255.255.0
!

