Dynamic Host Configuration Protocol (DHCP) is a client/server protocol that automatically provides an Internet Protocol (IP) host with its IP address and other related configuration information such as the subnet mask and default gateway. DHCP allows hosts to obtain necessary TCP/IP configuration information from a DHCP server so that hosts can access network and Internet resources.
Below diagram, for which we will be going to enable the DHCP service on our Cisco router.
The router will act as a DHCP server for the 192.168.1.0/ 24 network. IP Addresses already assigned to our switch (192.168.1.2) and Server (192.168.1.5) will be excluded from the DHCP pool, which will ensure that they are not given to other hosts to cause an IP address conflict
Router#configure terminal
Router(config) #service dhcp
Now we will be creating DHCP Pool to define the IP Address & other requried parameters that will be given to the clients by the DHCP Server.
Router(config) # ip dhcp pool IP-Pool
Router(dhcp- config)# network 192.168.1.0 255.255.255. 0
Router(dhcp- config)# default-router 192.168.1.1
Router(dhcp- config)# dns-server 202.54.56.30 4.2.2.2
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment
Note: Only a member of this blog may post a comment.