如:router1的接口地址是:192.168.2.0/24的网段,且其0/1端口的地址为192.168.2.1。
router1和router2的互连IP分别为:10.0.10.10/24, 10.0.10.20/24
则在router2上创建DHCP地址池:
命令如下:
ip dhcp pool test
network 192.168.1.0 255.255.255.0 定义地址池的范围
default-router 192.168.2.254 定义网关地址
 
ip dhcp exclud-address 192.168.2.1 192.168.2.1 排除router1上0/1端口的IP
 
router1上
interface f0/1
ip address 192.168.2.254 255.255.255.0
ip help-address 10.0.10.10 转发dhcp的广播包为单播包并指向router0