拓扑实验记录配置OSPF单域

本文记录了一次拓扑实验,通过配置OSPF协议成功实现了网络中所有设备的互联互通。实验步骤包括配置OSPF和使用相关命令进行验证,最终达到全网能ping通的目标。
摘要由CSDN通过智能技术生成

1)配置OSPF实现全网互通。

2)使用命令验证配置。

搭建实验环境:
在这里插入图片描述

现此案例需要按照如下步骤进行。

//R1的配置
 ospf 1 router-id 1.1.1.1
       area 0 
         network 192.168.10.0 0.0.0.255
         network 192.168.1.1 0.0.0.0
      network 192.168.21.0 0.0.0.3
//R2的配置
  ospf 1 router-id 2.2.2.2
        area 0 
          network 192.168.21.0 0.0.0.3
network 192.168.23.0 0.0.0.3
network 192.168.2.1 0.0.0.0
//R3的配置
  ospf 1 router-id 3.3.3.3
        area 0 
          network 192.168.23.0 0.0.0.3
          network 192.168.30.0 0.0.0.255
network 192.168.3.1 0.0.0.0

    
    
    
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18

能够全网ping通。

[R1]dis ospf brief 
     OSPF Process 1 with Router ID 1.1.1.1
         OSPF Protocol Information
 RouterID: 1.1.1.1          Border Router: 
 Multi-VPN-Instance is not enabled
 Global DS-TE Mode: Non-Standard IETF Mode
 Graceful-restart capability: disabled
 Helper support capability  : not configured
 Applications Supported: MPLS Traffic-Engineering 
 Spf-schedule-interval: max 10000ms, start 500ms, hold 1000ms
 Default ASE parameters: Metric: 1 Tag: 1 Type: 2
 Route Preference: 10 
 ASE Route Preference: 150 
 SPF Computation Count: 11    
 RFC 1583 Compatible
 Retransmission limitation is disabled
 Area Count: 1   Nssa Area Count: 0 
 ExChange/Loading Neighbors: 0
 Process total up interface count: 3
 Process valid up interface count: 1
 Area: 0.0.0.0          (MPLS TE not enabled)
 Authtype: None   Area flag: Normal
 SPF scheduled Count: 11    
 ExChange/Loading Neighbors: 0
 Router ID conflict state: Normal
 Area interface up count: 3
 Interface: 192.168.21.1 (GigabitEthernet0/0/0)
 Cost: 1       State: DR        Type: Broadcast    MTU: 1500  
 Priority: 1
 Designated Router: 192.168.21.1
 Backup Designated Router: 192.168.21.2
 Timers: Hello 10 , Dead 40 , Poll  120 , Retransmit 5 , Transmit Delay 1 
 Interface: 192.168.1.1 (LoopBack0)
 Cost: 0       State: P-2-P     Type: P2P       MTU: 1500  
 Timers: Hello 10 , Dead 40 , Poll  120 , Retransmit 5 , Transmit Delay 1 
 Interface: 192.168.10.1 (LoopBack1)
 Cost: 0       State: P-2-P     Type: P2P       MTU: 1500  
 Timers: Hello 10 , Dead 40 , Poll  120 , Retransmit 5 , Transmit Delay 1
[R2]dis ospf brief 
     OSPF Process 1 with Router ID 2.2.2.2
         OSPF Protocol Information
 RouterID: 2.2.2.2          Border Router: 
 Multi-VPN-Instance is not enabled
 Global DS-TE Mode: Non-Standard IETF Mode
 Graceful-restart capability: disabled
 Helper support capability  : not configured
 Applications Supported: MPLS Traffic-Engineering 
 Spf-schedule-interval: max 10000ms, start 500ms, hold 1000ms
 Default ASE parameters: Metric: 1 Tag: 1 Type: 2
 Route Preference: 10 
 ASE Route Preference: 150 
 SPF Computation Count: 11    
 RFC 1583 Compatible
 Retransmission limitation is disabled
 Area Count: 1   Nssa Area Count: 0 
 ExChange/Loading Neighbors: 0
 Proces
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

尹汇川

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值