Week 6 Implementation of DHCP in CISCO Packet Tracer
The DHCP (dynamic host configuration protocol) is a standardized network protocol which is used in internet protocol (IP) networks. DHCP is used to assign IP automatically to the system with the help of a machine called DHCP server. A DHCP server enables computers to request IP addresses and networking parameters automatically. In the absence of a DHCP server, each computer on the network needs to statically (manually) assigned to an IP address.
Static IP addresses are usually assigned to routers, management interfaces on switches, servers and other devices in the network which do not change location either physically or logically. Static IP addresses are also used to access and manage these devices remotely.
On the other hand, user devices such as computers, smartphones, IP phones and others are likely to change their locations either physically or logically. This means that assigning them static IP addresses would be an unviable solution. DHCP is a protocol that was invented to address these problems. With DHCP, we can assign IP address information to user nodes automatically which saves on the administrative overhead that would be involved in assigning IP addressing information to clients statically.
STEPS:
· Create a network topology of a PC, a switch, and a router as shown below.
· Now go to CLI of router and type commands shown below:
Router>en
Router#config t
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#int gig 0/1
Router(config-if)#ip address 192.168.100.1 255.255.255.0
Router(config-if)#no shut
%LINK-5-CHANGED: Interface GigabitEthernet0/1, changed state to up
Router(config-if)#exit
Router(config)#ip dhcp pool IP01
Router(dhcp-config)#net 192.168.100.0 255.255.255.0
Router(dhcp-config)#default 192.168.100.1
Router(dhcp-config)#exit
Router(config)#ip dhcp exc 192.168.100.1 192.168.100.15
Router(config)#exit
Router#
· Then go to the PC and then click on DHCP button in IP configuration.
· If everything is fine, then your PC will be issued an IP address with a message “DHCP Request Successful”.
SNAPSHOTS:
CLI commands for DHCL configuration |
The DHCL response |
Comments
Post a Comment