OSPF. Резюме — различия между версиями

Материал из Cisco CCNP
Перейти к навигации Перейти к поиску
imported>Artem
imported>Artem
Строка 25: Строка 25:
 
**'''debug ip ospf adj'''
 
**'''debug ip ospf adj'''
 
**'''debug ip ospf packet'''
 
**'''debug ip ospf packet'''
−
■ How the OSPF router ID is selected: with the router-id ip-address router configuration
+
*Как маршрутизаторы выбирает router ID: командой '''router-id''' ''ip-address'', наибольшим IP-адресом на любом активном loopback-интерфейсе или наибольшим IP-адресом на любом активном физическом интерфейсе OSPF. ID выбирается при старте процесса OSPF.
−
command, the highest IP address on any active loopback interface, or the highest
+
*Три типа сетей OSPF: '''point-to-point''', '''broadcast''' и '''NBMA'''.
−
IP address of any active physical interface when OSPF starts.
+
*Как выбирается DR и BDR: маршрутизатор с наибольшим приоритетом становится DR. Маршрутизатор со вторым наибольшим приоритетом становится BDR. The router ID breaks a tie. Маршрутизатор с приоритетом 0 не станет DR или BDR. Приоритет устанавливается командой '''ip ospf priority''' ''number'' на интерфейсе.
−
■ The three types of networks defined by OSPF: point-to-point, broadcast, and NBMA.
+
 
−
■ How a DR and BDR are selected: The router with the highest priority is the DR, the
+
 
−
router with the second highest priority is the BDR. The router ID breaks a tie. A
+
■ The five modes of OSPF operation available for NBMA networks: nonbroadcast and
−
router with priority 0 does not become either the DR or the BDR. The priority is set
+
point-to-multipoint RFC modes, and broadcast, point-to-multipoint nonbroadcast,
−
with the ip ospf priority number interface configuration command
+
and point-to-point Cisco modes. (Refer to Table 3-11 for a summary of these modes).
 +
■ The 11 different OSPF LSA types. The first five are the most commonly used: type
 +
1 (router, generated by every router), type 2 (network, generated by DR), type 3
 +
(summary, describes area routes, generated by ABR), type 4 (summary, describes
 +
route to ASBR, generated by ABR), and type 5 (external, describes routes to external
 +
destinations, generated by ASBR).
 +
■ The three kinds of OSPF routes: intra-area (O), interarea (O IA), and external (either
 +
O E1 or O E2).
 +
■ Configuring OSPF LSDB overload protection using the max-lsa maximum-number
 +
[threshold-percentage] [warning-only] [ignore-time minutes] [ignore-count countnumber]
 +
[reset-time minutes] router configuration command.
 +
■ Using the passive-interface type number [default] router configuration command to
 +
prevent a routing protocol’s routing updates from being sent through the specified
 +
router interface. With OSPF, the specified interface appears as a stub network, and
 +
OSPF routing information is neither sent nor received through the specified interface.
 +
■ How default routes can be used in OSPF to prevent the need for a specific route to
 +
all destination networks. The benefit is a much smaller routing table and LSDB, with
 +
complete reachability. Propagate an OSPF default route using the default-information
 +
originate [always] [metric metric-value] [metric-type type-value] [route-map
 +
map-name] router configuration command.
 +
■ Configuring route summarization to improve CPU utilization, reduce LSA flooding,
 +
and reduce LSDB and routing table sizes. OSPF does not automatically summarize.
 +
OSPF summarization can be configured on an ABR using the area area-id range
 +
address mask [advertise | not-advertise] [cost cost] router configuration command,
 +
and on an ASBR using the summary-address ip-address mask [not-advertise] [tag
 +
tag] router configuration command.
 +
■ The OSPF virtual link feature, used to temporarily mend backbone failures or connect
 +
a disconnected area to the backbone. Virtual links are configured with the area
 +
area-id virtual-link router-id [authentication [message-digest | null]] [hello-interval
 +
seconds] [retransmit-interval seconds] [transmit-delay seconds] [dead-interval
 +
seconds] [[authentication-key key] | [message-digest-key key-id md5 key]] router
 +
configuration command, and verified with the show ip ospf virtual-links command.
 +
■ The several area types defined in OSPF: standard areas, backbone areas, stub areas,
 +
totally stubby areas, NSSAs, and totally stubby NSSAs. (Refer to Table 3-23 for a
 +
summary of the area types.) The area area-id stub router configuration command is
 +
used to configure stub areas. The no-summary keyword is added to this command
 +
on the ABR to make the area totally stubby. The area area-id nssa [no-redistribution]
 +
[default-information-originate] [metric metric-value] [metric-type type-value]

Версия 07:10, 9 ноября 2012

