Лабораторная 6.4: Проверка однозонного OSPF

Лабораторная 6.4: Проверка  однозонного OSPF

Существует несколько возможностей проверки конфигурации и работы OSPF.

1. Команда show ip ospf используется для отображения OSPF-информации для одного или всех OSPF-процессов, выполняющихся на маршрутизаторе. Эта информация включает в себя: Router ID, зону, статистику SPF и информацию о LSA таймерах. Посмотрите пример выполнения на 2600A:

2600A#sho ip ospf
 Routing Process "ospf 100" with ID 172.16.40.1
 Supports only single TOS(TOS0) routes
 Supports opaque LSA
 SPF schedule delay 5 secs, Hold time between two SPFs 10 secs
 Minimum LSA interval 5 secs. Minimum LSA arrival 1 secs
 LSA group pacing timer 240 secs
 Interface flood pacing timer 33 msecs
 Retransmission pacing timer 66 msecs
 Number of external LSA 0. Checksum Sum 0x000000
 Number of opaque AS LSA 0. Checksum Sum 0x000000
 Number of DCbitless external and opaque AS LSA 0
 Number of DoNotAge external and opaque AS LSA 0
 Number of areas in this router is 1. 1 normal 0 stub 0 nssa
 External flood list length 0

    Area BACKBONE(0)

        Number of interfaces in this area is 2
        Area has no authentication
        SPF algorithm executed 7 times
        Area ranges are
        Number of LSA 3. Checksum Sum 0x01447A
        Number of opaque link LSA 0. Checksum Sum 0x000000
        Number of DCbitless LSA 0
        Number of indication LSA 0
        Number of DoNotAge LSA 0
        Flood list length 0

2600A#


2. Информация получаемая командой show ip ospf database приведена для 2600A ниже:

2600A#show ip ospf database

            OSPF Router with ID (172.16.40.1) (Process ID 100)
                Router Link States (Area 0)

Link ID         ADV Router      Age   Seq#      Checksum Link count

172.16.30.1     172.16.30.1     475   0x8000003 0x0030F9 3
172.16.40.1     172.16.40.1     475   0x8000003 0x0030F9 3
172.16.50.1     172.16.50.1     475   0x8000003 0x0030F9 3

2600A#

3. Команда show ip ospf interface показывает OSPF-информацию по всем интерфейсам или для указанного. Информация включает =

  1. IP-адрес интервейса, назначенные зоны,
  2. идентификатор процесса OSPF,
  3. Router ID,
  4. тип сети,
  5. параметр "стоимость" (cost),
  6. приоритет,
  7. статус DR или BDR (если применимо к данному типу сети), таймеры, информацию о соседях.

См. пример:

2600A#show ip ospf interface

FastEthernet0/0 is up, line protocol is up

  Internet Address 172.16.40.1/24, Area 0
  Process ID 100, Router ID 172.16.40.1, Network Type BROADCAST, Cost: 1
  Transmit Delay is 1 sec, State DR, Priority 1
  Designated Router (ID) 172.16.40.1, Interface address 172.16.40.1
  No backup designated router on this network
  Timer intervals configured, Hello 10, Dead 40, Wait 40, Retransmit 5

    Hello due in 00:00:06
  Index 2/2, flood queue length 0

  Next 0x0(0)/0x0(0)
  Last flood scan length is 0, maximum is 0
  Last flood scan time is 0 msec, maximum is 0 msec
  Neighbor Count is 0, Adjacent neighbor count is 0
  Suppress hello for 0 neighbor(s)

Serial0/0 is up, line protocol is up
  Internet Address 172.16.20.2/24, Area 0
  Process ID 100, Router ID 172.16.40.1, Network Type POINT_TO_POINT, Cost: 64
  Transmit Delay is 1 sec, State POINT_TO_POINT,
  Timer intervals configured, Hello 10, Dead 40, Wait 40, Retransmit 5

    Hello due in 00:00:08
  Index 1/1, flood queue length 0
  Next 0x0(0)/0x0(0)
  Last flood scan length is 1, maximum is 1
  Last flood scan time is 0 msec, maximum is 0 msec
  Neighbor Count is 1, Adjacent neighbor count is 1

    Adjacent with neighbor 172.16.30.1
  Suppress hello for 0 neighbor(s)

2600A#

4. Команда show ip ospf neighbor дает краткую информацию о соседях и состоянии соседства. Если существует маршрутизатор со статусом DR или BDR - это показывается командой. Ниже в качестве примера, результат команды на 2600A:

2600A#show ip ospf neighbor
Neighbor ID     Pri   State           Dead Time   Address         Interface
172.16.30.1       1   FULL/  -        00:00:31    172.16.20.1     Serial0/0
2600A#

5. Команда show ip protocols полезна для получения информации о любом протоколе маршрутизации: OSPF, EIGRP, IGRP, RIP, BGP, ISIS сконфигурированном на маршрутизаторе.

2600A#show ip protocols

