Creates a DHCP pool called LANX
ro(config)# ip dhcp pool LANX
Defines the range of address to be leased
ro(dhcp-config)# network 172.16.10.0 255.255.255.0
Defines the address of the default router for the client
ro(dhcp-config)# default-router 172.16.10.1
Defines the address of the DNS server for the client
ro(dhcp-config)# dns-server 172.16.10.10
Defines the address the NetBIOS server for the client
ro(dhcp-config)# netbios-name-server 172.16.10.10
Defines the domain name for the client
ro(dhcp-config)# domain-name ping.eti.br
Defines the lease time to be 5 days, 3 hours, 0 minutes
ro(dhcp-config)# lease 5 3 0
Sets the lease time to infinity (default time is 1 day)
ro(dhcp-config)# lease inifinity
ro(dhcp-config)# exit
Specifies the range of address not be leased out to clients
ro(config)# ip dhcp excluded-address 172.16.10.1 172.16.10.10
Tunrs the DHCP service off (service is on by default in IOS)
ro(config)# no service dhcp
Turns the DHCP service on
ro(config)# service dhcp
Verifying and Troubleshooting DHCP configuration
Display a list of all bindings created
router# show ip dhcp binding
Displays a list of the number of messages sent and received
by the DHCP server
router# show ip dhcp server stat
Display the DHCP process of address being leased
and returned
router# debug ip server events
See Also:
biOos
No comments:
Post a Comment