zoukankan      html  css  js  c++  java
  • OSPF综合实验一

     OSPF综合实验一

    实验要求:

    1.R1 为ISP,其上只能配置IP地址。
    2.R2-R7地址为172.16.0.0/16,R3上不运行OSPF协议,仅进行IP配置。
    3.R2/R4/R5间组建MGRE环境,R2 为中心站点。
    4.R2-R7 除了R3均可访问R1环回。
    5.R5-R7间R5为DR和无BDR。
    7.除R3外路由器均有一个PC。

    实验拓扑图:

    OSPF综合实验一拓扑图

     Web IOU 模拟器拓扑书写及IOS选择:

    NETMAP:

    1:0/0 2:0/0
    2:0/1 3:0/0
    3:0/1 4:0/0
    3:0/2 5:0/0
    5:0/1 8:0/0
    8:0/1 6:0/0
    8:0/2 7:0/0

    Web IOU 模拟器 OSPF综合实验一IOS 选择

    IP地址规划: 

    路由器 接口 IP地址
    R1

    E0/0

    12.1.1.1/24
    R2 E0/0 12.1.1.2/24
    R2 E0/1 172.16.0.1/25
    R2 tunnel0 172.16.1.129/25
    R3 E0/0 172.16.0.2/25
    R3

    E0/1

    172.16.0.129/25
    R3 E0/2 172.16.1.1/25
    R4 E0/0 172.16.0.130/25
    R4 tunnel0 172.16.1.130/25
    R5 E0/0 172.16.1.2/25
    R5 E0/1 172.16.32.1/25
    R5 tunnel0 172.16.1.131/25
    R6 E0/0 172.16.32.2/25
    R7 E0/0 172.16.32.3/25

    环回地址

    路由器 IP地址 R1 1.1.1.1/25 R2 172.16.2.1/25 R4 172.16.4.1/25 R5 172.16.5.1/25 R6 172.16.32.129/25 R7 172.16.33.1/25

    注:掩码/25位是255.255.255.128

    配置:

           1.配置IP地址。

           2.R2上配置NAT。

           3.R2 R4  R5之间配置MGRE环境(R2 R4 R5 之间写浮动静态路由)。

           4.除R1 R3外起ospf路由协议。

     详细配置:

     1.MGRE配置:

    R2配置

    interface tunnel 0
    ip address  172.16.1.129 255.255.255.128  
    tunnel source serial 1/2         //定义Tunnel的源
    tunnel mode gre multipoint    //修改模式为gre多点
    ip nhrp map multicast  dynamic   //本地成为NHRP的server;
    ip nhrp network-id 100   //工作ID
    ip ospf network point-to-multipoint   //工作模式改为点到多点

    R4和R5的配置

    interface tunnel 0
    ip address 172.16.1.130 255.255.255.128
     // R4的tunnel地址 172.16.1.130    R5的tunnel地址 172.16.1.131
    tunnel source serial 1/2
    tunnel mode gre multipoint
    ip nhrp nhs 172.16.1.129  // 定义NHRP的server,此处必须为tunnel口地址
    ip nhrp map 172.16.1.129 172.16.0.1   //映射tunnel的公网地址
    ip nhrp network-id 100
    ip ospf network point-to-multipoint  //更改工作方式点到多点
    p nhrp map multicast 172.16.1.129  //开启伪广播
    
    

      2.NAT配置  (R2 上进行配置)

    interface e0/0 
    ip nat outside 
    exit
    interface tunnel 0
    ip nat inside 
    exit
    ip nat inside source list 1 interface e0/1 overload  
    access-list 1 permit 192.168.0.0 0.0.255.255  //创建acl
    exit
    ip route 0.0.0.0 0.0.0.0 10.1.1.2  //静态缺省
    router ospf 1  //1是起的路由协议ospf的进程号
    redistribute static subnets    //把缺省重发布到ospf中

     3.OSPF宣告

    r2(config)#router ospf 1 
    
    r2(config-router)#router-id 2.2.2.2  
    
    r1(config-router)#network 172.16.1.1290.0.0.0 area 0
    
    r1(config-router)#network 172.16.2.1 0.0.0.0 area 0
    
    //注:其他ospf宣告同R2 ,R2 R4 R5 R6 R7 R8 进行ospf宣告。
  • 相关阅读:
    artTemplate的使用总结
    死锁的简单实现
    代理模式
    装饰器模式
    建造者模式
    工厂模式
    单例模式
    linux查看日志内容
    系统信息及系统操作
    设计模式-建造者模式
  • 原文地址:https://www.cnblogs.com/tianyao2020/p/12527837.html
Copyright © 2011-2022 走看看