连网技术与网络管理 作业3 静态路由

配置RouterA

show ip int bri
Interface              IP-Address      OK? Method Status                Protocol
 
FastEthernet0/0        2.0.0.2         YES manual up                    down
 
FastEthernet0/1        1.0.0.1         YES manual up   

可以发现 Fa0/0 的状态是 down ,因为对端还没有配置完成,而 Fa0/1 的状态是 up

 

配置完RouterB

show ip int bri
Interface              IP-Address      OK? Method Status                Protocol
 
FastEthernet0/0        2.0.0.1         YES manual up                    up
 
FastEthernet0/1        3.0.0.1         YES manual up 

 

分析上面的图可知

RouterA只有1和2的网段,所以3和4的网段,要从2.0.0.1出去,这个是出口

RouterC只有3和4的网段,所以1和2的网段,要从3.0.0.1出去,这个是出口

RouterB只有2和3的网段,所以1和4的网段需要配置静态路由:

  RouterB有两个出口,分别连接到了出口12.0.0.2和3.0.0.2出口2。其中2.0.0.2可以连通1网段,3.0.0.2可以连通4网段。

   所以RouterB里面的1.0.0.0(从PC2过来的)需要通过2.0.0.2来转发,而RouterB里面的4.0.0.0(从PC1过来的),需要通过3.0.0.2进行转发

4、选路由器C 配置静态路由
C(config)# ip route 1.0.0.0 255.255.255.0 3.0.0.1
C(config)# ip route 2.0.0.0 255.255.255.0 3.0.0.1
5、选路由器B 配置静态路由
B(config)# ip route 1.0.0.0 255.255.255.0 2.0.0.2
B(config)# ip route 4.0.0.0 255.255.255.0 3.0.0.2
6、选路由器A 配置静态路由
B(config)# ip route 3.0.0.0 255.255.255.0 2.0.0.1
B(config)# ip route 4.0.0.0 255.255.255.0 2.0.0.1

作者:Chuck Lu    GitHub    
posted @   ChuckLu  阅读(5)  评论(0编辑  收藏  举报
相关博文:
阅读排行:
· 全程不用写代码,我用AI程序员写了一个飞机大战
· DeepSeek 开源周回顾「GitHub 热点速览」
· MongoDB 8.0这个新功能碉堡了,比商业数据库还牛
· 记一次.NET内存居高不下排查解决与启示
· 白话解读 Dapr 1.15:你的「微服务管家」又秀新绝活了
历史上的今天:
2021-06-01 Using more than one index per table is dangerous?
2021-06-01 Multiple Indexes vs Multi-Column Indexes
2021-06-01 SQL Server Index Naming Conventions
2021-06-01 What's different between INTERSECT and JOIN?
2021-06-01 Does EXCEPT execute faster than a JOIN when the table columns are the same
2021-06-01 Bad habits : Putting NOLOCK everywhere
2021-06-01 Understanding the Impact of NOLOCK and WITH NOLOCK Table Hints in SQL Server
点击右上角即可分享
微信分享提示