В этой главе рассказывается о протоколе OSPF. Глава сфокусирована на следующих темах:

  • Характеристики протоколов маршрутизации с учётом состояния каналов, таких как OSPF, включая таблицы (таблица соседей, топологическая LSDB и таблица маршрутизации.
  • Иерархическая двухуровневая зонная структура с магистральной и немагистральными зонами.
  • Различные типы маршрутизаторов OSPF: internal маршрутизаторы, магистральные маршрутизаторы, ABR, ASBR.
  • Как маршрутизаторы OSPF используют Hello протокол для установления соседских отношений. После того, как два маршрутизатора установили отношения с использованием hello-пакетов, они синхронизируют свои LSDB базы, обмениваясь LSA и подтверждая получение LSA от соседнего маршрутизатора. Маршрутизаторы на point-to-point каналах формируют full adjacency друг с другом, в то время как маршрутизаторы на LAN каналах формируют full adjacency с DR и BDR.
  • Расчёт метрики на маршрутизаторах Cisco по умолчанию основан на пропускной способности канала. Если используются интерфейсы быстрее, чем 100 мбит необходимо использовать команду auto-cost reference-bandwidth ref-bw на всех маршрутизаторах для переопределения эталонной стоимости. Чтобы изменить стоимость по умолчанию, задайте вручную стоимость используя команду ip ospf cosco interface-cost на интерфейсе.
  • Пять типов пакетов OSPF: hello, DBD, LSR, LSU и LSAck. Hello-пакеты используются для обнаружения соседей и установки смежности. DBD используются для синхронизации LSDB. LSR используются для запроса определённых link-state записей, а LSU используются для отправки запрошенных записей. LSAck - для подтверждения других типов пакетов. Трафик OSPF использует IP-протокол 89.
  • Состояния, которые может пройти сосед при установлении отношения смежности: down, (possibly attempt), init, two-way, exstart, exchange, loading и full.
  • Пять полей hello-пакета, которые должны совпадать на соседних маршрутизаторах: Hello-interval, Dead-interval, Area ID, Authentication Password и Stub Area Flag.
  • Планирование OSPF внедрения, которое включает в себя план адресации, топологию сети и зоны OSPF. Список задач для каждого маршрутизатора в сети, включая запуск протокола OSPF (с номером процесса) на интерфейсе или с указанием через параметр network, присвоение правильного area ID интерфейсу, и, опционально, настройка метрики на необходимых интерфейсах.
  • Команды базовой конфигурации:
    • router ospf process-id в глобальном режиме настройки.
    • network ip-address wild-mask area area-id [secondaries none] или команда на интерфейсе

ip ospf process-id area area-id [secondaries none]

    • bandwidth kilobits
    • router-id ip-address команда в режиме глобальной конфигурации.
  • Команды для проверки работы OSPF:
    • show ip ospf
    • show ip route
    • show ip ospf interface
    • show ip ospf neighbor
    • show ip route ospf
    • show ip protocols
    • debug ip ospf events
    • debug ip ospf adj
    • debug ip ospf packet
  • Как маршрутизаторы выбирает router ID: командой router-id ip-address, наибольшим IP-адресом на любом активном loopback-интерфейсе или наибольшим IP-адресом на любом активном физическом интерфейсе OSPF. ID выбирается при старте процесса OSPF.
  • Три типа сетей OSPF: point-to-point, broadcast и NBMA.
  • Как выбирается DR и BDR: маршрутизатор с наибольшим приоритетом становится DR. Маршрутизатор со вторым наибольшим приоритетом становится BDR. The router ID breaks a tie. Маршрутизатор с приоритетом 0 не станет DR или BDR. Приоритет устанавливается командой ip ospf priority number на интерфейсе.


■ The five modes of OSPF operation available for NBMA networks: nonbroadcast and point-to-multipoint RFC modes, and broadcast, point-to-multipoint nonbroadcast, and point-to-point Cisco modes. (Refer to Table 3-11 for a summary of these modes). ■ The 11 different OSPF LSA types. The first five are the most commonly used: type 1 (router, generated by every router), type 2 (network, generated by DR), type 3 (summary, describes area routes, generated by ABR), type 4 (summary, describes route to ASBR, generated by ABR), and type 5 (external, describes routes to external destinations, generated by ASBR). ■ The three kinds of OSPF routes: intra-area (O), interarea (O IA), and external (either O E1 or O E2). ■ Configuring OSPF LSDB overload protection using the max-lsa maximum-number [threshold-percentage] [warning-only] [ignore-time minutes] [ignore-count countnumber] [reset-time minutes] router configuration command. ■ Using the passive-interface type number [default] router configuration command to prevent a routing protocol’s routing updates from being sent through the specified router interface. With OSPF, the specified interface appears as a stub network, and OSPF routing information is neither sent nor received through the specified interface. ■ How default routes can be used in OSPF to prevent the need for a specific route to all destination networks. The benefit is a much smaller routing table and LSDB, with complete reachability. Propagate an OSPF default route using the default-information originate [always] [metric metric-value] [metric-type type-value] [route-map map-name] router configuration command. ■ Configuring route summarization to improve CPU utilization, reduce LSA flooding, and reduce LSDB and routing table sizes. OSPF does not automatically summarize. OSPF summarization can be configured on an ABR using the area area-id range address mask [advertise | not-advertise] [cost cost] router configuration command, and on an ASBR using the summary-address ip-address mask [not-advertise] [tag tag] router configuration command. ■ The OSPF virtual link feature, used to temporarily mend backbone failures or connect a disconnected area to the backbone. Virtual links are configured with the area area-id virtual-link router-id [authentication [message-digest | null]] [hello-interval seconds] [retransmit-interval seconds] [transmit-delay seconds] [dead-interval seconds] [[authentication-key key] | [message-digest-key key-id md5 key]] router configuration command, and verified with the show ip ospf virtual-links command. ■ The several area types defined in OSPF: standard areas, backbone areas, stub areas, totally stubby areas, NSSAs, and totally stubby NSSAs. (Refer to Table 3-23 for a summary of the area types.) The area area-id stub router configuration command is used to configure stub areas. The no-summary keyword is added to this command on the ABR to make the area totally stubby. The area area-id nssa [no-redistribution] [default-information-originate] [metric metric-value] [metric-type type-value]