handing out a static ip via cisco dhcp
Written by jlgaddis on May 27, 2008 – 1:41 pm -this is more of a note to myself than anything, but here’s how you have a cisco router that’s running dhcp services hand out a static ip address to a particular client every time:
router# configure terminal
router(config)# ip dhcp pool macbook
router(dhcp-config)# host 192.168.1.18 255.255.255.0
router(dhcp-config)# client-identifier aabb.ccdd.eeff
router(dhcp-config)# client-name macbook
router(dhcp-config)# default-router 192.168.1.1
router(dhcp-config)# domain-name example.com
router(dhcp-config)# dns-server 192.168.1.2 192.168.1.6
router(dhcp-config)# end
router#
note that you’ll need a separate “dhcp pool” for each host you’re configuring like this, as well as your actual “dhcp pool”.
Tags: ccna, cisco, networking | 1 Comment »




October 25th, 2009 at 3:54 pm
Thanks! I was using “Hardware-address” instead of “client-identifier” and I couldnt work out why it wasnt working!