zoukankan      html  css  js  c++  java
  • OSPF路由协议(一)

    实验要求:使用OSPF协议,使各个PC之间能够相互通信

    拓扑如下:

    配置如下:

    R1
    enable
    configure terminal
    interface f0/0
    ip address 192.168.1.18 255.255.255.252
    no shutdown
    interface s0/0/0
    ip address 192.168.4.9 255.255.255.252
    clock rate 64000
    no shutdown
    interface s0/0/1
    ip address 192.168.4.5 255.255.255.252
    clock rate 64000
    no shutdown
    exit
    router ospf 1
    network 192.168.4.4 0.0.0.3 area 0
    network 192.168.4.8 0.0.0.3 area 0
    network 192.168.1.16 0.0.0.3 area 1


    R2
    enable
    configure terminal
    interface f0/0
    ip address 192.168.1.21 255.255.255.252
    no shutdown
    interface f0/1
    ip address 192.168.4.2 255.255.255.252
    no shutdown
    interface s0/0/0
    ip address 192.168.4.6 255.255.255.252
    no shutdown
    exit
    router ospf 1
    network 192.168.4.4 0.0.0.3 area 0
    network 192.168.4.0 0.0.0.3 area 0
    network 192.168.1.20 0.0.0.3 area 1


    R3
    enable
    configure terminal
    interface f0/0
    ip address 192.168.1.26 255.255.255.252
    no shutdown
    interface f0/1
    ip address 192.168.4.1 255.255.255.252
    no shutdown
    interface s0/0/0
    ip address 192.168.4.10 255.255.255.252
    no shutdown
    exit
    router ospf 1
    network 192.168.4.8 0.0.0.3 area 0
    network 192.168.4.0 0.0.0.3 area 0
    network 192.168.1.24 0.0.0.3 area 1


    R4
    enable
    configure terminal
    interface f0/0
    ip address 172.16.3.254 255.255.255.0
    no shutdown
    interface f0/1
    ip address 192.168.1.25 255.255.255.252
    no shutdown
    exit
    router ospf 1
    network 192.168.1.24 0.0.0.3 area 1
    network 172.16.3.0 0.0.0.255 area 1


    R5
    enable
    configure terminal
    interface f0/0
    ip address 172.16.1.254 255.255.255.0
    no shutdown
    interface f0/1
    ip address 192.168.1.17 255.255.255.252
    no shutdown
    exit
    router ospf 1
    network 192.168.1.16 0.0.0.3 area 1
    network 172.16.1.0 0.0.0.255 area 1


    R6
    enable
    configure terminal
    interface f0/0
    ip address 172.16.2.254 255.255.255.0
    no shutdown
    interface f0/1
    ip address 192.168.1.22 255.255.255.252
    no shutdown
    exit
    router ospf 1
    network 192.168.1.20 0.0.0.3 area 1
    network 172.16.2.0 0.0.0.255 area 1

  • 相关阅读:
    A.4.2虚函数 virtual 和多态的实现
    A.51,集合类 ArrayList。2,对字符串的处理(String)
    A.4.1类的继承(implement)
    Android ExpandableListView的使用
    Android 使用SAX解析XML
    [转]Android 内存监测工具 DDMS > Heap .
    Android中 ExpandableList的使用2
    Android 横屏竖屏的切换
    Android 文件操作
    Android Preference的使用总结(很全很详细)以及SharedPreferences多个程序之间共享数据
  • 原文地址:https://www.cnblogs.com/guoshiyu/p/9228811.html
Copyright © 2011-2022 走看看