单区域OSPF路由协议的配置2

简介:

1.拓扑图

2.在各路由器上配置ospf
  R1:
  R2:
  R3:


3.查看邻居表、拓扑表、路由表
   R1:
r1#show ip ospf nei

Neighbor ID     Pri   State           Dead Time   Address         Interface
12.1.1.2          1   FULL/BDR        00:00:36    12.1.1.2        FastEthernet0/0
12.1.1.2          1   FULL/BDR        00:00:31    123.1.1.2       FastEthernet0/1
33.3.3.3          1   FULL/DROTHER    00:00:31    123.1.1.3       FastEthernet0/1
r1#show ip ospf data
            OSPF Router with ID (123.1.1.1) (Process ID 1)

                Router Link States (Area 0)

Link ID         ADV Router      Age         Seq#       Checksum Link count
123.1.1.1       123.1.1.1       1108        0x80000009 0x00fcff 2
12.1.1.2        12.1.1.2        1109        0x80000009 0x00fcff 2
33.3.3.3        33.3.3.3        950         0x8000000a 0x00fcff 2

                Net Link States (Area 0)
Link ID         ADV Router      Age         Seq#       Checksum
12.1.1.1        123.1.1.1       1119        0x8000000c 0x0094cc
123.1.1.1       123.1.1.1       959         0x8000000d 0x003198
r1#show ip route
Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP
       D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
       N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
       E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP
       i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area
       * - candidate default, U - per-user static route, o - ODR
       P - periodic downloaded static route

Gateway of last resort is not set

     3.0.0.0/32 is subnetted, 1 subnets
O       3.3.3.3 [110/2] via 123.1.1.3, 02:46:18, FastEthernet0/1
     12.0.0.0/24 is subnetted, 1 subnets
C       12.1.1.0 is directly connected, FastEthernet0/0
     123.0.0.0/24 is subnetted, 1 subnets
C       123.1.1.0 is directly connected, FastEthernet0/1
r1#

   R2:
r2#show ip ospf nei

Neighbor ID     Pri   State           Dead Time   Address         Interface
123.1.1.1         1   FULL/DR         00:00:31    12.1.1.1        FastEthernet0/0
123.1.1.1         1   FULL/DR         00:00:36    123.1.1.1       FastEthernet0/1
33.3.3.3          1   FULL/DROTHER    00:00:35    123.1.1.3       FastEthernet0/1
r2#show ip ospf data
            OSPF Router with ID (12.1.1.2) (Process ID 1)

                Router Link States (Area 0)

Link ID         ADV Router      Age         Seq#       Checksum Link count
12.1.1.2        12.1.1.2        1280        0x80000009 0x00fcff 2
123.1.1.1       123.1.1.1       1280        0x80000009 0x00fcff 2
33.3.3.3        33.3.3.3        1122        0x8000000a 0x00fcff 2

                Net Link States (Area 0)
Link ID         ADV Router      Age         Seq#       Checksum
12.1.1.1        123.1.1.1       1291        0x8000000c 0x0094cc
123.1.1.1       123.1.1.1       1131        0x8000000d 0x003198
r2#sho ip route
Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP
       D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
       N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
       E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP
       i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area
       * - candidate default, U - per-user static route, o - ODR
       P - periodic downloaded static route

Gateway of last resort is not set

     3.0.0.0/32 is subnetted, 1 subnets
O       3.3.3.3 [110/2] via 123.1.1.3, 02:49:14, FastEthernet0/1
     12.0.0.0/24 is subnetted, 1 subnets
C       12.1.1.0 is directly connected, FastEthernet0/0
     123.0.0.0/24 is subnetted, 1 subnets
C       123.1.1.0 is directly connected, FastEthernet0/1
r2#

   R3:
r3#
r3#show ip ospf nei

Neighbor ID     Pri   State           Dead Time   Address         Interface
12.1.1.2          1   FULL/BDR        00:00:39    123.1.1.2       FastEthernet0/0
123.1.1.1         1   FULL/DR         00:00:30    123.1.1.1       FastEthernet0/0
r3#show ip ospf data
            OSPF Router with ID (33.3.3.3) (Process ID 100)

                Router Link States (Area 0)

