静态路由配置
环境配置:
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
第四步:检查网络状态
来源:CSDN
作者:Chihiro (千寻)
链接:https://blog.csdn.net/qq_41901122/article/details/104074932