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

  • 相关阅读:
    硬盘任性丢数据,但分布式存储一定可靠吗?
    Service的基本组成
    固定cell.imageView.image的大小
    剪贴板服务
    取得正在运行的Activity
    取得正在运行的服务
    C#.NET学习笔记1---C#.NET简介
    取得手机的网络信息
    四、cocos2dx动画Animation介绍
    C#.NET学习笔记2---C#.第一个C#程序
  • 原文地址:https://www.cnblogs.com/guoshiyu/p/9228811.html
Copyright © 2011-2022 走看看