Link ID         ADV Router      Age         Seq#       Checksum Link count
33.3.3.3        33.3.3.3        1179        0x8000000a 0x00fcff 2
12.1.1.2        12.1.1.2        1339        0x80000009 0x00fcff 2
123.1.1.1       123.1.1.1       1338        0x80000009 0x00fcff 2

                Net Link States (Area 0)
Link ID         ADV Router      Age         Seq#       Checksum
12.1.1.1        123.1.1.1       1349        0x8000000c 0x0094cc
123.1.1.1       123.1.1.1       1189        0x8000000d 0x003198
r3#show ip route
Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP
       D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
       N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
       E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP
       i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area
       * - candidate default, U - per-user static route, o - ODR
       P - periodic downloaded static route

Gateway of last resort is not set

     3.0.0.0/24 is subnetted, 1 subnets
C       3.3.3.0 is directly connected, Loopback0
     12.0.0.0/24 is subnetted, 1 subnets
O       12.1.1.0 [110/2] via 123.1.1.2, 02:50:15, FastEthernet0/0
                 [110/2] via 123.1.1.1, 02:50:15, FastEthernet0/0
     33.0.0.0/24 is subnetted, 1 subnets
C       33.3.3.0 is directly connected, Loopback1
     123.0.0.0/24 is subnetted, 1 subnets
C       123.1.1.0 is directly connected, FastEthernet0/0
r3#
r3#




     本文转自kindIT 51CTO博客,原文链接:http://blog.51cto.com/kindit/1020350,如需转载请自行联系原作者



相关文章
|
8月前
|
网络架构
交换机与路由器技术-28-OSPF的NSSA区域
交换机与路由器技术-28-OSPF的NSSA区域
31 0
|
8月前
|
网络架构
交换机与路由器技术-25-OSPF多区域
交换机与路由器技术-25-OSPF多区域
25 0
|
8月前
|
网络架构
交换机与路由器技术-26-OSPF末梢区域
交换机与路由器技术-26-OSPF末梢区域
22 0
|
8月前
|
网络架构
交换机与路由器技术-24-OSPF单区域配置
交换机与路由器技术-24-OSPF单区域配置
44 0
|
网络协议 网络架构
OSPF路由协议——OSPF多区域原理和配置
六 OSPF的三种通信量 1.域内通信量 (lntra-Area Traffic) 单个区域内的路由器之间交换数据包构成的通信量 2.域间通信量 (Inter-Area Traffic) 不同区域的路由器之间交换数据包构成的通信量 3.外部通信量 (External Traffic) OSPF域内的路由器与OSPF区域外或另一个自治系统内 的路由器之间交换机数据包构成的通信量
398 0
OSPF路由协议——OSPF多区域原理和配置
|
网络协议 算法 数据库
链路状态路由协议OSPF——理解OSPF多区域原理
上几章学习了OSPF路由协议的基本概念、工作过程及单域的配置,但是在使用OSPF构建大型网络时,仅有单域是远远不够的。在大型网络中,网络结构的变化是时常发生的,而且随着多条网络路径的增加,路由表将变得越来越庞大。为了解决这个问题,OSPF允许把大型区域划分成多个更易管理的小型区域。本章主要介绍OSPF多区域的原理及配置。
328 0
链路状态路由协议OSPF——理解OSPF多区域原理
|
负载均衡 网络协议 数据库
应用最广泛的动态路由协议:OSPF
OSPF,英文全称:Open Shortest Path First,中文名称:开放最短路径优先。 OSPF是 IP 路由协议系列之一,是 Internet 的内部网关协议 (IGP),用于在 IP 网络中的单个自治系统 (AS) 中分发 IP 路由信息。
385 0
应用最广泛的动态路由协议:OSPF
|
网络协议 网络架构
|
网络协议 网络架构