Routing Protocol is "ospf 100"

  Outgoing update filter list for all interfaces is not set
  Incoming update filter list for all interfaces is not set
  Router ID 172.16.40.1
  Number of areas in this router is 1. 1 normal 0 stub 0 nssa

  Maximum path: 4
  Routing for Networks:
    172.16.20.2 0.0.0.0 area 0
    172.16.40.0 0.0.0.255 area 0
  Routing Information Sources:

    Gateway         Distance      Last Update
    172.16.50.1          110      00:37:17
    172.16.40.1          110      00:37:17
    172.16.30.1          110      00:37:17
  Distance: (default is 110)
2600A#

6. Согласно результату команды выше, можно определить =

  1. идентификатор OSPF процесса,
  2. OSPF Router ID,
  3. тип OSPF зоны,
  4. сети и зоны, сконфигурированные в OSPF,
  5. Router ID соседей.
vedro-compota's picture


2600A>enable
Password: 
2600A#show ip ospf
 Routing Process "ospf 100" with ID 172.16.40.1
 Supports only single TOS(TOS0) routes
 Supports opaque LSA
 SPF schedule delay 5 secs, Hold time between two SPFs 10 secs
 Minimum LSA interval 5 secs. Minimum LSA arrival 1 secs
 Number of external LSA 0. Checksum Sum 0x000000
 Number of opaque AS LSA 0. Checksum Sum 0x000000
 Number of DCbitless external and opaque AS LSA 0
 Number of DoNotAge external and opaque AS LSA 0
 Number of areas in this router is 1. 1 normal 0 stub 0 nssa
 External flood list length 0
    Area BACKBONE(0)
        Number of interfaces in this area is 2
        Area has no authentication
        SPF algorithm executed 3 times
        Area ranges are
        Number of LSA 3. Checksum Sum 0x010c2d
        Number of opaque link LSA 0. Checksum Sum 0x000000
        Number of DCbitless LSA 0
        Number of indication LSA 0
        Number of DoNotAge LSA 0
        Flood list length 0

2600A#show ip ospf database
            OSPF Router with ID (172.16.40.1) (Process ID 100)

                Router Link States (Area 0)

Link ID         ADV Router      Age         Seq#       Checksum Link count
172.16.40.1     172.16.40.1     389         0x80000003 0x00740f 3
172.16.30.1     172.16.30.1     369         0x80000005 0x00372e 5
172.16.50.1     172.16.50.1     369         0x80000003 0x0060f0 3
2600A#show ip ospf interface
Serial0/0 is up, line protocol is up
  Internet address is 172.16.20.2/24, Area 0
  Process ID 100, Router ID 172.16.40.1, Network Type POINT-TO-POINT, Cost: 64
  Transmit Delay is 1 sec, State POINT-TO-POINT, Priority 0
  No designated router on this network
  No backup designated router on this network
  Timer intervals configured, Hello 10, Dead 40, Wait 40, Retransmit 5
    Hello due in 00:00:08
  Index 1/1, flood queue length 0
  Next 0x0(0)/0x0(0)
  Last flood scan length is 1, maximum is 1
  Last flood scan time is 0 msec, maximum is 0 msec
  Neighbor Count is 1 , Adjacent neighbor count is 1
    Adjacent with neighbor 172.16.30.1
  Suppress hello for 0 neighbor(s)
FastEthernet0/0 is up, line protocol is up
  Internet address is 172.16.40.1/24, Area 0
  Process ID 100, Router ID 172.16.40.1, Network Type BROADCAST, Cost: 1
  Transmit Delay is 1 sec, State DR, Priority 1
  Designated Router (ID) 172.16.40.1, Interface address 172.16.40.1
  No backup designated router on this network
  Timer intervals configured, Hello 10, Dead 40, Wait 40, Retransmit 5
    Hello due in 00:00:08
  Index 2/2, flood queue length 0
  Next 0x0(0)/0x0(0)
  Last flood scan length is 1, maximum is 1
  Last flood scan time is 0 msec, maximum is 0 msec
  Neighbor Count is 0, Adjacent neighbor count is 0
  Suppress hello for 0 neighbor(s)
2600A#
2600A#show ip ospf neighbor

Neighbor ID     Pri   State           Dead Time   Address         Interface
172.16.30.1       0   FULL/  -        00:00:38    172.16.20.1     Serial0/0
2600A#show ip protocols

Routing Protocol is "ospf 100"
  Outgoing update filter list for all interfaces is not set 
  Incoming update filter list for all interfaces is not set 
  Router ID 172.16.40.1
  Number of areas in this router is 1. 1 normal 0 stub 0 nssa
  Maximum path: 4
  Routing for Networks:
    172.16.20.2 0.0.0.0 area 0
    172.16.40.0 0.0.0.255 area 0
  Routing Information Sources:  
    Gateway         Distance      Last Update 
    172.16.30.1          110      00:11:23
    172.16.40.1          110      00:11:43
    172.16.50.1          110      00:11:23
  Distance: (default is 110)

2600A#

_____________
матфак вгу и остальная классика =)