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

    实验要求:使用OSPF路由协议,使每个路由器都能收集到所有网段

    拓扑如下:

    配置如下:

    R1
    enable
    configure terminal
    interface l0
    ip address 192.168.10.1 255.255.255.0
    interface s0/0/0
    ip address 192.168.1.1 255.255.255.252
    no shutdown
    exit
    router ospf 1
    network 192.168.10.0 0.0.0.255 area 0
    network 192.168.1.0 0.0.0.3 area 0


    R2
    enable
    configure terminal
    interface s0/0/0
    ip address 192.168.1.2 255.255.255.252
    clock rate 64000
    no shutdown
    interface s0/0/1
    ip address 192.168.1.5 255.255.255.252
    clock rate 64000
    no shutdown
    exit
    router ospf 1
    network 192.168.1.0 0.0.0.3 area 0
    network 192.168.1.4 0.0.0.3 area 0

    R3
    enable
    configure terminal
    interface s0/0/1
    ip address 192.168.1.6 255.255.255.252
    no shutdown
    interface s0/0/0
    ip address 192.168.1.9 255.255.255.252
    clock rate 64000
    no shutdown
    exit
    router ospf 1
    network 192.168.1.4 0.0.0.3 area 0
    network 192.168.1.8 0.0.0.3 area 0

    R4
    enable
    configure terminal
    interface l0
    ip address 192.168.20.1 255.255.255.0
    interface s0/0/0
    ip address 192.168.1.10 255.255.255.252
    no shutdown
    exit
    router ospf 1
    network 192.168.1.8 0.0.0.3 area 0
    network 192.168.20.0 0.0.0.255 area 0

  • 相关阅读:
    Linux 环境变量 设置 etc profile
    Linux 升级glibc-2.14 失败 我遇到的问题
    qt窗口的切换
    qt事件机制---事件范例
    qt中的事件机制
    qt的信号与槽函数
    linux下qt的安装
    qt中的udp编程
    qt中的tcp编程
    qt中的多线程
  • 原文地址:https://www.cnblogs.com/guoshiyu/p/9229683.html
Copyright © 2011-2022 走看看