实验拓扑图
路由接口IP配置
第一台电脑网关
IP
第二台电脑网关
IP
图中route0配置过程:
enable
configure t
int f0/1
ip add 192.168.1.1 255.255.255.0
no shut
exit
int f0/0
ip add 192.168.2.1 255.255.255.0
no shut
图中route3配置过程:
enable
configure t
int f0/0
ip add 192.168.2.2 255.255.255.0
no shut
int f0/1
ip add 192.168.3.1 255.255.255.0
no shut
图中route2配置过程:
enable
configure t
int f0/0
ip add 192.168.3.2 255.255.255.0
no shut
int f0/1
ip add 192.168.4.1 255.255.255.0
no shut
三台路由器静态路由配置(重要)
对route0:
ip route 192.168.3.0 255.255.255.0 192.168.2.2
ip route 192.168.4.0 255.255.255.0 192.168.3.2
对route3:
ip route 192.168.1.0 255.255.255.0 192.168.2.1
ip route 192.168.4.0 255.255.255.0 192.168.3.2
对route2:
ip route 192.168.2.0 255.255.255.0 192.168.3.1
ip route 192.168.1.0 255.255.255.0 192.168.2.1
在每个路由中可用show ip route查看路由与谁相通
在route0中ping route2/3的接口
在route3中ping route2/0的接口
在route2中ping route0/3的接口
用主机0ping主机1的网关
用主机1ping主机0的网关
完成!
cisco配置三台静态路由
最新推荐文章于 2025-03-05 15:08:59 发布