TEXT 26
Data Communication and Networking Lecture 4 Guest on 28th March 2022 01:10:17 PM
  1. DHCP = Dynamic Host Configuration Protocol
  2. DHCP Client = the one that requests for dynamic IPs
  3. DHCP Server = it assigns the dynamic IPs
  4.  
  5. Enabling the DHCP on the Router.
  6.  
  7. DHCP can be configured on different network devices such as switch, router.
  8. Multiple DHCP servers can be created.
  9. There are four steps involved in the DHCP server.
  10.  
  11. Broadcast = to all
  12. Multicast = to the selected group
  13. Unicast = One to one communication
  14.  
  15. First step in DHCP: Discovery - Broadcast
  16. Second Step in DHCP: Offer - The IP is offered by the server
  17. Third step in DHCP: Request - Client will then request for the IP
  18. Fourth step in DHCP: Acknolwedgement
  19.  
  20. All the four steps involve broadcast because the IP is not configured.
  21.  
  22. DHCP server consists of IP pools, and it assigns the IP for the particular lease time.
  23.  
  24. ISP has different DHCP server
  25.  
  26.  
  27. Static IP is usually used for servers. Printers also have static IP. Network devices also use static IPs.
  28.  
  29. to enable DHCP, simply write service dhcp in global configuration mode
  30. Then configure DHCP with name: ip dhcp pool S_1
  31. Then setting IP pool
  32. network 192.168.1.0 255.255.255.0
  33. Setting the default gateway in DHCP:
  34. default-router 192.168.1.1
  35. Setting the default DNS server:
  36. dns-server 8.8.8.8
  37.  
  38. DHCP will provide 4 things
  39. IP Address
  40. Subnet Mask
  41. Default Gateway
  42. DNS Server
  43.  
  44. When DHCP tries to assign the already assigned IP to device, there will be IP Conflict.
  45. Now we need to exclude the static IP addresses
  46. the range has been designed and 10 static IPs are reserved.
  47. ip dhcp excluded-address 192.168.1.1 192.168.1.10
  48.  
  49. to see the table which DHCP made for assigned IPs:
  50. show ip dhcp binding
  51.  
  52. to see the IP pool configured from DHCP:
  53. show ip dhcp pool

Coding Base is for source code and general debugging text.

Login or Register to edit, delete and keep track of your pastes and more.

Raw Paste

Login or Register to edit or fork this paste. It's free.