59-16
Catalyst 4500 Series Switch, Cisco IOS Software Configuration Guide - Cisco IOS XE 3.9.xE and IOS 15.2(5)Ex
Chapter 59 Configuring the Cisco IOS DHCP Server
Configuring DHCP Address Pools
ip address 172.16.2.1 255.255.255.255 secondary
ip address 172.16.3.1 255.255.255.255 secondary
ip address 172.16.4.1 255.255.255.255 secondary
The following is the incorrect configuration:
ip dhcp pool dhcp_1
network 172.16.1.0 255.255.255.0
lease 1 20 30
accounting default
!
ip dhcp pool dhcp_2
network 172.16.2.0 255.255.255.0
lease 1 20 30
accounting default
!
ip dhcp pool dhcp_3
network 172.16.3.0 255.255.255.0
lease 1 20 30
accounting default
!
ip dhcp pool dhcp_4
network 172.16.4.0 255.255.255.0
lease 1 20 30
accounting default
!
interface Loopback111
ip address 172.16.1.1 255.255.255.255 secondary
ip address 172.16.2.1 255.255.255.255 secondary
ip address 172.16.3.1 255.255.255.255 secondary
ip address 172.16.4.1 255.255.255.255 secondary
Verifying the DHCP Address Pool Configuration
Command or Action
Purpose
Step 1
Switch>
enable
Enables privileged EXEC mode.
•
Enter your password if prompted.
Step 2
Switch#
show ip dhcp pool
[
name
]
(Optional) Displays information about DHCP address pools.
Step 3
Switch(config)#
show ip dhcp binding
[
address
]
(Optional) Displays a list of all bindings created on a specific
DHCP server.
•
Use the
show ip dhcp binding
command to display the IP
addresses that have already been assigned. Verify that the
address pool is not exhausted. If necessary, recreate the pool
to create a larger pool of addresses.
•
Use the s
how ip dhcp binding
command to display the lease
expiration date and time of the IP address of the host.
Step 4
Switch(dhcp-config)#
show ip dhcp
conflict
[
address
]
(Optional) Displays a list of all IP address conflicts.
Step 5
Switch(config)#
show ip dhcp database
[
url
]
(Optional) Displays recent activity on the DHCP database.
Step 6
Switch(config)#
show ip dhcp server
statistics
[
type-number
]
(Optional) Displays count information about server statistics and
messages sent and received.
Содержание Catalyst 4500 Series
Страница 2: ......
Страница 4: ......
Страница 2086: ...Index IN 46 Software Configuration Guide Release IOS XE 3 9 0E and IOS 15 2 5 E ...