配置AR1为PC2分配地址
dhcp enable
ip pool DHCP_PC2
network 192.168.20.200 mask 24
gateway-list 192.168.20.254
dns-list 192.168.20.100
excluded-ip-address 192.168.20.100
int g0/0/1
ip address 192.168.20.254 24
dhcp select global
配置AR1为PC3分配IP地址
dhcp enable
int g0/0/2
ip address 192.168.30.254 24
dhcp select interface
dhcp server dns-list 192.168.30.100
dhcp server excluded-ip-address 192.168.30.100
配置AR1为PC4分配IP地址
dhcp enable
int g0/0/2
dhcp server static-bind ip-address 192.168.30.200 mac-address 5489-98AE-7862
配置AR1、AR2为PC1分配IP地址
AR2(DHCP服务器)
ip pool DHCP_PC1
gateway-list 192.168.10.254
network 192.168.10.0 mask 255.255.255.0
option121 ip-address 10.0.12.0 24 192.168.10.254
interface GigabitEthernet0/0/0
ip address 10.0.12.2 255.255.255.0
dhcp select global
ip route-static 192.168.10.0 255.255.255.0 10.0.12.1
AR1(DHCP中继器)
interface GigabitEthernet0/0/0
ip address 192.168.10.254 255.255.255.0
dhcp select relay
dhcp relay server-ip 10.0.12.2