您好,欢迎来到五一七教育网。
搜索
您的当前位置:首页RIP与静态路由重分布

RIP与静态路由重分布

来源:五一七教育网
RIP与静态路由重分布

RIP与静态路由重分布⼀、⽹络拓扑图

⼆、设备配置R1:Router>enaRouter#conf t

Enter configuration commands, one per line. End with CNTL/Z.Router(config)#hos R1R1(config)#int f 0/0

R1(config-if)#ip address 192.168.1.254 255.255.255.0R1(config-if)#no shutdownR1(config-if)#exit

%LINK-5-CHANGED: Interface FastEthernet0/0, changed state to up

%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to up R1(config)#int s 2/0R1(config-if)#ip address 192.168.2.1 255.255.255.0R1(config-if)#clo ra 000R1(config-if)#no shutdown

%LINK-5-CHANGED: Interface Serial2/0, changed state to downR1(config-if)#exiR1(config)#router ripR1(config-router)#ve 2

R1(config-router)#network 192.168.1.0R1(config-router)#network 192.168.2.0R1(config-router)#exiR1(config)#do wrBuilding configuration...[OK]R2:Router>Router>enaRouter#conf t

Enter configuration commands, one per line. End with CNTL/Z.Router(config)#hos R2R2(config)#int s 2/0

R2(config-if)#ip address 192.168.2.2 255.255.255.0R2(config-if)#no shutdown

%LINK-5-CHANGED: Interface Serial2/0, changed state to upR2(config-if)#exiR2(config)#int s 3/0

%LINEPROTO-5-UPDOWN: Line protocol on Interface Serial2/0, changed state to up R2(config-if)#ip address 192.168.3.1255.255.255.0

R2(config-if)#clo ra 000R2(config-if)#no shutdown

%LINK-5-CHANGED: Interface Serial3/0, changed state to downR2(config-if)#exiR2(config)#router ripR2(config-router)#ve 2

R2(config-router)#network 192.168.2.0R2(config-router)#default-information originateR2(config-router)#redistribute static metric 3R2(config-router)#exi

R2(config)#ip route 0.0.0.0 0.0.0.0 192.168.3.2

R2(config)#ip route 192.168.4.0 255.255.255.0 192.168.3.2R2(config)#do wrBuilding configuration...[OK]R3:

Router>Router>enaRouter#conf t

Enter configuration commands, one per line. End with CNTL/Z.Router(config)#hos R3R3(config)#int f 0/0

R3(config-if)#ip address 192.168.4.254 255.255.255.0R3(config-if)#no shutdownR3(config-if)#exit

%LINK-5-CHANGED: Interface FastEthernet0/0, changed state to up

%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to up R3(config)#int s 2/0R3(config-if)#ip address 192.168.3.2 255.255.255.0R3(config-if)#no shutdownR3(config-if)#exit

%LINK-5-CHANGED: Interface Serial2/0, changed state to upR3(config)#ip route 0.0.0.0 0.0.0.0 192.168.3.1

%LINEPROTO-5-UPDOWN: Line protocol on Interface Serial2/0, changed state to upR3(config)#ip route 192.168.2.0 255.255.255.0 192.168.3.1R3(config)#ip route 192.168.1.0 255.255.255.0 192.168.3.1Building configuration...[OK]测试结果:从PC0 ping PC1:

因篇幅问题不能全部显示,请点此查看更多更全内容

Copyright © 2019- 517ttc.cn 版权所有 赣ICP备2024042791号-8

违法及侵权请联系:TEL:199 18 7713 E-MAIL:2724546146@qq.com

本站由北京市万商天勤律师事务所王兴未律师提供法律服务