Router configuration DHCP server instance resolution

Source: Internet
Author: User

Router configuration requirements:

Enterprise internal computer usageDHCPTo obtain the IP address. Set the DHCP address to 192.168.1.0/24. Set the default gateway to 192.168.1.1, the domain name to ewao.cn, And the DNS service to 61.128.114.20.the IP address is valid for 2 days.

The router configuration is as follows:

 
 
  1. Router (config) # int f0/0
  2. Router (config-if) # ip add 192.168.1.1 255.255.255.0
  3. Router (config-if) # no sh
  4. Router (config-if) # exit
  5. Router (config) # ip dhcp excluded-address 192.168.1.1 // you need to exclude the gateway address of the Router interface
  6. Router (config) # ip dhcp pool DHCP // create a DHCP pool
  7. Router (dhcp-config) # network 192.168.1.0/24 // declares the allocable network segment
  8. Router (dhcp-config) # default-Router 192.168.1.1 // sets the default gateway of the client.
  9. Router (dhcp-config) # dns-server 61.128.114.133 // set the client DNS address
  10. Router (dhcp-config) # lease 2 // address lease period
  11. Router (dhcp-config) # domain-name ewao.cn // domain of the Client
  12. Router (dhcp-config) # end

Client Configuration:

Vroipv6 configuration-IPV6 DHCP Server Configuration:

 
 
  1. Router(config)#ipv6 unicast-routing  
  2. Router(config)#ipv6 cef  
  3. Router(config)#ipv6 dhcp pool v6  
  4. Router(config-dhcp)# prefix-delegation pool v6pool  
  5. Router(config-dhcp)# dns-server 2001:470:20::2  
  6. Router(config-dhcp)# domain-name ewao.cn  
  7. Router(config-dhcp)#end 

The IPV6 technology also needs to be configured on the client.

Verify the vro Configuration:

 
 
  1. Router#show ip dhcp database  
  2. Router#show ip dhcp binding  
  3. Bindings from all pools not associated with VRF:  
  4. IP address Client-ID/ Lease expiration Type  
  5. Hardware address/  
  6. User name  
  7. 192.168.1.214 0100.e04c.3900.d1 Mar 07 2002 11:39 PM Automatic  
  8. 192.168.1.215 01f0.def1.16c1.11 Mar 07 2002 07:27 PM Automatic  
  9. 192.168.1.216 0100.26c7.6a28.1a Mar 07 2002 08:07 PM Automatic  
  10. 192.168.1.219 01c4.4619.75b9.c0 Mar 07 2002 04:52 PM Automatic  
  11. 192.168.1.221 0100.3018.b003.f1 Mar 07 2002 05:22 PM Automatic  
  12. 192.168.1.222 0152.4153.2000.0c29. Mar 07 2002 04:48 PM Automatic  
  13. 7ded.8700.0000.0000.  
  14. 00  
  15. 192.168.1.223 0152.4153.2000.0c29. Mar 07 2002 04:48 PM Automatic  
  16. 7ded.8700.0001.0000.  
  17. 00  
  18. 192.168.1.224 0152.4153.2000.0c29. Mar 07 2002 04:48 PM Automatic  
  19. 7ded.8700.0002.0000.  
  20. 00  
  21. 192.168.1.225 0152.4153.2000.0c29. Mar 07 2002 04:48 PM Automatic  
  22. 7ded.8700.0003.0000.  
  23. 00  
  24. 192.168.1.226 0152.4153.2000.0c29. Mar 07 2002 04:48 PM Automatic  
  25. 7ded.8700.0004.0000.  
  26. 00  
  27. 192.168.1.227 0152.4153.2000.0c29. Mar 07 2002 04:48 PM Automatic  
  28. 7ded.8700.0005.0000.  
  29. 00  
  30. 192.168.1.228 0152.4153.2000.0c29. Mar 07 2002 04:48 PM Automatic  
  31. 7ded.8700.0006.0000.  
  32. 00  
  33. 192.168.1.229 0152.4153.2000.0c29. Mar 07 2002 04:48 PM Automatic  
  34. 7ded.8700.0007.0000.  
  35. 00  
  36. 192.168.1.230 0152.4153.2000.0c29. Mar 07 2002 04:48 PM Automatic  
  37. 7ded.8700.0008.0000.  
  38. 00  
  39. 192.168.1.231 0152.4153.2000.0c29. Mar 07 2002 04:48 PM Automatic  
  40. 7ded.8700.0009.0000.  
  41. 00  
  42. 192.168.1.232 0100.242c.54b5.9b Mar 07 2002 05:49 PM Automatic  
  43. 192.168.1.235 018c.a982.9e8e.f8 Mar 08 2002 12:42 AM Automatic  
  44. 192.168.1.236 01f0.def1.6045.74 Mar 07 2002 06:41 PM Automatic  
  45. 192.168.1.241 0100.1f3c.0dee.82 Mar 08 2002 12:33 AM Automatic  
  46. 192.168.1.242 0100.2710.f29b.20 Mar 08 2002 01:48 AM Automatic  
  47. 192.168.1.244 0100.1b24.79ac.bc Mar 07 2002 10:56 PM Automatic  
  48. 192.168.1.246 0188.ae1d.7426.51 Mar 07 2002 09:59 PM Automatic  
  49. 192.168.1.249 0100.26c7.43ff.60 Mar 08 2002 01:19 AM Automatic 

Because the tunnel technology from IPv4 to IPv6 is enabled for the device we tested, that is, the network that can access IPv6 can also access IPv4 networks at the same time. Therefore, when show ip dhcp binding, some IPv6 addresses are allocated.

Router configuration troubleshooting:

 
 
  1. > Ipconfig... Display Information
  2. > Ipconfig/all... Show Details
  3. > Ipconfig/renew... Update all adapters
  4. > Ipconfig/renew EL *... Update all connections whose names start with EL
  5. > Ipconfig/release * Con *... Release all matched connections,
  6. For example, "Local Area Connection 1" or
  7. "Local Area Connection 2 ″
  8. > Ipconfig/allcompartments... Show information about all segments
  9. > Ipconfig/allcompartments/all... Show Details about all segments

The whole process of vrodhcp configuration is described above. About DHCP server configuration, this is a classic and common configuration in vro configuration, so the network administrator must learn it.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.