59-25
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
Configuration Examples for the Cisco IOS DHCP Server
Server A
Switch#
configure terminal
switch(config)#
ip dhcp excluded-address 10.0.20.126 10.0.20.255
Switch(config)#
ip dhcp pool A
Switch(dhcp-config)#
network 10.0.20.0 255.255.255.0
Server B
Switch#
configure terminal
switch(config)#
ip dhcp excluded-address 10.0.20.0 10.0.20.125
Switch(config)#
ip dhcp pool B
Switch(dhcp-config)#
network 10.0.20.0 255.255.255.0
Example: Configuring a DHCP Address Pool
In the following example, three DHCP address pools are created: one in network 172.16.0.0, one in
subnetwork 172.16.1.0, and one in subnetwork 172.16.2.0. Attributes from network 172.16.0.0—such
as the domain name, Domain Name System (DNS) server, (Network Basic Input/Output System)
NetBIOS name server, and NetBIOS node type—are inherited in subnetworks 172.16.1.0 and
172.16.2.0. In each pool, clients are granted 30-day leases and all addresses in each subnetwork, except
the excluded addresses, are available to the DHCP server for assigning to clients. The table below lists
the IP addresses for the devices in three DHCP address pools.
Table 59-2
DHCP Address Pool Configuration
Switch(config)#
ip dhcp database ftp://user:[email protected]/router-dhcp write-delay
120
Switch(config)# i
p dhcp excluded-address 172.16.1.100 172.16.1.103
Switch(config)#
ip dhcp excluded-address 172.16.2.100 172.16.2.103
!
Switch(config)#
ip dhcp pool 0
Switch(dhcp-config)#
network 172.16.0.0 /16
Switch(dhcp-config)#
domain-name cisco.com
Switch(dhcp-config)#
dns-server 172.16.1.102 172.16.2.102
Switch(dhcp-config)#
netbios-name-server 172.16.1.103 172.16.2.103
Switch(dhcp-config)#
netbios-node-type h-node
!
Switch(config)#
ip dhcp pool 1
Switch(dhcp-config)#
network 172.16.1.0 /24
Switch(dhcp-config)#
default-router 172.16.1.100 172.16.1.101
Switch(dhcp-config)#
lease 30
Pool 0 (Network
172.16.0.0)
Pool 1 (Subnetwork
172.16.1.0)
Pool 2 (Subnetwork
172.16.2.0)
Device Type
IP Address
IP Address
IP Address
Default Devices
172.16.1.100
172.16.1.101
172.16.2.100
172.16.2.101
DNS Server
172.16.1.102
172.16.2.102
NetBIOS Name
Server
172.16.1.103
172.16.2.103
NetBIOS Node
Type
h-node
Содержание Catalyst 4500 Series
Страница 2: ......
Страница 4: ......
Страница 2086: ...Index IN 46 Software Configuration Guide Release IOS XE 3 9 0E and IOS 15 2 5 E ...