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:
- Router (config) # int f0/0
- Router (config-if) # ip add 192.168.1.1 255.255.255.0
- Router (config-if) # no sh
- Router (config-if) # exit
- Router (config) # ip dhcp excluded-address 192.168.1.1 // you need to exclude the gateway address of the Router interface
- Router (config) # ip dhcp pool DHCP // create a DHCP pool
- Router (dhcp-config) # network 192.168.1.0/24 // declares the allocable network segment
- Router (dhcp-config) # default-Router 192.168.1.1 // sets the default gateway of the client.
- Router (dhcp-config) # dns-server 61.128.114.133 // set the client DNS address
- Router (dhcp-config) # lease 2 // address lease period
- Router (dhcp-config) # domain-name ewao.cn // domain of the Client
- Router (dhcp-config) # end
Client Configuration:
Vroipv6 configuration-IPV6 DHCP Server Configuration:
- Router(config)#ipv6 unicast-routing
- Router(config)#ipv6 cef
- Router(config)#ipv6 dhcp pool v6
- Router(config-dhcp)# prefix-delegation pool v6pool
- Router(config-dhcp)# dns-server 2001:470:20::2
- Router(config-dhcp)# domain-name ewao.cn
- Router(config-dhcp)#end
The IPV6 technology also needs to be configured on the client.
Verify the vro Configuration:
- Router#show ip dhcp database
- Router#show ip dhcp binding
- Bindings from all pools not associated with VRF:
- IP address Client-ID/ Lease expiration Type
- Hardware address/
- User name
- 192.168.1.214 0100.e04c.3900.d1 Mar 07 2002 11:39 PM Automatic
- 192.168.1.215 01f0.def1.16c1.11 Mar 07 2002 07:27 PM Automatic
- 192.168.1.216 0100.26c7.6a28.1a Mar 07 2002 08:07 PM Automatic
- 192.168.1.219 01c4.4619.75b9.c0 Mar 07 2002 04:52 PM Automatic
- 192.168.1.221 0100.3018.b003.f1 Mar 07 2002 05:22 PM Automatic
- 192.168.1.222 0152.4153.2000.0c29. Mar 07 2002 04:48 PM Automatic
- 7ded.8700.0000.0000.
- 00
- 192.168.1.223 0152.4153.2000.0c29. Mar 07 2002 04:48 PM Automatic
- 7ded.8700.0001.0000.
- 00
- 192.168.1.224 0152.4153.2000.0c29. Mar 07 2002 04:48 PM Automatic
- 7ded.8700.0002.0000.
- 00
- 192.168.1.225 0152.4153.2000.0c29. Mar 07 2002 04:48 PM Automatic
- 7ded.8700.0003.0000.
- 00
- 192.168.1.226 0152.4153.2000.0c29. Mar 07 2002 04:48 PM Automatic
- 7ded.8700.0004.0000.
- 00
- 192.168.1.227 0152.4153.2000.0c29. Mar 07 2002 04:48 PM Automatic
- 7ded.8700.0005.0000.
- 00
- 192.168.1.228 0152.4153.2000.0c29. Mar 07 2002 04:48 PM Automatic
- 7ded.8700.0006.0000.
- 00
- 192.168.1.229 0152.4153.2000.0c29. Mar 07 2002 04:48 PM Automatic
- 7ded.8700.0007.0000.
- 00
- 192.168.1.230 0152.4153.2000.0c29. Mar 07 2002 04:48 PM Automatic
- 7ded.8700.0008.0000.
- 00
- 192.168.1.231 0152.4153.2000.0c29. Mar 07 2002 04:48 PM Automatic
- 7ded.8700.0009.0000.
- 00
- 192.168.1.232 0100.242c.54b5.9b Mar 07 2002 05:49 PM Automatic
- 192.168.1.235 018c.a982.9e8e.f8 Mar 08 2002 12:42 AM Automatic
- 192.168.1.236 01f0.def1.6045.74 Mar 07 2002 06:41 PM Automatic
- 192.168.1.241 0100.1f3c.0dee.82 Mar 08 2002 12:33 AM Automatic
- 192.168.1.242 0100.2710.f29b.20 Mar 08 2002 01:48 AM Automatic
- 192.168.1.244 0100.1b24.79ac.bc Mar 07 2002 10:56 PM Automatic
- 192.168.1.246 0188.ae1d.7426.51 Mar 07 2002 09:59 PM Automatic
- 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:
- > Ipconfig... Display Information
- > Ipconfig/all... Show Details
- > Ipconfig/renew... Update all adapters
- > Ipconfig/renew EL *... Update all connections whose names start with EL
- > Ipconfig/release * Con *... Release all matched connections,
- For example, "Local Area Connection 1" or
- "Local Area Connection 2 ″
- > Ipconfig/allcompartments... Show information about all segments
- > 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.