59-32
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
Multiple pools can be configured with the same class, eliminating the need to configure the same
patterns in multiple pools. For example, there may be a need to specify that one or more pools must be
used only to service a particular class of devices (for example, cable modems and IP phones).
! Defines the DHCP classes and relay information patterns
ip dhcp class CLASS1
relay agent information
relay-information hex 01030a0b0c02050000000123
relay-information hex 01030a0b0c02*
relay-information hex 01030a0b0c02050000000000 bitmask 0000000000000000000000FF
ip dhcp class CLASS2
relay agent information
relay-information hex 01040102030402020102
relay-information hex 01040101030402020102
ip dhcp class CLASS3
relay agent information
! Associates the DHCP pool with DHCP classes
ip dhcp pool ABC
network 10.0.20.0 255.255.255.0
class CLASS1
address range 10.0.20.1 10.0.20.100
class CLASS2
address range 10.0.20.101 10.0.20.200
class CLASS3
address range 10.0.20.201 10.0.20.254
ip dhcp pool DEF
network 172.64.2.2 255.255.255.0
class CLASS1
address range 172.64.2.3 172.64.2.10
class CLASS2
Example: Configuring a Static Route with the Next-Hop Dynamically Obtained
Through DHCP
The following example shows how to configure two Ethernet interfaces to obtain the next-hop device IP
address from the DHCP server:
Switch(config)#
ip route 10.10.10.0 255.255.255.0 dhcp 200
Switch(config)#
ip route 10.10.20.1 255.255.255.255 ethernet 1 dhcp
Summary of Contents for Catalyst 4500 Series
Page 2: ......
Page 4: ......
Page 2086: ...Index IN 46 Software Configuration Guide Release IOS XE 3 9 0E and IOS 15 2 5 E ...