pc1:配置静态ip地址,掩码,网关
路由器R1:配置ip地址192.168.1.254 24;配置dhcp
int gi 0/0
ip add 192.168.1.254 24
qu
dhcp enable
dhcp server ip-pool 1
network 192.168.1.0 mask 255.255.255.0
gateway-list 192.168.254
int gi0/0
dhcp select server
测试PC1是否能ping通IP192.168.1.254
获取PC2地址....等待....
获取成功 PC2 IP:192.168.1.3/24
测试PC2是否能ping通IP192.168.1.254
测试成功