静态路由配置

静态路由配置

环境配置:

Packet Tracer
路由器 --2811

第一步:搭建拓扑

静态路由配置注意:中间路由器需要添加网卡
先关机–>添加NM-2FE2W
静态路由配置静态路由配置

第二步:配置ip

主机IP配置

静态路由配置静态路由配置静态路由配置##### 左边路由器配置

no
enable
configure terminal
int f0/0
ip add 10.0.0.254 255.255.255.0
no shutdown
exit
int f0/1
ip add 20.0.0.1 255.255.255.0
no shutdown
exit
do show ip int brief

静态路由配置静态路由配置##### 右边路由器配置

no
enable
configure terminal
int f0/0
ip add 30.0.0.2 255.255.255.0
no shutdown
exit
int f0/1
ip add 40.0.0.254 255.255.255.0
no shutdown
exit
do show ip int brief

静态路由配置静态路由配置##### 中间路由器配置

no
enable
configure terminal
int f0/0
ip add 20.0.0.2 255.255.255.0
no shutdown
exit
int f0/1
ip add 30.0.0.1 255.255.255.0
no shutdown
exit
int f1/0
ip add 50.0.0.254 255.255.255.0
no shutdown
exit
do show ip int brief

静态路由配置静态路由配置

第三步:配置路由

左边路由器配置

ip route 0.0.0.0 0.0.0.0 20.0.0.2
do show ip rout

静态路由配置

右边路由器配置

ip route 0.0.0.0 0.0.0.0 30.0.0.1
do show ip rout

静态路由配置

中间路由器配置

Router(config)#ip route 10.0.0.0 255.255.255.0 20.0.0.1
Router(config)#ip route 40.0.0.0 255.255.255.0 30.0.0.2
Router(config)#do show ip rou

静态路由配置第四步:检查网络状态
静态路由配置
静态路由配置