Sunday 24 February 2013

How to configure DHCP server on CISCO Router

 Below are the commands to configure the DHCP server on your CISCO router.


Router>en
Router#conf t
Router(config)#interface fa 0/0
Router(config-if)#ip address 192.168.1.1 255.255.255.0
Router(config-if)#no shutdown
Router(config-if)#exit
Router(config)#ip dhcp pool MSLAB
Router(hdcp-config)#network 192.168.1.0 255.255.255.0
Router(hdcp-config)#default-router 192.168.1.1
Router(hdcp-config)#dns-server 4.2.2.2
Router(hdcp-config)#exit
Router(config)#ip dhcp excluded-address 192.168.1.1 192.168.1.5
Router(config)#

Note: In the above configuration we exclude the range of IP address 192.168.1.1 to 192.168.1.5 for the DHCP pool. And MSLAB is our DHCP pool name you can use the different name in your configuration. We use the 4.2.2.2 DNS server just for testing purpose you can configure your live DNS server in your real configuration.

No comments:

Post a Comment