靜態路由及默認路由實驗配置

實驗拓撲圖:

    image.png


思科:

    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

        

        

        




發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章