标签:alt work mic img enable sele 配置ip mamicode 路由器
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
PC1ping 自己网关\其他网段网关\其他网段ip地址:
PC2自动配置ip地址结果:
PC2ping其他网段ip地址:
标签:alt work mic img enable sele 配置ip mamicode 路由器
原文地址:https://www.cnblogs.com/junruo/p/10892537.html