Cisco DHCP Configuration

Lets start on DHCP. I want to create a network using the 10.0.89.XXX address space, with the first 50 addresses reserved for any static device, and the rest given out by the DHCP server. The router address is 10.0.89.1. Of course, you may choose to use any network address space, as long as it's whithin the allowed IP ranges , as set by the relevant RFC documents.


Off we go, let's first enable the DHCP server on the router:

Router# conf t
Router(config)# service dhcp

Next, exclude the addresses you don't want to be handed out ( from ip – to ip range )

Router(config)# ip dhcp excluded-address 10.0.89.1 10.0.89.50

Now, define a new DHCP pool to use – note that LAN is just a name, you can name yours Bob if you want

Router(config)# ip dhcp pool LAN
Router(dhcp-config)# network 10.0.89.0 255.255.255.0

Then pass some optionsm like gateway ( or router ), primary & secondary DNS, domain and lease time ( in days ).

Router(dhcp-config)# default-router 10.0.89.1
Router(dhcp-config)# dns-server 195.0.0.1 195.0.0.2
Router(dhcp-config)# domain-name mydomain.local
Router(dhcp-config)# lease 7

It should be fairly obvious, but I'll say it anyway :195.0.0.1 and 195.0.0.2 should be your ISP's DNS servers :P

And all's done with DHCP :) I started fooling around with wireless and DDNS, but until my ISP sends me some info with which to connect to the internet from home, I cannot check on much :( fingers crossed for next week!