zoukankan      html  css  js  c++  java
  • 绘图;OSPF 虚连接

    绘图;OSPF 虚连接

    原图如下

    绘图

    实验拓扑

    实验需求

    按照图示分区域配置OSPF
    配置虚连接认证

    实验步骤

    1. 配置相应接口IP地址及loopback 环回口地址
    2. 按照图示分区域配置OSPF
      AR1
    [Huawei]ospf router-id 1.1.1.1
    [Huawei-ospf-1]area 0
    [Huawei-ospf-1-area-0.0.0.0]network 1.1.1.1 0.0.0.0
    [Huawei-ospf-1-area-0.0.0.0]network 20.1.1.0 0.0.0.255
    

    AR2

    [Huawei]ospf router-id 2.2.2.2
    [Huawei-ospf-1]area 0
    [Huawei-ospf-1-area-0.0.0.0]network 2.2.2.2 0.0.0.0
    [Huawei-ospf-1-area-0.0.0.0]network 20.1.1.0 0.0.0.255
    [Huawei-ospf-1]area 1
    [Huawei-ospf-1-area-0.0.0.1]network 30.1.1.0 0.0.0.255
    

    AR3

    [Huawei]ospf router-id 3.3.3.3
    [Huawei-ospf-1]area 1
    [Huawei-ospf-1-area-0.0.0.1]network 3.3.3.3 0.0.0.0
    [Huawei-ospf-1-area-0.0.0.1]network 30.1.1.0 0.0.0.255
    [Huawei-ospf-1]area 2
    [Huawei-ospf-1-area-0.0.0.1]network 40.1.1.0 0.0.0.255
    

    AR4

    [Huawei]ospf router-id 4.4.4.4
    [Huawei-ospf-1]area 2
    [Huawei-ospf-1-area-0.0.0.1]network 4.4.4.4 0.0.0.0
    [Huawei-ospf-1-area-0.0.0.1]network 40.1.1.0 0.0.0.255
    

    AR1 PING AR3 测试连通性

    [Huawei]ping 3.3.3.3
      PING 3.3.3.3: 56  data bytes, press CTRL_C to break
        Reply from 3.3.3.3: bytes=56 Sequence=1 ttl=254 time=20 ms
        Reply from 3.3.3.3: bytes=56 Sequence=2 ttl=254 time=20 ms
        Reply from 3.3.3.3: bytes=56 Sequence=3 ttl=254 time=30 ms
        Reply from 3.3.3.3: bytes=56 Sequence=4 ttl=254 time=40 ms
        Reply from 3.3.3.3: bytes=56 Sequence=5 ttl=254 time=40 ms
    
      --- 3.3.3.3 ping statistics ---
        5 packet(s) transmitted
        5 packet(s) received
        0.00% packet loss
        round-trip min/avg/max = 20/30/40 ms
    

    配置虚连接

    ospf非骨干区域必须和骨干区域相连才能通信,为了不改变网络拓扑,我们可以实现虚连接来扩大区域0的面积,实现区域互通。
    AR2

    [Huawei-ospf-1-area-0.0.0.1]vlink-peer 3.3.3.3
    

    AR3

    [Huawei-ospf-1-area-0.0.0.1]vlink-peer 2.2.2.2
    

    在AR3上查看虚连接

    建成邻居后 是P2P的一个链路

    [Huawei]dis ospf vlink 
    
    	 OSPF Process 1 with Router ID 3.3.3.3
    		 Virtual Links 
    
     Virtual-link Neighbor-id  -> 2.2.2.2, Neighbor-State: Full
    
     Interface: 30.1.1.2 (GigabitEthernet0/0/0)
     Cost: 1  State: P-2-P  Type: Virtual 
     Transit Area: 0.0.0.1 
     Timers: Hello 10 , Dead 40 , Retransmit 5 , Transmit Delay 1 
     GR State: Normal 
    

    AR1 PING AR4

    [Huawei]ping 4.4.4.4
      PING 4.4.4.4: 56  data bytes, press CTRL_C to break
        Reply from 4.4.4.4: bytes=56 Sequence=1 ttl=253 time=40 ms
        Reply from 4.4.4.4: bytes=56 Sequence=2 ttl=253 time=40 ms
        Reply from 4.4.4.4: bytes=56 Sequence=3 ttl=253 time=30 ms
        Reply from 4.4.4.4: bytes=56 Sequence=4 ttl=253 time=30 ms
        Reply from 4.4.4.4: bytes=56 Sequence=5 ttl=253 time=30 ms
    
      --- 4.4.4.4 ping statistics ---
        5 packet(s) transmitted
        5 packet(s) received
        0.00% packet loss
        round-trip min/avg/max = 30/34/40 ms
    

    虚连接上做认证

    AR2

    [Huawei-ospf-1-area-0.0.0.1]vlink-peer 3.3.3.3 simple cipher 123
    

    AR3

    [Huawei-ospf-1-area-0.0.0.1]vlink-peer 2.2.2.2 simple cipher 123
    

    测试连通性,AR4 PING AR1

    <Huawei>ping 1.1.1.1
      PING 1.1.1.1: 56  data bytes, press CTRL_C to break
        Reply from 1.1.1.1: bytes=56 Sequence=1 ttl=253 time=40 ms
        Reply from 1.1.1.1: bytes=56 Sequence=2 ttl=253 time=30 ms
        Reply from 1.1.1.1: bytes=56 Sequence=3 ttl=253 time=40 ms
        Reply from 1.1.1.1: bytes=56 Sequence=4 ttl=253 time=30 ms
        Reply from 1.1.1.1: bytes=56 Sequence=5 ttl=253 time=50 ms
    
      --- 1.1.1.1 ping statistics ---
        5 packet(s) transmitted
        5 packet(s) received
        0.00% packet loss
        round-trip min/avg/max = 30/38/50 ms
    
  • 相关阅读:
    eclipse快捷键 Eclipse快捷键 10个最有用的快捷键
    ssh之雇员管理系统(5)将struts+spring整合2
    ssh之雇员管理系统(4)改进的hibernate测试
    java中常常建包时,这些包具体是什么意思呢?+项目开发流程、实战
    ssh之雇员管理系统(1)spring测试
    JUnit4概述
    ssh之雇员管理系统(5)添加struts测试
    SQl查询数据库表名、表的列名
    关于人脉大PK的二三事 推荐的方法
    JavaScript有用的代码(ie,save)
  • 原文地址:https://www.cnblogs.com/yu15/p/11290224.html
Copyright © 2011-2022 走看看