Saturday, February 14, 2015

Configure DHCP Server On a Cisco Router



The Cisco IOS DHCP server is enabled by default. You can verify if it has been disabled by checking your configuration file. If it has been disabled, the no service dhcp command will appear in the configuration file. Use the service dhcp command to re-enable the functionality if necessary.


Looking at the above diagram, we will configure the router as dhcp server, Cisco DHCP Server can provide ip address, subnet mask, default gateway, dns server, and other parameters to the dhcp clients.

DHCP Configuration Steps:

1.   Enable the DHCP Service
Router(config)#service dhcp
2.   Configuring DHCP address pool
Router(config)#ip dhcp pool tariq
Router(dhcp-config)#network 192.168.50.0 255.255.255.0
Router(dhcp-config)#default-router 192.168.50.1
Router(dhcp-config)#dns-server 192.168.50.1

3.   Excluding IP addresses
To exclude some addresses from being assigned to the dhcp clients, use the following command
Router(config)#ip dhcp excluded-address 192.168.50.1 192.168.50.10

4.   Configuring lease duration-optional
Router(dhcp-config)#lease 1 20 20

If a lease is not specified for an IP address, by default, the DHCP server assigns a one-day lease for the address by default. Using the keyword infinite specifies that the duration of the lease is unlimited.


Router#sh ip dhcp binding
Bindings from all pools not associated with VRF:
IP address          Client-ID/              Lease expiration        Type
                    Hardware address/
                    User name
192.168.50.11       01a4.5d36.c9ae.24       Feb 21 2015 11:21 AM    Automatic

To watch the video on youtube  that was created in productive-real environment, just click on the following link

To download the video from mediafire

To download the configuration file

To download the simulation environment packet tracer file. Just click on the following link
Packet tracer file

To get automatic updates, join a facebook group (netsyshorizon)

https://www.facebook.com/groups/954180217947066/

No comments:

Post a Comment