Pages

Jun 14, 2010

Configure DHCP on cisco router

Examlpe on how to setup a simple DHCP on router,this would become very useful when configuring dynamic ip address to end devices.

Router>en
Router#conf t
Router(config)#ip dhcp excluded-address 192.168.1.1 192.168.1.5
--excluded this address from being lease by the
--router(range from 192.168.1.1 - 192.168.1.5)
Router(config)#ip dhcp pool OFFICE
--create dhcp pool with its name
Router(dhcp-config)#network 192.168.1.0 255.255.255.0
--specify network and network mask
Router(dhcp-config)#default-router 192.168.1.1
--set the default gateway for the network
Router#sh ip dhcp binding
IP address Client-ID/ Lease expiration Type
Hardware address
192.168.1.3 000D.BDA7.0CBC -- Automatic
192.168.1.2 000D.BDDD.29C2 -- Automatic
192.168.1.4 0000.0CAB.97C7 -- Automatic
192.168.1.5 0001.C767.28A7 -- Automatic
192.168.1.6 000A.F390.024A -- Automatic
-show the dhcp configuration

No comments:

Post a Comment

Related Posts with Thumbnails