码迷,mamicode.com
首页 > 其他好文 > 详细

绘图;OSPF 虚连接

时间:2019-08-02 18:30:29      阅读:108      评论:0      收藏:0      [点我收藏+]

标签:out   分区   reply   inf   ack   邻居   packet   timer   virt   

绘图;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

绘图;OSPF 虚连接

标签:out   分区   reply   inf   ack   邻居   packet   timer   virt   

原文地址:https://www.cnblogs.com/yu15/p/11290224.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!