Wednesday, October 17, 2012

Lazy DHCP pool configuration on Cisco IOS

To add a DHCP server to your router you can add these lines on terminal configuration mode:

ip dhcp excluded-address <address start> <address end>
!
ip dhcp pool <pool name>
   network <network> <netmask>
   default-router <router IP>
   dns-server <DNS1> <DNS2>


i.e:

gw#config t
Enter configuration commands, one per line.  End with CNTL/Z.
gw(config)#ip dhcp excluded-address 10.2.17.1 10.2.17.15

gw(config)#ip dhcp pool MyOffice                  #network 10.2.17.0 255.255.255.0
             
#default-router 10.2.17.1
             
#dns-server 10.2.17.201 


No comments:

Post a Comment