IMPLEMENTATION OF DHCP IN CISCO PACKET TRACER
Dynamic Host Configuration Protocol (DHCP) is a networking management protocol used to dynamically assign an IP address to any new node or device entering the network. DHCP permits a node to be configured automatically, thereby avoiding the necessity to involvement by a network administrator. DHCP can be implemented on small local networks as well as large enterprises networks.
DHCP runs at the ppplication layer of the transmission control protocol/IP (TCP/IP) protocol stack to dynamically assign IP addresses to connected devices.It is a client-server protocol in which server manage a pool of unique IP addresses, as well as information about client configuration parameters, and assign addresses out of those address pools.
Visual view of DHCP process:
Visual view of DHCP process:
ADVANTAGES OF DHCP :
- It reduces manual configuration time of IP addresses.
- The implementation does not require any additional costs.
- duplicate or invalid IP addresses are prevented. Hence there is no chance of conflicts in IP addresses.
- It simplifies administration of the network.
DHCP network topology
STEPS:
1. Firstly take 2 PCs, a switch (2960) and a router(1941). Select end device option and drag two generic PCs into the work space. Connect all the PCs using copper straight wire to the switch and switch to the router as shown in above figure in fast ethernet port.
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.1.2 255.255.255.0
Router(config-if)#no shut
Router(config-if)#
%LINK-5-CHANGED: Interface GigabitEthernet0/1, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface GigabitEthernet0/1, changed state to up
Router(config-if)#exit
Router(config)#ip dhcp pool IP1
Router(dhcp-config)#net 192.168.1.0 255.255.255.0
Router(dhcp-config)#default 192.168.1.100
Router(dhcp-config)#exit
Router(config)#ip dhcp exc 192.168.1.2 192.168.1.10
Router(config)#exit
Configuration of DHCP on CLI
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.1.2 255.255.255.0
Router(config-if)#no shut
Router(config-if)#
%LINK-5-CHANGED: Interface GigabitEthernet0/1, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface GigabitEthernet0/1, changed state to up
Router(config-if)#exit
Router(config)#ip dhcp pool IP1
Router(dhcp-config)#net 192.168.1.0 255.255.255.0
Router(dhcp-config)#default 192.168.1.100
Router(dhcp-config)#exit
Router(config)#ip dhcp exc 192.168.1.2 192.168.1.10
Router(config)#exit
Configuration of DHCP on CLI



No comments:
Post a Comment