Implementation
of DHCP in cisco packet tracer
Dynamic Host
Configuration Protocol (DHCP) is an application layer protocol used to distribute various
network configuration parameters to devices on a TCP/IP network. – IP
addresses, subnet masks, default gateways, DNS servers, etc
Procedure:
1. Create the above topology shown using the cisco
packet tracer work space.
2. Assign IP address to the gig interface as
following:
3.
A Cisco router can be configured as a DHCP
server. Here are the steps:
·
Exclude IP addresses
from being assigned by DHCP by using the ip dhcp excluded-address FIRST_IP
LAST_IP
·
Create a new DHCP pool
with the ip dhcp pool NAME command.
·
Define a subnet that
will be used to assign IP addresses to hosts with the network SUBNET
SUBNET_MASK command.
·
Define the default
gateway with the default-router IP command.
·
Define the DNS server
with the dns-server IP address command.
·
(Optional) Define the
DNS domain name by using the ip domain-name NAME command.
·
(Optional) Define the
lease duration by using the lease DAYS HOURS MINUTES command. If you
don’t specify this argument, the default lease time of 24 hours will be used.
Router(config-if)#ip dhcp pool IP01
Router(dhcp-config)#net 192.168.100.0 255.255.255.0
Router(dhcp-config)#exit
Router(config)#ip dhcp exec 192.168.100.1 192.168.100.15
^
% Invalid input detected at '^' marker.
Router(config)#ip dhcp exc 192.168.100.1 192.168.100.1
Router(config)#exit
Router#
%SYS-5-CONFIG_I: Configured from console by console
4.
Now click on the generic pc 0 , go to IP
configuration and select DHCP.
Result:
DHCP server has been
implemented:
No comments:
Post a Comment