码迷,mamicode.com
首页 > 其他好文 > 详细

静态路由及默认路由实验配置

时间:2018-07-27 15:31:16      阅读:163      评论:0      收藏:0      [点我收藏+]

标签:hit   brief   vpd   5.0   默认   src   shadow   roc   shu   

实验拓扑图:

    技术分享图片


思科:

    R1:

        interface  F1/0

        ip address 192.168.1.1 255.255.255.255

        no shutdown      

        interface  F0/0

        ip address 192.168.2.1 255.255.255.255

        no shutdown

        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.2.2

        show ip interface brief

        show ip route

    R2:        

        interface  F0/0

        ip address 192.168.2.2 255.255.255.255

        no shutdown      

        interface  F1/0

        ip address 192.168.3.2 255.255.255.255

        no shutdown

        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.3

        show ip interface brief

        show ip route

    R3:

        interface F0/0

        ip address 192.168.3.3 255.255.255.0

        no shutdown

        interface F1/0

        ip address 192.168.4.3 255.255.255.0

        no shutdown

        ip route 0.0.0.0 0.0.0.0 192.168.3.2(使用默认路由,或者静态路由:ip route 192.168.2.0 255.255.255.0 192.168.3.2  ip route 192.168.1.0 255.255.255.0 192.168.3.2 )

        show ip interface brief

        show ip route

        


华为:

    R1:

        interface  F1/0

        ip address 192.168.1.1 24

        undo shutdown      

        interface  F0/0

        ip address 192.168.2.1 24

        undo shutdown

        ip route-static 192.168.3.0 24 192.168.2.2

        ip route-static 192.168.4.0 24 192.168.2.2

        display ip interface brief

        display ip routing-table

    R2:        

        interface  F0/0

        ip address 192.168.2.2 24

        undo shutdown      

        interface  F1/0

        ip address 192.168.3.2 24

        undo shutdown

        ip route-static 192.168.1.0 24 192.168.2.1

        ip route-static 192.168.4.0 24 192.168.3.3

        display ip interface brief

        display ip routing-table

    R3:

        interface F0/0

        ip address 192.168.3.3 24

        undo shutdown

        interface F1/0

        ip address 192.168.4.3 24

        undo shutdown

        ip route-static 0.0.0.0 0 192.168.3.2(使用默认路由,或者静态路由:ip route 192.168.2.0 24 192.168.3.2  ip route 192.168.1.0 24 192.168.3.2 )

        display ip interface brief

        display ip routing-table

        

        

        




静态路由及默认路由实验配置

标签:hit   brief   vpd   5.0   默认   src   shadow   roc   shu   

原文地址:http://blog.51cto.com/12950413/2151056

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!