Tuesday, 31 March 2020

Configuration of Router as DHCP Server

DHCP is used to assign IP Addresses automatically over LAN .

This Blog will help us to understand how to configure Router as DHCP Server

This is will include very simple configuration steps

CONFIGURATION OF ROUTER AS DHCP SERVER


1) Configuration of LAN Interface on Router

=========================================
Router#
Router#config
Configuring from terminal, memory, or network [terminal]?
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#
Router(config)#int Gi0/0/0
Router(config-if)#ip address 10.0.0.1 255.255.255.0
Router(config-if)#description LAN
Router(config-if)#no shut
Router(config-if)#^Z

Router#

2) DHCP Server Configuration  on Router

============================================
Router(config)#ip dhcp pool dhcpvlan10
Router(dhcp-config)#network 10.0.0.0 255.255.255.0
Router(dhcp-config)#default-router 10.0.0.1
Router(dhcp-config)#^Z

Router#

3) Excluding few IP addresses from DHCP pool i.e making those IP address as static

==============================================================

Router(config)#ip dhcp excluded-address 10.0.0.2 10.0.0.5

4) Setting PCs for DHCP and verifying the IPs 

=======================================
PC CONFIGURED FOR DHCP 


5) Verification on Router 

========================

Router#sh ip dhcp pool

Pool dhcpvlan10 :
Utilization mark (high/low) : 100 / 0
Subnet size (first/next) : 0 / 0
Total addresses : 254
Leased addresses : 3
Excluded addresses : 1
Pending event : none

1 subnet is currently in the pool
Current index     IP address                    Leased/Excluded/Total

10.0.0.1             10.0.0.1 - 10.0.0.254          3 / 1 / 254

Router#sh ip dhcp binding 
IP address       Client-ID/              Lease expiration        Type
                 Hardware address
10.0.0.6         0000.0CB0.4A54           --                     Automatic
10.0.0.7         0090.218C.C7ED           --                     Automatic
10.0.0.8         0030.A397.E307           --                     Automatic


Hope you all find the blog useful !!!!


Thanks for Reading !!!!!

No comments:

Post a Comment