PC1配置: ip:192.168.1.1 掩码:255.255.255.0 网关:192.168.1.254
上路由器配置:
sys
int gi0/0
ip add 192.168.100.10 24
qu
ip route-static 0.0.0.0 0.0.0.0 192.168.100.254
dhcp enable
dhcp server ip-pool 1
network 192.168.1.0 mask 255.255.255.0
gateway-list 192.168.1.254
forbidden-ip 192.168.1.254
下路由器配置:
sys
int gi0/0
ip add 192.168.1.254 24
qu
int gi0/1
ip add 192.168.100.254 24
qu
int gi0/0
dhcp select relay
dhcp relay server-add 192.168.100.10
dhcp enable
原文:https://www.cnblogs.com/mreleshaw/p/10916693.html