Featured

Monday, April 15, 2013



In this Tutorial I am going to explain How to configure DHCP on cisco router using command line [HYPER Terminal].

DHCP:- 

DHCP stands for Dynamic Host Configuration Protocol , normally used in large networks to provide IP address to the connected devices so that they can communicate in the network.

Usually Routers , Layer 3 switches & Windows ,Linux Servers are used as a DHCP server.

Connect the Physical connections and set the parameters in HYPER Terminal correctly
 The configuration is similar to the nearest model routers eg :2611.

For Configuration follow these steps:

Step 1: If the router is in Privileged EXEC mode type configure terminal otherwise type enable
            
            eg: cisco2600# configure terminal (or) cisco2600>enable
       

Step 2: Configure the router with IP address,interface,subnetmask and bring thee interface up

           Command : cisco2600(config)#interface ethernet 0/0

                              cisco2600(config-if)#ipaddress 192.168.1.0 255.255.255.0
                            
                              cisco2600(config-if)# no shutdown

Step 3: Create DHCP pool

             Command : cisco2600(config-if)# ip dhcp pool loop

Step 4: Give the Network ip address for the pool we created "loop"
         
             Command : cisco2600(dhcp-config)# network 192.168.1.20 255.255.255.0

Step 5: Give the dns server,default routing details to the router
          
             command : cisco2600(dhcp-config)#dns-server 192.168.1.100

                               cisco2600(dhcp-config)#default-router 192.168.1.0

                               cisco2600(dhcp-config)#lease 10

                               cisco2600(dhcp-config)#exit

Step 6: Give the excluded addressand finish the setup

            command : cisco2600(config)#ip dhcp excluded address 192.168.1.0 192.168.1.10

                              cisco2600(config)#ip dhcp excluded address 192.168.1.100 

                              cisco2600(config)#ctrl+Z

Step 7: Exit from setup and saving to NVRAM

            Command : cisco2600#write

                               cisco2600#show configuration ( if you need )


Thats it.....................

In this setup i have taken my router ip as 192.168.1.0,DNS server as 192.168.1.100 with a lease time as 10 minutes

                         
Categories:

0 comments:

Post a Comment