Включить rip что это в роутере

Вопрос: Пример настройки протокола маршрутизации RIP


Ответ:

Понятие маршрутизации

Процесс определения пути, по которому IP-пакет будет доставлен адресату, называется маршрутизацией (routing). Различные физические сети связаны между собой посредством специальных устройств, называемых маршрутизаторами (router). Каждый маршрутизатор напрямую подключается как минимум к двум сетям. Основным назначением маршрутизаторов является определение пути следования пакетов и принятие решения об их перенаправлении на одно из ближайших маршрутизирующих устройств.

Отправитель не всегда знает, где находится сеть, в которой расположен получатель. Отыскать её помогают маршрутизирующие устройства. IP-пакет, предназначенный устройству из другой сети/подсети, пересылается локальному маршрутизатору (коммутатору L3), называемому шлюзом по умолчанию (default gateway). Для этого узел локальной сети должен знать IP-адрес шлюза по умолчанию — IP-адрес интерфейса маршрутизатора (коммутатора L3), на который перенаправляется весь трафик, не предназначенный для устройств данной локальной сети. Этот адрес указывается в настройках устройств. Его можно настроить на узле вручную, либо получить динамически. Настройка шлюза по умолчанию не требуется, если передача данных будет выполняться только между устройствами одной локальной сети.

Как только одному компьютеру надо отправить пакет другому компьютеру, находящемуся в удалённой сети, он инкапсулирует его в кадр и передает по локальной сети шлюзу по умолчанию. Приняв пакет, маршрутизатор анализирует его IP-адрес назначения и определяет следующий шаг (hop) пакета, т. е. ближайший маршрутизатор, которому надо передать пакет, чтобы он был доставлен адресату. Таким образом, пакет передается от одного маршрутизирующего устройства другому, пока не достигнет маршрутизатора, находящегося с получателем в одной локальной сети.

Процесс маршрутизации пакетов в составных сетях выполняется на основе базы данных маршрутов, называемой таблицей маршрутизации (routing table). Она содержит записи, представляющие собой список наилучших маршрутов к определенным сетям и/или узлам. Записи в таблице маршрутизации могут создаваться вручную администратором сети в процессе конфигурации устройства или автоматически в результате работы протоколов динамической маршрутизации.

В таблице маршрутизации возможны следующие типы записей:

  • Маршрут к сети. Маршрут к сети с определенным идентификатором;
  • Маршрут к узлу. Маршрут к узлу с определенным сетевым адресом;
  • Маршрут по умолчанию (default route). Маршрут, который используется в том случае, если другой маршрут к пункту назначения неизвестен.

IP-интерфейсы маршрутизирующих коммутаторов

Коммутаторы L3 имеют некоторые особенности, отличающие их от традиционных маршрутизаторов и коммутаторов L2:

  • одновременная поддержка функций маршрутизации и коммутации;
  • обязательная поддержка механизма VLAN;
  • реализация функций маршрутизации на аппаратном уровне с использованием ASIC.

Использование контроллеров ASIC является главной характеристикой, отличающей коммутаторы L3 от традиционных маршрутизаторов, так как за счет выполнения операций аппаратно повышается производительность системы, благодаря чему не возникают накладные расходы, связанные с выборкой и интерпретацией хранимых команд. В связи с этим коммутаторы L3 маршрутизируют пакеты в среднем в 10-100 раз быстрее, чем традиционные маршрутизаторы.

В отличие от традиционного маршрутизатора, который требует, чтобы каждый порт был подключен в отдельную сеть или подсеть, физическому порту коммутатора D-Link невозможно назначить собственный IP-интерфейс.

Когда узлы из одной сети/подсети подключаются к портам коммутатора L3, эти порты группируются в VLAN. Даже если для подключения используется только один порт коммутатора, он все равно должен быть помещен в VLAN. Для VLAN создается IP-интерфейс и ему присваивается IP-адрес из сети/подсети, к которой принадлежат подключенные узлы. Порты, включаемые в VLAN, не обязательно должны быть расположены последовательно и могут принадлежать разным коммутаторам. IP-интерфейс, назначенный VLAN, может использоваться в качестве шлюза по умолчанию узлами данной сети/подсети.

Протокол RIP

Протокол RIP (Routing Information Protocol) основан на дистанционно-векторном алгоритме маршрутизации, в качестве метрики при выборе маршрута использует количество переходов (hops count), т. е. количество маршрутизаторов, которое должен пройти пакет, прежде чем достигнет пункта назначения. RIP не учитывает ситуации, когда маршрут должен быть выбран на основе таких параметров, как загруженность канала, надежность или задержка передачи.

Каждый маршрутизатор, использующий RIP, хранит таблицу, содержащую записи для каждого пункта назначения (сети или узла) в системе. Каждая запись включает следующую информацию:

  • IP address: IP-адрес узла или сети назначения;
  • Gateway: адрес первого транзитного маршрутизатора на пути к пункту назначения;
  • Interface: интерфейс, напрямую подключенный к первому транзитному маршрутизатору;
  • Cost: числовое значение, показывающее расстояние до пункта назначения;
  • Timer: количество времени, прошедшее после последнего обновления записи.

Если маршрутизатор непосредственно подключен к сети, то расстояние до неё (количество переходов) равно 1. Максимальное число переходов — 15. Значение 16 называется бесконечностью (infinity) и означает, что данный узел или сеть недостижима.

Примечание к настройке

Рассматриваемый пример настройки подходит для следующих серий коммутаторов: DGS-1250, DGS-1510, DGS-1520, DGS-3130, DGS-3630, DXS-3610.

Задача

В сети нужно обеспечить динамическую маршрутизацию между VLAN.

Задача может быть решена настройкой на коммутаторах протокола RIP v2.

Схема сети показана на рисунке.

Рис. 1 Схема подключения

Настройка коммутатора SW1

  1. Создайте VLAN 20 и 30.

Switch(config)#vlan 20, 30

Switch(config-vlan)#exit

  1. Настройте порты 1/0/2 и 24 как магистральные:

Switch(config)#interface range ethernet 1/0/2,1/0/24

Switch(config-if-range)#switchport mode trunk

Switch(config-if-range)#exit

Примечание

Настраивайте в качестве магистральных порты, через которые коммутаторы соединены друг с другом.

  1. Задайте IP-адрес интерфейсу VLAN 20:

Switch(config)#interface interface vlan 20

Switch(config-if)#ip address 192.168.20.2 255.255.255.0

Switch(config-if)#exit

  1. Задайте IP-адрес интерфейсу VLAN 30:

Switch(config)#interface interface vlan 30

Switch(config-if)#ip address 192.168.30.2 255.255.255.0

Switch(config-if)#exit

  1. Настройте протокол RIPv2 на всех IP-интерфейсах коммутатора:

Switch(config)#router rip

Switch(config-router)#version 2

Switch(config-router)#network 192.168.20.0

Switch(config-router)#network 192.168.30.0

Switch(config-router)#exit

Настройка коммутатора SW2

  1. Создайте VLAN 20, 50 и 70.

Switch(config)#vlan 20, 50, 70

Switch(config-vlan)#exit

  1. Настройте порт 1/0/1 как магистральный:

Switch(config)#interface ethernet 1/0/1

Switch(config-if)#switchport mode trunk

Switch(config-if)#exit

  1. Задайте IP-адрес интерфейсу VLAN 20:

Switch(config)#interface interface vlan 20

Switch(config-if)#ip address 192.168.20.1 255.255.255.0

Switch(config-if)#exit

  1. Задайте IP-адрес интерфейсу VLAN 50:

Switch(config)#interface interface vlan 50

Switch(config-if)#ip address 192.168.50.1 255.255.255.0

Switch(config-if)#exit

  1. Задайте IP-адрес интерфейсу VLAN 70:

Switch(config)#interface interface vlan 70

Switch(config-if)#ip address 192.168.70.1 255.255.255.0

Switch(config-if)#exit

  1. Настройте порты доступа в VLAN:

Switch(config)#interface ethernet 1/0/12

Switch(config-if)#switchport mode access

Switch(config-if)#switchport access vlan 50

Switch(config-if)#exit

Примечание

Настраивайте в качестве портов доступа те порты, куда подключены рабочие станции.

  1. Настройте протокол RIPv2 на всех IP-интерфейсах коммутатора:

Switch(config)#router rip

Switch(config-router)#version 2

Switch(config-router)#network 192.168.20.0

Switch(config-router)#network 192.168.50.0

Switch(config-router)#network 192.168.70.0

Switch(config-router)#exit

Настройка коммутатора SW3

  1. Создайте VLAN 30, 60 и 80.

Switch(config)#vlan 30, 60, 80

Switch(config-vlan)#exit

  1. Настройте порт 1/0/21 как магистральный:

Switch(config)#interface ethernet 1/0/21

Switch(config-if)#switchport mode trunk

Switch(config-if)#exit

  1. Задайте IP-адрес интерфейсу VLAN 30:

Switch(config)#interface interface vlan 30

Switch(config-if)#ip address 192.168.30.1 255.255.255.0

Switch(config-if)#exit

  1. Задайте IP-адрес интерфейсу VLAN 60:

Switch(config)#interface interface vlan 60

Switch(config-if)#ip address 192.168.60.1 255.255.255.0

Switch(config-if)#exit

  1. Задайте IP-адрес интерфейсу VLAN 80:

Switch(config)#interface interface vlan 80

Switch(config-if)#ip address 192.168.80.1 255.255.255.0

Switch(config-if)#exit

  1. Настройте порты доступа в VLAN:

Switch(config)#interface ethernet 1/0/16

Switch(config-if)#switchport mode access

Switch(config-if)#switchport access vlan 60

Switch(config-if)#exit

  1. Настройте протокол RIPv2 на всех IP-интерфейсах коммутатора:

Switch(config)#router rip

Switch(config-router)#version 2

Switch(config-router)#network 192.168.30.0

Switch(config-router)#network 192.168.60.0

Switch(config-router)#network 192.168.80.0

Switch(config-router)#exit

Примечание

На рабочих станциях в VLAN шлюзом по умолчанию указывается IP-адрес интерфейса соответствующего VLAN на коммутаторе.

Базовая работа протокола RIP

Эта серия статей подробно объясняет основные понятия, принципы и операции протокола маршрутизации RIP с примерами. Узнайте, как работает RIP (Routing Information Protocol) и как обновляет таблицу маршрутизации из широковещательного сообщения шаг за шагом.

Маршрутизаторы используют таблицу маршрутизации для принятия решения о переадресации. Таблица маршрутизации содержит информацию о сетевых путях. Сетевой путь — это простой фрагмент информации, который говорит, какая сеть подключена к какому интерфейсу маршрутизатора.

Всякий раз, когда маршрутизатор получает пакет данных, он ищет в таблице маршрутизации адрес назначения. Если маршрутизатор найдет запись сетевого пути для адреса назначения, он переадресует пакет из связанного интерфейса. Если маршрутизатор не найдет никакой записи для адреса назначения, он отбросит пакет.

Существует два способа обновления таблицы маршрутизации: статический и динамический. В статическом методе мы должны обновить его вручную. В динамическом методе мы можем использовать протокол маршрутизации, который будет обновлять его автоматически. RIP — это самый простой протокол маршрутизации. В этой статье мы узнаем, как RIP обновляет таблицу маршрутизации.

В протоколе RIP маршрутизаторы узнают о сетях назначения от соседних маршрутизаторов через процесс совместного использования. Маршрутизаторы, работающие по протоколу RIP, периодически транслируют настроенные сети со всех портов. Список маршрутизаторов обновит их таблицу маршрутизации на основе этой информации.

Давайте посмотрим, как работает процесс RIP шаг за шагом. Следующий рисунок иллюстрирует простую сеть, работающую по протоколу маршрутизации RIP.

Когда мы запускаем эту сеть, маршрутизаторы знают только о непосредственно подключенной сети.

  • OFF1 знает, что сеть 10.0.0.0/8 подключена к порту F0/1, а сеть 192.168.1.252/30 подключена к порту S0/0.
  • OFF2 знает, что сеть 192.168.1.252/30 подключена к порту S0/0, а сеть 192.168.1.248/30 подключена к порту S0/1.
  • OFF3 знает, что сеть 20.0.0.0/8 подключена к порту F0/1, а сеть 192.168.1.248/30 подключена к порту S0/0.

В отличие от статической маршрутизации, где мы должны настроить все маршруты вручную, в динамической маршрутизации все, что нам нужно сделать, это просто сообщить протоколу маршрутизации, какой маршрут мы хотим объявить. А остальное будет сделано автоматически, запустив динамический протокол. В нашей сети мы используем протокол маршрутизации RIP, поэтому он будет обрабатываться RIP.

Иногда RIP также известен как маршрутизация прослушки. Потому что в этом протоколе маршрутизации маршрутизаторы изучают информацию о маршрутизации от непосредственно подключенных соседей, а эти соседи учатся от других соседних маршрутизаторов.

Протокол RIP будет совместно использовать настроенные маршруты в сети через широковещательные передачи. Эти широковещательные передачи называются обновлениями маршрутизации. Прослушивающие маршрутизаторы обновят свою таблицу маршрутизации на основе этих обновлений.

Маршрутизатор выполняет несколько измерений, обрабатывая и помещая новую информацию о маршруте в таблицу маршрутизации. Мы объясним их позже в этой статье. Если маршрутизатор обнаружит новый маршрут в обновлении, он поместит его в таблицу маршрутизации.

Через 30 секунд (интервал времени по умолчанию между двумя обновлениями маршрутизации) все маршрутизаторы снова будут транслировать свои таблицы маршрутизации с обновленной информацией.

В данный момент времени:

  • OFF1 будет транслироваться для 10.0.0.0/8, 192.168.1.248/30 и 192.168.1.252/30.
  • OFF2 будет транслировать для 10.0.0.0/8, 20.0.0.0/8, 192.168.1.248/30 и 192.168.1.252/30.
  • OFF3 будет транслироваться для 20.0.0.0/8, 192.168.1.248/30 и 192.168.1.252/30.
  • OFF1 узнает о сети 20.0.0.0/8 из трансляции OFF2.
  • У OFF2 нет ничего, чтобы обновить из трансляции OFF1 и OFF2.
  • OFF3 узнает о сети 10.0.0.0/8 из трансляции OFF2.

Через 30 секунд маршрутизатор снова будет транслировать новую информацию о маршрутизации. На этот раз маршрутизаторам нечего обновлять. Эта стадия называется конвергенцией.

КОНВЕРГЕНЦИЯ

Конвергенция — это термин, который относится к времени, затраченному всеми маршрутизаторами на понимание текущей топологии сети.

МЕТРИКА ПРОТОКОЛА МАРШРУТИЗАЦИИ RIP

У нас может быть два или более путей для целевой сети. В этой ситуации RIP использует измерение, называемое метрикой, чтобы определить наилучший путь для целевой сети. RIP использует подсчет прыжков как метрику. Прыжки — это количество маршрутизаторов, необходимое для достижения целевой сети.

Например, в приведенной выше сети OFF1 есть два маршрута для достижения сети 20.0.0.0/8.

  • Маршрут 1: — через OFF3 [на интерфейсе S0/1]. С прыжком — один.
  • Маршрут 2: — через OFF2-OFF3 [на интерфейсе S0/0]. С прыжком — два.

Итак, по какому маршруту OFF1 доберется до места назначения? Маршрут 1 имеет один прыжок, в то время как маршрут 2 имеет два прыжка. Маршрут 1 имеет меньшее количество переходов, поэтому он будет помещен в таблицу маршрутизации.

Источник

Терминология протокола RIP (Routing Information Protocol)

Эта статья подробно объясняет функции и терминологию протокола RIP (административное расстояние, метрики маршрутизации, обновления, пассивный интерфейс и т.д.) с примерами.

RIP — это протокол маршрутизации вектора расстояния. Он делится информацией о маршруте через локальную трансляцию каждые 30 секунд.

Маршрутизаторы хранят в таблице маршрутизации только одну информацию о маршруте для одного пункта назначения. Маршрутизаторы используют значение AD и метрику для выбора маршрута.

АДМИНИСТРАТИВНАЯ ДИСТАНЦИЯ

В сложной сети может быть одновременно запущено несколько протоколов маршрутизации. Различные протоколы маршрутизации используют различные метрики для расчета наилучшего пути для назначения. В этом случае маршрутизатор может получать различную информацию о маршрутах для одной целевой сети. Маршрутизаторы используют значение AD для выбора наилучшего пути среди этих маршрутов. Более низкое значение объявления имеет большую надежность.

Давайте разберемся в этом на простом примере: А маршрутизатор изучает два разных пути для сети 20.0.0.0/8 из RIP и OSPF. Какой из них он должен выбрать?

Ответ на этот вопрос скрыт в приведенной выше таблице. Проверьте объявленную ценность обоих протоколов. Административное расстояние — это правдоподобие протоколов маршрутизации. Маршрутизаторы измеряют каждый источник маршрута в масштабе от 0 до 255. 0 — это лучший маршрут, а 255-худший маршрут. Маршрутизатор никогда не будет использовать маршрут, изученный этим (255) источником. В нашем вопросе у нас есть два протокола RIP и OSPF, и OSPF имеет меньшее значение AD, чем RIP. Таким образом, его маршрут будет выбран для таблицы маршрутизации.

МЕТРИКИ МАРШРУТИЗАЦИИ

У нас может быть несколько линий связи до целевой сети. В этой ситуации маршрутизатор может изучить несколько маршрутов, формирующих один и тот же протокол маршрутизации. Например, в следующей сети у нас есть два маршрута между ПК-1 и ПК-2.

ПК-1 [10.0.0.0/8] == Маршрутизатор OFF1 [S0/1 — 192.168.1.254] = = Маршрутизатор OFF3 [S0/1-192.168.1.253] = = ПК-2 [20.0.0.0/8]

ПК-1 [10.0.0.0/8] == Маршрутизатор OFF1 [S0/0 — 192.168.1.249] == Маршрутизатор OFF2 [S0/0 — 192.168.1.250] == Маршрутизатор OFF2 [S0/1 — 192.168.1.246] == Маршрутизатор OFF3 [S0/0 — 192.168.1.245] == ПК-2 [20.0.0.0/8]

В этой ситуации маршрутизатор использует метрику для выбора наилучшего пути. Метрика — это измерение, которое используется для выбора наилучшего пути из нескольких путей, изученных протоколом маршрутизации. RIP использует счетчик прыжков в качестве метрики для определения наилучшего пути. Прыжки — это количество устройств уровня 3, которые пакет пересек до достижения пункта назначения.

RIP (Routing Information Protocol) — это протокол маршрутизации вектора расстояния. Он использует расстояние [накопленное значение метрики] и направление [вектор], чтобы найти и выбрать лучший путь для целевой сети. Мы объяснили этот процесс с помощью примера в нашей первой части этой статьи.

Хорошо, теперь поймите концепцию метрики; скажите мне, какой маршрут будет использовать OFF1, чтобы достичь сети 20.0.0.0/8? Если он выбирает маршрут S0/1 [192.168.1.245/30], он должен пересечь устройство 3 уровня. Если он выбирает маршрут S0/0 [19.168.1.254/30], то ему придется пересечь два устройства уровня 3 [маршрутизатор OFF! и последний маршрутизатор OFF3], чтобы достичь целевой сети.

Таким образом, он будет использовать первый маршрут, чтобы достигнуть сети 20.0.0.0/8.

МАРШРУТИЗАЦИЯ ПО СЛУХАМ

Иногда RIP также известен как маршрутизация по протоколу слухов. Потому что он изучает информацию о маршрутизации от непосредственно подключенных соседей и предполагает, что эти соседи могли изучить информацию у своих соседей.

ОБНОВЛЕНИЯ ОБЪЯВЛЕНИЙ

RIP периодически транслирует информацию о маршрутизации со всех своих портов. Он использует локальную трансляцию с IP-адресом назначения 255.255.255.255. Во время вещания ему все равно, кто слушает эти передачи или нет. Он не использует никакого механизма для проверки слушателя. RIP предполагает, что, если какой-либо сосед пропустил какое-либо обновление, он узнает об этом из следующего обновления или от любого другого соседа.

ПАССИВНЫЙ ИНТЕРФЕЙС

По умолчанию RIP транслирует со всех интерфейсов. RIP позволяет нам контролировать это поведение. Мы можем настроить, какой интерфейс должен отправлять широковещательную передачу RIP, а какой нет. Как только мы пометим любой интерфейс как пассивный, RIP перестанет отправлять обновления из этого интерфейса.

РАСЩЕПЛЕНИЕ ГОРИЗОНТА

Split horizon-это механизм, который утверждает, что, если маршрутизатор получает обновление для маршрута на любом интерфейсе, он не будет передавать ту же информацию о маршруте обратно маршрутизатору-отправителю на том же порту. Разделенный горизонт используется для того, чтобы избежать циклов маршрутизации.

Чтобы понять эту функцию более четко, давайте рассмотрим пример. Следующая сеть использует протокол RIP. OFF1-это объявление сети 10.0.0.0/8. OFF2 получает эту информацию по порту S0/0.

Как только OFF2 узнает о сети 10.0.0.0/8, он включит ее в свое следующее обновление маршрутизации. Без разделения горизонта он будет объявлять эту информацию о маршруте обратно в OFF1 на порту S0/0.

Ну а OFF1 не будет помещать этот маршрут в таблицу маршрутизации, потому что он имеет более высокое значение расстояния. Но в то же время он не будет игнорировать это обновление. Он будет предполагать, что OFF1 знает отдельный маршрут для достижения сети 10.0.0.0/8, но этот маршрут имеет более высокое значение расстояния, чем маршрут, который я знаю. Поэтому я не буду использовать этот маршрут для достижения 10.0.0.0/8, пока мой маршрут работает. Но я могу воспользоваться этим маршрутом, если мой маршрут будет недоступен. Так что это может сработать как запасной маршрут для меня.

Это предположение создает серьезную сетевую проблему. Например, что произойдет, если интерфейс F0/1 OFF1 выйдет из строя? OFF1 имеет прямое соединение с 10.0.0.0/8, поэтому он сразу же узнает об этом изменении.

В этой ситуации, если OFF1 получает пакет для 10.0.0.0/8, вместо того чтобы отбросить этот пакет, он переадресует его из S0/0 в OFF2. Потому что OFF1 думает, что у OFF2 есть альтернативный маршрут для достижения 10.0.0.0/8.

OFF2 вернет этот пакет обратно в OFF1. Потому что OFF2 думает, что у OFF1 есть маршрут для достижения 10.0.0.0/8.

Это создаст сетевой цикл, в котором фактический маршрут будет отключен, но OFF1 думает, что у OFF2 есть маршрут для назначения, в то время как OFF2 думает, что у OFF1 есть способ добраться до места назначения. Таким образом, этот пакет будет бесконечно блуждать между OFF1 и OFF2. Чтобы предотвратить эту проблему, RIP использует механизм подсчета прыжков (маршрутизаторов).

КОЛИЧЕСТВО ПРЫЖКОВ

RIP подсчитывает каждый переход (маршрутизатор), который пакет пересек, чтобы добраться до места назначения. Он ограничивает количество прыжков до 15. RIP использует TTL пакета для отслеживания количества переходов. Для каждого прыжка RIP уменьшает значение TTL на 1. Если это значение достигает 0, то пакет будет отброшен.

Это решение только предотвращает попадание пакета в петлю. Это не решает проблему цикла маршрутизации.

Split horizon решает эту проблему. Если расщепление горизонта включено, маршрутизатор никогда не будет вещать тот же маршрут обратно к отправителю. В нашей сети OFF2 узнал информацию о сети 10.0.0.0/8 от OFF1 на S0/0, поэтому он никогда не будет транслировать информацию о сети 10.0.0.0/8 обратно в OFF1 на S0/0.

Это решает нашу проблему. Если интерфейс F0/1 OFF1 не работает, и OFF1, и OFF2 поймут, что нет никакого альтернативного маршрута для достижения в сети 10.0.0.0/8.

МАРШРУТ ОТРАВЛЕНИЯ

Маршрут отравления работает противоположном режиме расщепления горизонта. Когда маршрутизатор замечает, что какой-либо из его непосредственно подключенных маршрутов вышел из строя, он отравляет этот маршрут. По умолчанию пакет может путешествовать только 15 прыжков RIP. Любой маршрут за пределами 15 прыжков является недопустимым маршрутом для RIP. В маршруте, находящимся в неисправном состоянии, RIP присваивает значение выше 15 к конкретному маршруту. Эта процедура известна как маршрутное отравление. Отравленный маршрут будет транслироваться со всех активных интерфейсов. Принимающий сосед будет игнорировать правило разделения горизонта, передавая тот же отравленный маршрут обратно отправителю. Этот процесс гарантирует, что каждый маршрутизатор обновит информацию об отравленном маршруте.

ТАЙМЕРЫ RIP

Для лучшей оптимизации сети RIP использует четыре типа таймеров.

  • Таймер удержания (Hold down timer) RIP использует удерживающий таймер, чтобы дать маршрутизаторам достаточно времени для распространения отравленной информации о маршруте в сети. Когда маршрутизатор получает отравленный маршрут, он замораживает этот маршрут в своей таблице маршрутизации на период таймера удержания. В течение этого периода маршрутизатор не будет использовать этот маршрут для маршрутизации. Период удержания будет прерван только в том случае, если маршрутизатор получит обновление с той же или лучшей информацией для маршрута. Значение таймера удержания по умолчанию составляет 180 секунд.
  • Route Invalid Timer — этот таймер используется для отслеживания обнаруженных маршрутов. Если маршрутизатор не получит обновление для маршрута в течение 180 секунд, он отметит этот маршрут как недопустимый маршрут и передаст обновление всем соседям, сообщив им, что маршрут недействителен.
  • Route Flush Timer — этот таймер используется для установки интервала для маршрута, который становится недействительным, и его удаления из таблицы маршрутизации. Перед удалением недопустимого маршрута из таблицы маршрутизации он должен обновить соседние маршрутизаторы о недопустимом маршруте. Этот таймер дает достаточно времени для обновления соседей, прежде чем недопустимый маршрут будет удален из таблицы маршрутизации. Таймер Route Flush Timer по умолчанию установлен на 240 секунд.
  • Update Timer -В RIP широковещательная маршрутизация обновляется каждые 30 секунд. Он будет делать это постоянно, независимо от того, изменяется ли что-то в маршрутной информации или нет. По истечении 30 секунд маршрутизатор, работающий под управлением RIP, будет транслировать свою информацию о маршрутизации со всех своих интерфейсов.

RIP — это самый старый протокол вектора расстояний. Для удовлетворения текущих требований к сети он был обновлен с помощью RIPv2. RIPv2 также является протоколом вектора расстояния с максимальным количеством прыжков 15.

Вы все еще можете использовать RIPv1, но это не рекомендуется. В следующей таблице перечислены ключевые различия между RIPv1 и RIPv2.

Источник

Для начала, что же такое RIP?

RIP (англ. Routing information Protocol) — один из самых простых протоколов маршрутизации. Применяется в небольших компьютерных сетях, позволяет маршрутизаторам динамически обновлять маршрутную информацию (направление и дальность в хопах), получая ее от соседних маршрутизаторов.

Почему именно RIP? В чем его преимущества?

  • Простота

Отсутствие в нем большой глубины, как в OSPF

  • Поддержка Windows

Можно использовать, как способ доставки маршрутов до VPN-клиентов

  • Несложно диагностировать

Кратко рассмотрим принцип работы RIP:

Маршрутизаторы, работающие через этот протокол, отправляют  таблицы маршрутизации соседним устройствам  для их обновления.

Если рассмотреть поэтапно:

  1. Посылает свои пакеты в нужный интерфейс и, в случае наличия соседнего устройства, он принимает эти широковещательные пакеты
  2. «Сосед» определяет количество переходов до нужной сети
  3. Отправляет свои маршруты в этот же интерфейс
  4. Следующий «сосед», принимая данный пакет, понимает, какое количество переходов нужно сделать до нужной сети.*

*есть ограничение на количество переходов  (это связано с настройками по умолчанию и старостью протокола)

Настройка протокола RIP на роутерах MikroTik (RouterOS 7)

  1. Для начала создадим Instance, т.е. процесс для интерфейса или же таблиц маршрутизации
  2. Рисунок 1 – Instance

  3. Далее создаем шаблон интерфейса, где указываем тот интерфейс, на котором будет вещать протокол
  4. Рисунок 2 – Interface Templates

    Как итог, на интерфейсе ether2 включен протокол RIP.

    Отметим, что этот интерфейс должен иметь IP-адрес.

    Рисунок 3 – Address List

  5. Проверим, что этот IP-адрес принадлежит соседнему устройству
  6. Рисунок 4 – Terminal

Как итог, на интерфейсе ether2 включен протокол RIP.

Настройка соседнего устройства (RouterOS 6)

  1. Указываем IP-адрес соседнего устройства
  2. Рисунок 5 – New RIP Network

  3. Галочки у пункта Redistribute Connected Routes не должно быть
  4. Рисунок 6 – RIP Settings

  5. В RouterOS 7 Вы должны увидеть полученный с RouterOS 6 маршрут

Рисунок 7 – Route List

Дополнительная информация:

  • Для того чтобы в RIP не поступали все маршруты, их можно отфильтровать

Рисунок 8 – Route Filters

  • Кроме этого, в настройках интерфейса есть некоторые опции, позволяющие повысить безопасность RIP протокола

Рисунок 9 – Настройки интерфейса

Например, Authentication (доверять устройствам, которые используют такую же аутентификацию)

На этом базовый обзор протокола RIP закончен.

Configuring Routing Information Protocol


Routing Information Protocol (RIP) is a commonly used routing protocol in small to medium TCP/IP networks. It is a stable protocol that uses a distance-vector algorithm to calculate routes.

  • Finding Feature
    Information
  • Prerequisites for RIP
  • Restrictions for RIP
  • Information About Configuring RIP
  • How to Configure RIP
  • Configuration Examples for RIP
  • Additional References
  • Feature Information for Configuring RIP
  • Glossary

Finding Feature
Information

Your software release
may not support all the features documented in this module. For the latest
caveats and feature information, see
Bug Search Tool and the
release notes for your platform and software release. To find information about
the features documented in this module, and to see a list of the releases in
which each feature is supported, see the feature information table.

Use Cisco Feature
Navigator to find information about platform support and Cisco software image
support. To access Cisco Feature Navigator, go to
www.cisco.com/​go/​cfn.
An account on Cisco.com is not required.

Prerequisites for RIP

You must configure

ip
routing
command before you configure RIP.

Restrictions for RIP

Routing Information Protocol (RIP) uses hop count as the metric to rate the value of different routes. The hop count is the number of devices that can be traversed in a route. A directly connected network has a metric of zero; an unreachable network has a metric of 16. This limited metric range makes RIP unsuitable for large networks.

Information About Configuring RIP

  • RIP Overview
  • RIP Routing Updates
  • RIP Routing Metric
  • Authentication in RIP
  • Exchange of Routing Information
  • RIP Route Summarization
  • Split Horizon Mechanism
  • Interpacket Delay for RIP Updates
  • RIP Optimization over WAN Circuits
  • Source IP Addresses of RIP Routing Updates
  • Neighbor Router Authentication
  • IP-RIP Delay Start Overview
  • Offset-list
  • Timers

RIP Overview

The Routing Information Protocol (RIP) uses broadcast UDP data packets to exchange routing information. Cisco software sends routing information updates every 30 seconds, which is termed advertising. If a device does not receive an update from another device for 180 seconds or more, the receiving device marks the routes served by the nonupdating device as unusable. If there is still no update after 240 seconds, the device removes all routing table entries for the nonupdating device.

A device that is running RIP can receive a default network via an update from another device that is running RIP, or the device can source the default network using RIP. In both cases, the default network is advertised through RIP to other RIP neighbors.

The Cisco implementation of RIP Version 2 (RIPv2) supports plain text and message digest algorithm 5 (MD5) authentication, route summarization, classless interdomain routing (CIDR), and variable-length subnet masks (VLSMs).

RIP Routing Updates

The Routing Information Protocol (RIP) sends routing-update messages at regular intervals and when the network topology changes. When a device receives a RIP routing update that includes changes to an entry, the device updates its routing table to reflect the new route. The metric value for the path is increased by 1, and the sender is indicated as the next hop. RIP devices maintain only the best route (the route with the lowest metric value) to a destination. After updating its routing table, the device immediately begins transmitting RIP routing updates to inform other network devices of the change. These updates are sent independently of the regularly scheduled updates that RIP devices send.

RIP Routing Metric

The Routing Information Protocol (RIP) uses a single routing metric to measure the distance between the source and the destination network. Each hop in a path from the source to the destination is assigned a hop-count value, which is typically 1. When a device receives a routing update that contains a new or changed destination network entry, the device adds 1 to the metric value indicated in the update and enters the network in the routing table. The IP address of the sender is used as the next hop. If an interface network is not specified in the routing table, it will not be advertised in any RIP update.

Authentication in RIP

The Cisco implementation of the Routing Information Protocol (RIP) Version 2 (RIPv2) supports authentication, key management, route summarization, classless interdomain routing (CIDR), and variable-length subnet masks (VLSMs).

By default, the software receives RIP Version 1 (RIPv1) and RIPv2 packets, but sends only RIPv1 packets. You can configure the software to receive and send only RIPv1 packets. Alternatively, you can configure the software to receive and send only RIPv2 packets. To override the default behavior, you can configure the RIP version that an interface sends. Similarly, you can also control how packets received from an interface are processed.

RIPv1 does not support authentication. If you are sending and receiving RIP v2 packets, you can enable RIP authentication on an interface.

The key chain determines the set of keys that can be used on the interface. Authentication, including default authentication, is performed on that interface only if a key chain is configured. For more information on key chains and their configuration, see the “Managing Authentication Keys” section in the “Configuring IP Routing Protocol-Independent Features” chapter in the
Cisco IOS IP Routing: Protocol-Independent Configuration Guide.

Cisco supports two modes of authentication on an interface on which RIP is enabled: plain-text authentication and message digest algorithm 5 (MD5) authentication. Plain-text authentication is the default authentication in every RIPv2 packet.


Note


Do not use plain text authentication in RIP packets for security purposes, because the unencrypted authentication key is sent in every RIPv2 packet. Use plain-text authentication when security is not an issue; for example, you can use plain-text authentication to ensure that misconfigured hosts do not participate in routing.


Exchange of Routing Information

Routing Information Protocol (RIP) is normally a broadcast protocol, and for RIP routing updates to reach nonbroadcast networks, you must configure the Cisco software to permit this exchange of routing information.

To control the set of interfaces with which you want to exchange routing updates, you can disable the sending of routing updates on specified interfaces by configuring the
passive-interface router configuration command.

You can use an offset list to increase increasing incoming and outgoing metrics to routes learned via RIP. Optionally, you can limit the offset list with either an access list or an interface.

Routing protocols use several timers that determine variables such as the frequency of routing updates, the length of time before a route becomes invalid, and other parameters. You can adjust these timers to tune routing protocol performance to better suit your internetwork needs. You can make the following timer adjustments:

  • The rate (time, in seconds, between updates) at which routing updates are sent

  • The interval of time, in seconds, after which a route is declared invalid

  • The interval, in seconds, during which routing information about better paths is suppressed

  • The amount of time, in seconds, that must pass before a route is removed from the routing table

  • The amount of time for which routing updates will be postponed

You can adjust the IP routing support in the Cisco software to enable faster convergence of various IP routing algorithms, and hence, cause quicker fallback to redundant devices. The total effect is to minimize disruptions to end users of the network in situations where quick recovery is essential

In addition, an address family can have timers that explicitly apply to that address family (or Virtual Routing and Forwarding [VRF]) instance). The
timers-basic command must be specified for an address family or the system defaults for the
timers-basic command are used regardless of the timer that is configured for RIP routing. The VRF does not inherit the timer values from the base RIP configuration. The VRF will always use the system default timers unless the timers are explicitly changed using the
timers-basic command.

RIP Route Summarization

Summarizing routes in RIP Version 2 improves scalability and efficiency in large networks. Summarizing IP addresses means that there is no entry for child routes (routes that are created for any combination of the individual IP addresses contained within a summary address) in the RIP routing table, reducing the size of the table and allowing the router to handle more routes.

Summary IP address functions more efficiently than multiple individually advertised IP routes for the following reasons:

  • The summarized routes in the RIP database are processed first.

  • Any associated child routes that are included in a summarized route are skipped as RIP looks through the routing database, reducing the processing time required. Cisco routers can summarize routes in two ways:

  • Automatically, by summarizing subprefixes to the classful network boundary when crossing classful network boundaries (automatic summary).


Note


Automatic summary is enabled by default.


  • As specifically configured, advertising a summarized local IP address pool on the specified interface (on a network access server) so that the address pool can be provided to dialup clients.

When RIP determines that a summary address is required in the RIP database, a summary entry is created in the RIP routing database. As long as there are child routes for a summary address, the address remains in the routing database. When the last child route is removed, the summary entry also is removed from the database. This method of handling database entries reduces the number of entries in the database because each child route is not listed in an entry, and the aggregate entry itself is removed when there are no longer any valid child routes for it.

RIP Version 2 route summarization requires that the lowest metric of the «best route» of an aggregated entry, or the lowest metric of all current child routes, be advertised. The best metric for aggregated summarized routes is calculated at route initialization or when there are metric modifications of specific routes at advertisement time, and not at the time the aggregated routes are advertised.

The ip summary-address rip routerconfiguration command causes the router to summarize a given set of routes learned via RIP Version 2 or redistributed into RIP Version 2. Host routes are especially applicable for summarization.

See the «Route Summarization Example» section at the end of this chapter for examples of using split horizon.

You can verify which routes are summarized for an interface using the show ip protocols EXEC command. You can check summary address entries in the RIP database. These entries will appear in the database only if relevant child routes are being summarized. To display summary address entries in the RIP routing database entries if there are relevant routes being summarized based upon a summary address, use the show ip rip database command in EXEC mode. When the last child route for a summary address becomes invalid, the summary address is also removed from the routing table.

Split Horizon Mechanism

Normally, devices that are connected to broadcast-type IP networks and that use distance-vector routing protocols employ the split horizon mechanism to reduce the possibility of routing loops. The split horizon mechanism blocks information about routes from being advertised by a device out of any interface from which that information originated. This behavior usually optimizes communications among multiple devices, particularly when links are broken. However, with nonbroadcast networks, such as Frame Relay and the Switched Multimegabit Digital System (SMDS), situations can arise for which this behavior is less than ideal. In such situations, you may want to disable split horizon with the Routing Information Protocol (RIP).

If an interface is configured with secondary IP addresses and split horizon is enabled, updates might not be sourced by the secondary address. If split horizon is enabled, one routing update is sourced per network number.

Split horizon is not disabled by default for interfaces using any of the X.25 encapsulations. For all other encapsulations, split horizon is enabled by default.

Interpacket Delay for RIP Updates

By default, the software adds no delay between packets in a multiple-packet RIP update being sent. If you have a high-end router sending to a low-speed router, you might want to add such interpacket delay to RIP updates, in the range of 8 to 50 milliseconds.

RIP Optimization over WAN Circuits

Devices are used on connection-oriented networks to allow potential connectivity to many remote destinations. Circuits on the WAN are established on demand and are relinquished when the traffic subsides. Depending on the application, the connection between any two sites for user data could be short and relatively infrequent.

Source IP Addresses of RIP Routing Updates

By default, the Cisco software validates the source IP address of incoming Routing Information Protocol (RIP) routing updates. If the source address is not valid, the software discards the routing update. You must disable this functionality if you want to receive updates from a device that is not part of this network. However, disabling this functionality is not recommended under normal circumstances.

Neighbor Router Authentication

You can prevent your router from receiving fraudulent route updates by configuring neighbor router authentication. When configured, neighbor authentication occurs whenever routing updates are exchanged between neighbor routers. This authentication ensures that a router receives reliable routing information from a trusted source.

Without neighbor authentication, unauthorized or deliberately malicious routing updates could compromise the security of your network traffic. A security compromise could occur if an unfriendly party diverts or analyzes your network traffic. For example, an unauthorized router could send a fictitious routing update to convince your router to send traffic to an incorrect destination. This diverted traffic could be analyzed to learn confidential information about your organization or merely used to disrupt your organization’s ability to effectively communicate using the network. Neighbor authentication prevents any such fraudulent route updates from being received by your router.

When neighbor authentication has been configured on a router, the router authenticates the source of each routing update packet that it receives. This is accomplished by the exchange of an authenticating key (sometimes referred to as a password) that is known to both the sending and the receiving router.

There are two types of neighbor authentication used: plain text authentication and Message Digest Algorithm Version 5 (MD5) authentication. Both forms work in the same way, with the exception that MD5 sends a «message digest» instead of the authenticating key itself. The message digest is created using the key and a message, but the key itself is not sent, preventing it from being read while it is being transmitted. Plain text authentication sends the authenticating key itself over the wire.


Note


Note that plain text authentication is not recommended for use as part of your security strategy. Its primary use is to avoid accidental changes to the routing infrastructure. Using MD5 authentication, however, is a recommended security practice.


In plain text authentication, each participating neighbor router must share an authenticating key. This key is specified at each router during configuration. Multiple keys can be specified with some protocols; each key must then be identified by a key number.

In general, when a routing update is sent, the following authentication sequence occurs:

  1. A router sends a routing update with a key and the corresponding key number to the neighbor router. In protocols that can have only one key, the key number is always zero. The receiving (neighbor) router checks the received key against the same key stored in its own memory.

  2. If the two keys match, the receiving router accepts the routing update packet. If the two keys do not match, the routing update packet is rejected.

MD5 authentication works similarly to plain text authentication, except that the key is never sent over the wire. Instead, the router uses the MD5 algorithm to produce a «message digest» of the key (also called a «hash»). The message digest is then sent instead of the key itself. This ensures that nobody can eavesdrop on the line and learn keys during transmission.

Another form of neighbor router authentication is to configure key management using key chains. When you configure a key chain, you specify a series of keys with lifetimes, and the Cisco IOS software rotates through each of these keys. This decreases the likelihood that keys will be compromised. To find complete configuration information for key chains, refer to the «Managing Authentication Keys» section in the Configuring IP Routing Protocol-Independent Features module of the Cisco IOS IP Routing: Protocol-Independent Configuration Guide.

IP-RIP Delay Start Overview

The IP-RIP Delay Start feature is used on Cisco devices to delay the initiation of Routing Information Protocol Version 2 (RIPv2) neighbor sessions until the network connectivity between the neighbor devices is fully operational, thereby ensuring that the sequence number of the first message digest algorithm 5 (MD5) packet that the device sends to the non-Cisco neighbor device is 0. The default behavior for a device configured to establish RIPv2 neighbor sessions with a neighbor device using MD5 authentication is to start sending MD5 packets when the physical interface is up.

The IP-RIP Delay Start feature is often used when a Cisco device is configured to establish a RIPv2 neighbor relationship using MD5 authentication with a non-Cisco device over a Frame Relay network. When RIPv2 neighbors are connected over Frame Relay, it is possible for the serial interface connected to the Frame Relay network to be up while the underlying Frame Relay circuits are not yet ready to transmit and receive data. When a serial interface is up and the Frame Relay circuits are not yet operational, any MD5 packets that the device attempts to transmit over the serial interface are dropped. When MD5 packets are dropped because the Frame Relay circuits over which the packets need to be transmitted are not yet operational, the sequence number of the first MD5 packet received by the neighbor device after the Frame Relay circuits become active will be greater than 0. Some non-Cisco devices will not allow an MD5-authenticated RIPv2 neighbor session to start when the sequence number of the first MD5 packet received from the other device is greater than 0.

The differences in vendor implementations of MD5 authentication for RIPv2 are probably a result of the ambiguity of the relevant RFC (RFC 2082) with respect to packet loss. RFC 2082 suggests that devices should be ready to accept either a sequence number of 0 or a sequence number higher than the last sequence number received. For more information about MD5 message reception for RIPv2, see section 3.2.2 of RFC 2082 at the following url:
http:/​/​www.ietf.org/​rfc/​rfc2082.txt.

The IP-RIP Delay Start feature is supported over other interface types such as Fast Ethernet and Gigabit Ethernet.

Cisco devices allow an MD5-authenticated RIPv2 neighbor session to start when the sequence number of the first MD5 packet received from the other device is greater than 0. If you are using only Cisco devices in your network, you do not need to use the IP-RIP Delay Start feature.

Offset-list

An offset list is the mechanism for increasing incoming and outgoing metrics to routes learned via RIP. This is done to provide a local mechanism for increasing the value of routing metrics. Optionally, you can limit the offset list with either an access list or an interface.

Timers

Routing protocols use several timers that determine such variables as the frequency of routing updates, the length of time before a route becomes invalid, and other parameters. You can adjust these timers to tune routing protocol performance to better suit your internetwork needs. You can make the following timer adjustments:

  • The rate (time in seconds between updates) at which routing updates are sent

  • The interval of time (in seconds) after which a route is declared invalid

  • The interval (in seconds) during which routing information regarding better paths is suppressed

  • The amount of time (in seconds) that must pass before a route is removed from the routing table

  • The amount of time for which routing updates will be postponed

It also is possible to tune the IP routing support in the software to enable faster convergence of the various IP routing algorithms, and, hence, quicker fallback to redundant routers. The total effect is to minimize disruptions to end users of the network in situations where quick recovery is essential.

How to Configure RIP

  • Enabling RIP and Configuring RIP Parameters
  • Specifying a RIP Version and Enabling Authentication
  • Summarizing RIP Routes
  • Enabling or Disabling Split Horizon
  • Disabling the Validation of Source IP Addresses
  • Configuring Interpacket Delay
  • Optimizing RIP over WAN
  • Configuring IP-RIP Delay Start for Routers Connected by a Frame Relay Network

Enabling RIP and Configuring RIP Parameters

SUMMARY STEPS

    1.   


    enable

    2.   


    configure


    terminal

    3.   


    router
    rip

    4.   


    network
    ip-address

    5.   

    neighbor
    ip-address

    6.   


    offset-list
    [access-list-number | access-list-name] {in |
    out
    }
    offset
    [interface-type
    interface-number
    ]

    7.   


    timers basic


    update
    invalid
    holddown
    flush [sleeptime]

    8.   


    end

DETAILED STEPS

      Command or Action Purpose
    Step 1

    enable

    Example:

    Device> enable

     

    Enables privileged EXEC mode.

    • Enter your password if prompted.

     

    Step 2

    configure


    terminal

    Example:

    Device# configure terminal

     

    Enters global configuration mode.

     

    Step 3

    router
    rip

    Example:

    Device(config)# router rip

     

    Enables a RIP routing process and enters router configuration mode.

     

    Step 4

    network
    ip-address

    Example:

    Device(config-router)# network 10.1.1.0

     

    Associates a network with a RIP routing process.

     

    Step 5
    neighbor
    ip-address

    Example:

    Device(config-router)# neighbor 10.1.1.2

     

    Defines a neighboring device with which to exchange routing information.

     

    Step 6

    offset-list
    [access-list-number | access-list-name] {in |
    out
    }
    offset
    [interface-type
    interface-number
    ]

    Example:

    Device(config-router)# offset-list 98 in 1 Ethernet 1/0

     

    (Optional) Applies an offset list to routing metrics.

     

    Step 7

    timers basic


    update
    invalid
    holddown
    flush [sleeptime]

    Example:

    Device(config-router)# timers basic 1 2 3 4

     

    (Optional) Adjusts routing protocol timers.

     

    Step 8

    end

    Example:

    Device(config-router)# end

     

    Exits router configuration mode and returns to privileged EXEC mode.

     

    Specifying a RIP Version and Enabling Authentication

    SUMMARY STEPS

      1.   


      enable

      2.   


      configure


      terminal

      3.   


      router
      rip

      4.   


      version
      {1 |
      2
      }

      5.   


      exit

      6.   


      interface


      type
      number

      7.   


      ip
      rip
      send


      version
      [1]
      [2]

      8.   


      ip
      rip
      receive


      version
      [1]
      [2]

      9.   


      ip
      rip
      authentication


      key-chain


      name-of-chain

      10.   


      ip
      rip
      authentication
      mode
      {text |
      md5}

      11.   


      end

    DETAILED STEPS

        Command or Action Purpose
      Step 1

      enable

      Example:

      Device> enable

       

      Enables privileged EXEC mode.

      • Enter your password if prompted.

       

      Step 2

      configure


      terminal

      Example:

      Device# configure terminal

       

      Enters global configuration mode.

       

      Step 3

      router
      rip

      Example:

      Device(config)# router rip

       

      Enters router configuration mode.

       

      Step 4

      version
      {1 |
      2
      }

      Example:

      Device(config-router)# version 2

       

      Enables the Cisco software to send only RIP Version 2 (RIPv2) packets.

       

      Step 5

      exit

      Example:

      Device(config-router)# exit

       

      Exits the router configuration mode and enters the global configuration mode.

       

      Step 6

      interface


      type
      number

      Example:

      Device(config)# interface Ethernet 3/0

       

      Specifies an interface and enters interface configuration mode.

       

      Step 7

      ip
      rip
      send


      version
      [1]
      [2]

      Example:

      Device(config-if)# ip rip send version 2

       

      Configures an interface to send only RIPv2 packets.

       

      Step 8

      ip
      rip
      receive


      version
      [1]
      [2]

      Example:

      Device(config-if)# ip rip receive version 2

       

      Configures an interface to accept only RIPv2 packets.

       

      Step 9

      ip
      rip
      authentication


      key-chain


      name-of-chain

      Example:

      Device(config-if)# ip rip authentication key-chain chainname

       

      Enables RIP authentication.

       

      Step 10

      ip
      rip
      authentication
      mode
      {text |
      md5}

      Example:

      Device(config-if)# ip rip authentication mode md5

       

      Configures the interface to use message digest algorithm 5 (MD5) authentication (or let it default to plain-text authentication).

       

      Step 11

      end

      Example:

      Device(config-if)# end

       

      Exits interface configuration mode and returns to privileged EXEC mode.

       

      Summarizing RIP Routes

      RIP Version 2 supports automatic route summarization by default. The software summarizes subprefixes to the classful network boundary when classful network boundaries are crossed. If you have disconnected subnets, disable automatic route summarization to advertise the subnets. When route summarization is disabled, the software sends subnet and host routing information across classful network boundaries. To disable automatic summarization, use the no auto-summary command in router configuration mode.


      Note


      Supernet advertisement (advertising any network prefix less than its classful major network) is not allowed in RIP route summarization, other than advertising a supernet learned in the routing tables. Supernets learned on any interface that is subject to configuration are still learned. For example, the following summarization is invalid: (invalid supernet summarization)

      Router(config)# interface Ethernet 1 
      Router(config-if)# ip summary-address rip 10.0.0.0 252.0.0.0 
      .
      .

      >


      SUMMARY STEPS

        1.   


        enable

        2.   


        configure


        terminal

        3.   


        interface


        type
        number

        4.   


        ip
        summary-address
        rip


        ip-address
        network-mask

        5.   


        exit

        6.   


        router
        rip

        7.   


        no
        auto-summary

        8.   


        end

      DETAILED STEPS

          Command or Action Purpose
        Step 1

        enable

        Example:

        Router> enable

         

        Enables privileged EXEC mode.

        • Enter your password if prompted.

         

        Step 2

        configure


        terminal

        Example:

        Router# configure terminal

         

        Enters global configuration mode.

         

        Step 3

        interface


        type
        number

        Example:

        Router(config)# interface Ethernet 3/0

         

        Enters the interface configuration mode.

         

        Step 4

        ip
        summary-address
        rip


        ip-address
        network-mask

        Example:

        Router(config-if)# ip summary-address rip 10.2.0.0 255.255.0.0

         

        Specifies the IP address and network mask that identify the routes to be summarized.

         

        Step 5

        exit

        Example:

        Router(config-if)# exit

         

        Exits the interface configuration mode.

         

        Step 6

        router
        rip

        Example:

        Router(config)# router rip

         

        Enters the router configuration mode.

         

        Step 7

        no
        auto-summary

        Example:

        Router(config-router)# no auto-summary

         

        Used in router configuration mode, disables automatic summarization.

         

        Step 8

        end

        Example:

        Router(config-router)# end

         

        Exits router configuration mode and returns to privileged EXEC mode.

         

        Enabling or Disabling Split Horizon

        To enable or disable split horizon, use the following commands in interface configuration mode, as needed.

        SUMMARY STEPS

          1.   


          enable

          2.   


          configure


          terminal

          3.   


          interface


          type
          number

          4.   


          ip split-horizon

          5.   


          no
          ip
          split-horizon

          6.   


          end

        DETAILED STEPS

            Command or Action Purpose
          Step 1

          enable

          Example:

          Router> enable

           

          Enables privileged EXEC mode.

          • Enter your password if prompted.

           

          Step 2

          configure


          terminal

          Example:

          Router# configure terminal

           

          Enters global configuration mode.

           

          Step 3

          interface


          type
          number

          Example:

          Router(config)# interface Ethernet 3/0

           

          Enters interface configuration mode.

           

          Step 4

          ip split-horizon

          Example:

          Router(config-if)# ip split-horizon

           

          Enables split horizon.

           

          Step 5

          no
          ip
          split-horizon

          Example:

          Router(config-if)# no ip split-horizon

           

          Disables split horizon.

           

          Step 6

          end

          Example:

          Router(config-if)# end

           

          Exits interface configuration mode and returns to privileged EXEC mode.

           

          Disabling the Validation of Source IP Addresses

          Perform this task to disable the default function that validates the source IP addresses of incoming routing updates.


          Note


          Split horizon for Frame Relay and SMDS encapsulation is disabled by default. Split horizon is not disabled by default for interfaces using any of the X.25 encapsulations. For all other encapsulations, split horizon is enabled by default.

          In general, changing the state of the default is not recommended unless you are certain that your application requires making a change in order to advertise routes properly. Remember that if split horizon is disabled on a serial interface (and that interface is attached to a packet-switched network), you
          must disable split horizon for all routers in any relevant multicast groups on that network.


          Note


          Summarized network will not be advertised when split horizon is enabled.



          SUMMARY STEPS

            1.   


            enable

            2.   


            configure


            terminal

            3.   


            interface


            type
            number

            4.   


            ip


            split-horizon

            5.   


            exit

            6.   


            router


            rip

            7.   


            no


            validate-update-source

            8.   


            end

          DETAILED STEPS

              Command or Action Purpose
            Step 1

            enable

            Example:

            Router> enable

             

            Enables privileged EXEC mode.

            • Enter your password if prompted.

             

            Step 2

            configure


            terminal

            Example:

            Router# configure terminal

             

            Enters global configuration mode.

             

            Step 3

            interface


            type
            number

            Example:

            Router(config)# interface Ethernet 3/0

             

            Enters interface configuration mode.

             

            Step 4

            ip


            split-horizon

            Example:

            Router(config-if)# ip split-horizon

             

            Enables split horizon.

             

            Step 5

            exit

            Example:

            Router(config-if)# exit

             

            Exits interface configuration mode.

             

            Step 6

            router


            rip

            Example:

            Router(config)# router rip

             

            Enters router configuration mode.

             

            Step 7

            no


            validate-update-source

            Example:

            Router(config-router)# no validate-update-source

             

            Disables the validation of the source IP address of incoming RIP routing updates.

             

            Step 8

            end

            Example:

            Router(config-router)# end

             

            Exits router configuration mode and returns to privileged EXEC mode.

             

            Configuring Interpacket Delay

            Perform this to configure interpacket delay.

            SUMMARY STEPS

              1.   


              enable

              2.   


              configure


              terminal

              3.   


              interface


              type
              number

              4.   


              exit

              5.   


              router


              rip

              6.   


              output-delay


              milliseconds

              7.   


              end

            DETAILED STEPS

                Command or Action Purpose
              Step 1

              enable

              Example:

              Router> enable

               

              Enables privileged EXEC mode.

              • Enter your password if prompted.

               

              Step 2

              configure


              terminal

              Example:

              Router# configure terminal

               

              Enters global configuration mode.

               

              Step 3

              interface


              type
              number

              Example:

              Router(config)# interface Ethernet 3/0

               

              Enters interface configuration mode.

               

              Step 4

              exit

              Example:

              Router(config-if)# exit

               

              Exits interface configuration mode.

               

              Step 5

              router


              rip

              Example:

              Router(config)# router rip

               

              Enters router configuration mode.

               

              Step 6

              output-delay


              milliseconds

              Example:

              Router(config-router)# output-delay 8 

               

              Configures interpacket delay for outbound RIP updates.

               

              Step 7

              end

              Example:

              Router(config-router)# end

               

              Exits router configuration mode and returns to privileged EXEC mode.

               

              Optimizing RIP over WAN

              There are two problems when RIP is not optimized:

              • Periodic broadcasting by RIP generally prevents WAN circuits from being closed.

              • Even on fixed, point-to-point links, the overhead of periodic RIP transmissions could seriously interrupt normal data transfer because of the quantity of information that passes through the line every 30 seconds.

              To overcome these limitations, triggered extensions to RIP cause RIP to send information on the WAN only when there has been an update to the routing database. Periodic update packets are suppressed over the interface on which this feature is enabled. RIP routing traffic is reduced on point-to-point, serial interfaces. Therefore, you can save money on an on-demand circuit for which you are charged for usage. Triggered extensions to RIP partially support RFC 2091, Triggered Extensions to RIP to Support Demand Circuits
              .

              Perform the following task to enable triggered extensions to RIP and to display the contents of the RIP private database.

              SUMMARY STEPS

                1.   


                enable

                2.   


                configure


                terminal

                3.   


                interface


                serial


                controller-number

                4.   


                ip


                rip


                triggered

                5.   


                end

                6.   


                show


                ip


                rip


                database
                [prefix mask]

              DETAILED STEPS

                  Command or Action Purpose
                Step 1

                enable

                Example:

                Router> enable

                 

                Enables privileged EXEC mode.

                • Enter your password if prompted.

                 

                Step 2

                configure


                terminal

                Example:

                Router# configure terminal

                 

                Enters global configuration mode.

                 

                Step 3

                interface


                serial


                controller-number

                Example:

                Router(config)# interface serial3/0

                 

                Configures a serial interface.

                 

                Step 4

                ip


                rip


                triggered

                Example:

                Router(config-if)# ip rip triggered

                 

                Enables triggered extensions to RIP.

                 

                Step 5

                end

                Example:

                Router(config-if)# end

                 

                Returns to privileged EXEC mode.

                 

                Step 6

                show


                ip


                rip


                database
                [prefix mask]

                Example:

                Router# show ip rip database

                 

                Displays the contents of the RIP private database.

                 

                Configuring IP-RIP Delay Start for Routers Connected by a Frame Relay Network

                The tasks in this section explain how to configure a router to use the
                IP-RIP Delay Start feature on a Frame Relay interface.


                Timesaver


                Cisco routers allow an MD5-authenticated RIPv2 neighbor session to
                start when the sequence number of the first MD5 packet received from the other
                router is greater than 0. If you are using only Cisco routers in your network,
                you do not need to use the IP-RIP Delay Start feature.


                • Prerequisites
                • Restrictions
                • Configuring RIPv2
                • Configuring Frame Relay on a Serial Subinterface
                • Configuring IP with MD5 Authentication for RIPv2 and IP-RIP Delay on a Frame Relay Subinterface

                Prerequisites

                Your router must be running Cisco IOS Release 12.4(12) or a later
                release.


                Note


                The IP-RIP Delay Start feature is supported over other interface
                types such as Fast Ethernet and Gigabit Ethernet. If your Cisco router cannot
                establish RIPv2 neighbor sessions using MD5 authentication with a non-Cisco
                device, the IP-RIP Delay Start feature might resolve the problem.


                Restrictions

                The IP-RIP Delay Start feature is required only when your Cisco router
                is configured to establish a RIPv2 neighbor relationship with a non-Cisco
                device and you want to use MD5 neighbor authentication.

                Configuring RIPv2

                This required task configures RIPv2 on the router.

                This task provides instructions for only one of the many possible permutations for configuring RIPv2 on your router.

                SUMMARY STEPS

                  1.   


                  enable

                  2.   


                  configure


                  terminal

                  3.   


                  router
                  rip

                  4.   


                  network


                  ip-network





                  5.   


                  version




                  {1 | 2}

                  6.   

                  [no] auto-summary

                DETAILED STEPS

                    Command or Action Purpose
                  Step 1

                  enable

                  Example:

                  Router> enable

                   

                  Enables privileged EXEC mode.

                  • Enter your password if prompted.

                   

                  Step 2

                  configure


                  terminal

                  Example:

                  Router# configure terminal

                   

                  Enters global configuration mode.

                   

                  Step 3

                  router
                  rip

                  Example:

                  Router(config)# router rip

                   

                  Enables a RIP routing process, which places you in router configuration mode.

                   

                  Step 4

                  network


                  ip-network





                  Example:

                  Router(config-router)# network 192.168.0.0

                   

                  Associates a network with a RIP routing process.

                   

                  Step 5

                  version




                  {1 | 2}

                  Example:

                  Router (config-router)# version 2

                   

                  Configures the software to receive and send only RIP Version 1 or only RIP Version 2 packets.

                   

                  Step 6
                  [no] auto-summary

                  Example:

                  Router(config-router)# no auto-summary

                   

                  Disables or restores the default behavior of automatic summarization of subnet routes into network-level routes.

                   

                  Configuring Frame Relay on a Serial Subinterface

                  This required task configures a serial subinterface for Frame Relay.


                  Note


                  This task provides instructions for only one of the many possible
                  permutations for configuring Frame Relay on a subinterface. For more
                  information about and instructions for configuring Frame Relay, see the
                  Configuring Frame Relay part of the
                  Cisco IOS Wide-Area Networking Configuration Guide .


                  SUMMARY STEPS

                    1.   


                    enable

                    2.   


                    configure


                    terminal

                    3.   


                    interface


                    type


                    number

                    4.   


                    no


                    ip
                    address

                    5.   


                    encapsulation


                    frame-relay


                    [mfr
                    number
                    |
                    ietf]

                    6.   


                    frame-relay


                    lmi-type
                    {cisco |

                    ansi |
                    q933a}

                    7.   


                    exit

                    8.   


                    interface


                    type






                    number/subinterface-number




                    {point-to-point |
                    multipoint}

                    9.   


                    frame-relay
                    interface-dlci


                    dlci
                    [ietf |
                    cisco]

                  DETAILED STEPS

                      Command or Action Purpose
                    Step 1

                    enable

                    Example:

                    Router> enable

                     

                    Enables privileged EXEC mode.

                    • Enter your password
                      if prompted.

                     

                    Step 2

                    configure


                    terminal

                    Example:

                    Router# configure terminal

                     

                    Enters global configuration mode.

                     

                    Step 3

                    interface


                    type


                    number

                    Example:

                    Router(config)# interface serial3/0 

                     

                    Specifies an interface and enters interface configuration mode.

                     

                    Step 4

                    no


                    ip
                    address

                    Example:

                    Router(config-if)# no ip address

                     

                    Removes a previously configured IP address from the interface.

                     

                    Step 5

                    encapsulation


                    frame-relay


                    [mfr
                    number
                    |
                    ietf]

                    Example:

                    Router(config-if)# encapsulation frame-relay ietf 

                     

                    Specifies the type of Frame Relay encapsulation for the
                    interface.

                     

                    Step 6

                    frame-relay


                    lmi-type
                    {cisco |

                    ansi |
                    q933a}

                    Example:

                    Router(config-if)# frame-relay lmi-type ansi

                     

                    Specifies the type of Frame Relay local management interface
                    (LMI) for the interface.

                     

                    Step 7

                    exit

                    Example:

                    Router(config-if)# exit

                     

                    Exits interface configuration mode.

                     

                    Step 8

                    interface


                    type






                    number/subinterface-number




                    {point-to-point |
                    multipoint}

                    Example:

                    Router(config)# interface serial3/0.1 point-to-point

                     

                    Specifies a subinterface and the connection type for the
                    subinterface and enters subinterface configuration mode.

                     

                    Step 9

                    frame-relay
                    interface-dlci


                    dlci
                    [ietf |
                    cisco]

                    Example:

                    Router(config-subif)# frame-relay interface-dlci 100 ietf

                     

                    Assigns a data-link connection identifier (DLCI) to a Frame Relay
                    subinterface.

                     

                    Configuring IP with MD5 Authentication for RIPv2 and IP-RIP Delay on a Frame Relay Subinterface

                    SUMMARY STEPS

                      1.   


                      enable

                      2.   


                      configure


                      terminal

                      3.   


                      key


                      chain


                      name-of-chain

                      4.   


                      key


                      number

                      5.   


                      key-string


                      string

                      6.   


                      exit

                      7.   


                      exit

                      8.   


                      interface


                      type


                      number

                      9.   


                      no


                      cdp


                      enable

                      10.   


                      ip


                      address


                      ip-address
                      subnet-mask

                      11.   


                      ip


                      rip


                      authentication


                      mode
                      {text |
                      md5}

                      12.   


                      ip


                      rip


                      authentication


                      key-chain


                      name-of-chain

                      13.   


                      ip


                      rip


                      initial-delay


                      delay

                      14.   


                      end

                    DETAILED STEPS

                        Command or Action Purpose
                      Step 1

                      enable

                      Example:

                      Device> enable

                       

                      Enables privileged EXEC mode.

                      • Enter your password if prompted.

                       

                      Step 2

                      configure


                      terminal

                      Example:

                      Device# configure terminal

                       

                      Enters global configuration mode.

                       

                      Step 3

                      key


                      chain


                      name-of-chain

                      Example:

                      Device(config)# key chain rip-md5

                       

                      Specifies the name of a key chain and enters key chain configuration mode.

                       

                      Step 4

                      key


                      number

                      Example:

                      Device(config-keychain)# key 123456

                       

                      Specifies the key identifier and enters key chain key configuration mode. The range is from 0 to 2147483647.

                       

                      Step 5

                      key-string


                      string

                      Example:

                      Device(config-keychain-key)# key-string abcde

                       

                      Configures the key string.

                       

                      Step 6

                      exit

                      Example:

                      Device(config-keychain-key)# exit

                       

                      Exits key chain key configuration mode.

                       

                      Step 7

                      exit

                      Example:

                      Device(config-keychain)# exit

                       

                      Exits key chain configuration mode.

                       

                      Step 8

                      interface


                      type


                      number

                      Example:

                      Device(config)# interface serial 3/0.1

                       

                      Specifies a subinterface and enters subinterface configuration mode.

                       

                      Step 9

                      no


                      cdp


                      enable

                      Example:

                      Device(config-subif)# no cdp enable

                       

                      Disables Cisco Discovery Protocol options on the interface.

                      Note   

                      Cisco Discovery Protocol is not supported by non-Cisco devices; and the IP-RIP Delay Start feature is required only when you are connecting to a non-Cisco device. Therefore, you should disable Cisco Discovery Protocol on any interfaces on which you want to configure the IP-RIP Delay Start feature.

                       

                      Step 10

                      ip


                      address


                      ip-address
                      subnet-mask

                      Example:

                      Device(config-subif)# ip address 172.16.10.1 255.255.255.0

                       

                      Configures an IP address for the Frame Relay subinterface.

                       

                      Step 11

                      ip


                      rip


                      authentication


                      mode
                      {text |
                      md5}

                      Example:

                      Device(config-subif)# ip rip authentication mode md5

                       

                      Specifies the mode for RIPv2 authentication.

                       

                      Step 12

                      ip


                      rip


                      authentication


                      key-chain


                      name-of-chain

                      Example:

                      Device (config-subif)# ip rip authentication key-chain rip-md5

                       

                      Specifies a previously configured key chain for Routing Information Protocol Version (RIPv2) message digest algorithm 5 (MD5) authentication.

                       

                      Step 13

                      ip


                      rip


                      initial-delay


                      delay

                      Example:

                      Device(config-subif)# ip rip initial-delay 45

                       

                      Configures the IP-RIP Delay Start feature on the interface. The device will delay sending the first MD5 authentication packet to the RIPv2 neighbor for the number of seconds specified by the
                      delay argument. The range is from 0 to 1800.

                       

                      Step 14

                      end

                      Example:

                      Device(config-subif)# end

                       

                      Exits the subinterface configuration mode and returns to privileged EXEC mode.

                       

                      Configuration Examples for RIP

                      • Route Summarization Example
                      • Split Horizon Examples
                      • Address Family Timers Example
                      • Example: IP-RIP Delay Start on a Frame Relay Interface

                      Route Summarization Example

                      The following example shows how the ip summary-address riprouter configuration command can be used to configure summarization on an interface. In this example, the subnets 10.1.3.0/25, 10.1.3.128/25, 10.2.1.0/24, 10.2.2.0/24, 10.1.2.0/24 and 10.1.1.0/24 can be summarized as shown below while sending the updates over an interface.

                      Router(config)#interface GigabitEthernet 0/2
                      Router(config-if)#ip summary-address rip 10.1.0.0 255.255.0.0
                      Router(config-if)#ip summary-address rip 10.2.0.0 255.255.0.0
                      Router(config-if)#ip summary-address rip 10.3.0.0 255.255.0.0
                      

                      Split Horizon Examples

                      Two examples of configuring split horizon are provided.

                      Example 1

                      The following configuration shows a simple example of disabling split horizon on a serial link. In this example, the serial link is connected to an X.25 network.

                      Router(config)# interface Serial 0 
                      Router(config-if)# encapsulation x25
                       
                      Router(config-if)# no ip split-horizon
                       

                      Example 2

                      In the next example, the figure below illustrates a typical situation in which the
                      no
                      ip
                      split-horizon
                      interface configuration command would be useful. This figure depicts two IP subnets that are both accessible via a serial interface on Router C (connected to a Frame Relay network). In this example, the serial interface on Router C accommodates one of the subnets via the assignment of a secondary IP address.

                      The Ethernet interfaces for Router A, Router B, and Router C (connected to IP networks 10.13.50.0, 10.155.120.0, and 10.20.40.0, respectively all have split horizon enabled by default, while the serial interfaces connected to networks 172.16.1.0 and 192.168.1.0 all have split horizon disabled with the
                      no
                      ip
                      split-horizon
                      command.The figure below shows the topology and interfaces.

                      In this example, split horizon is disabled on all serial interfaces. Split horizon must be disabled on Router C in order for network 172.16.0.0 to be advertised into network 192.168.0.0 and vice versa. These subnets overlap at Router C, interface S0. If split horizon were enabled on serial interface S0, it would not advertise a route back into the Frame Relay network for either of these networks.

                      Configuration for Router A

                      interface ethernet 1
                       ip address 10.13.50.1
                      !
                      interface serial 1
                       ip address 172.16.2.2
                       encapsulation frame-relay
                       no ip split-horizon 

                      Configuration for Router B

                      interface ethernet 2
                       ip address 10.155.120.1
                      !
                      interface serial 2
                       ip address 192.168.1.2
                       encapsulation frame-relay 
                       no ip split-horizon

                      Configuration for Router C

                      interface ethernet 0
                       ip address 10.20.40.1
                      !
                      interface serial 0
                       ip address 172.16.1.1
                       ip address 192.168.1.1 secondary
                       encapsulation frame-relay 
                       no ip split-horizon
                      

                      Address Family Timers Example

                      The following example shows how to adjust individual address family timers. Note that the address family «notusingtimers» will use the system defaults of 30, 180, 180, and 240 even though timer values of 5, 10, 15, and 20 are used under the general RIP configuration. Address family timers are not inherited from the general RIP configuration.

                      Router(config)# router rip
                      Router(config-router)# version 2
                      Router(config-router)# timers basic 5 10 15 20
                      Router(config-router)# redistribute connected
                      Router(config-router)# network 5.0.0.0
                      Router(config-router)# default-metric 10
                      Router(config-router)# no auto-summary
                      Router(config-router)#
                      Router(config-router)# address-family ipv4 vrf abc
                      Router(config-router-af)# timers basic 10 20 20 20
                      Router(config-router-af)# redistribute connected
                      Router(config-router-af)# network 10.0.0.0
                      Router(config-router-af)# default-metric 5
                      Router(config-router-af)# no auto-summary
                      Router(config-router-af)# version 2
                      Router(config-router-af)# exit-address-family
                      Router(config-router)# 
                      Router(config-router)# address-family ipv4 vrf xyz
                      Router(config-router-af)# timers basic 20 40 60 80
                      Router(config-router-af)# redistribute connected
                      Router(config-router-af)# network 20.0.0.0
                      Router(config-router-af)# default-metric 2
                      Router(config-router-af)# no auto-summary
                      Router(config-router-af)# version 2
                      Router(config-router-af)# exit-address-family
                      Router(config-router)#
                      Router(config-router)# address-family ipv4 vrf notusingtimers
                       
                      Router(config-router-af)# redistribute connected 
                      Router(config-router-af)# network 20.0.0.0 
                      Router(config-router-af)# default-metric 2 
                      Router(config-router-af)# no auto-summary 
                      Router(config-router-af)# version 2 
                      Router(config-router-af)# exit-address-family 
                      Router(config-router)#
                      



                      Example: IP-RIP Delay Start on a Frame Relay Interface

                      Additional References

                      The following sections provide references related to configuring Routing Information Protocol.

                      Related Documents

                      Related Topic

                      Document Title

                      Protocol-independent features, filtering RIP information, key management (available in RIP Version 2), and VLSM

                      Configuring IP Routing Protocol-Independent Features

                      IPv6 Routing: RIP for IPv6

                      Cisco IOS IP Routing: RIP Configuration Guide

                      RIP commands: complete command syntax, command mode, command history, defaults, usage guidelines, and examples

                      Cisco IOS IP Routing: RIP Command Reference

                      Configuring Frame Relay

                      Cisco IOS Wide-Area Networking Configuration Guide

                      Standards

                      Standard

                      Title

                      None

                      MIBs

                      MIB

                      MIBs Link

                      No new or modified MIBS are supported and support for existing MIBs has not been modified.

                      To locate and download MIBs for selected platforms, Cisco IOS releases, and feature sets, use Cisco MIB Locator found at the following URL:

                      http://www.cisco.com/go/mibs

                      RFCs

                      RFC

                      Title

                      RFC 1058

                      Routing Information Protocol

                      RFC 2082

                      RIP-2 MD5 Authentication

                      RFC 2091

                      Triggered Extensions to RIP to Support Demand Circuits

                      RFC 2453

                      RIP version 2

                      Technical Assistance

                      Description

                      Link

                      The Cisco Support website provides extensive online resources, including documentation and tools for troubleshooting and resolving technical issues with Cisco products and technologies.

                      To receive security and technical information about your products, you can subscribe to various services, such as the Product Alert Tool (accessed from Field Notices), the Cisco Technical Services Newsletter, and Really Simple Syndication (RSS) Feeds.

                      Access to most tools on the Cisco Support website requires a Cisco.com user ID and password.

                      http://www.cisco.com/cisco/web/support/index.html

                      Feature Information for Configuring RIP

                      The following table
                      provides release information about the feature or features described in this
                      module. This table lists only the software release that introduced support for
                      a given feature in a given software release train. Unless noted otherwise,
                      subsequent releases of that software release train also support that feature.

                      Use Cisco Feature Navigator to find information about platform
                      support and Cisco software image support. To access Cisco Feature Navigator, go
                      to
                      .
                      An account on Cisco.com is not required.

                      Table 1 Feature Information for Configuring Routing Information Protocol

                      Feature Name

                      Releases

                      Feature Information

                      IP-RIP Delay Start

                      12.4(12),

                      15.0(1)M,

                      12.2(33)SRE,

                      15.0(1)SY

                      The IP-RIP Delay Start feature is used on Cisco routers to delay the initiation of RIPv2 neighbor sessions until the network connectivity between the neighbor routers is fully operational, thereby ensuring that the sequence number of the first MD5 packet that the router sends to the non-Cisco neighbor router is 0. The default behavior for a router configured to establish RIPv2 neighbor sessions with a neighbor router using MD5 authentication is to start sending MD5 packets when the physical interface is up.

                      The following commands were introduced or modified:
                      ip
                      rip
                      initial-delay
                      .

                      IP Summary Address for RIPv2

                      12.0(7)T 12.1(3)T 12.1(14) 12.2(2)T 12.2(27)SBB 15.0(1)M 12.2(33)SRE 15.0S

                      The IP Summary Adddress for RIPv2 feature introduced the ability to summarize routes. Summarizing routes in RIP Version 2 improves scalability and efficiency in large networks. Summarizing IP addresses means that there is no entry for child routes (routes that are created for any combination of the individual IP addresses contained within a summary address) in the RIP routing table, reducing the size of the table and allowing the router to handle more routes.

                      The following commands were introduced or modified by this feature:
                      ip
                      summary-address
                      rip
                      .

                      Routing Information Protocol

                      12.2(27)SBB 15.0(1)M 12.2(33)SRE 15.0S

                      Routing Information Protocol (RIP) is a commonly used routing protocol in small to medium TCP/IP networks. It is a stable protocol that uses a distance-vector algorithm to calculate routes.

                      Triggered RIP

                      12.0(1)T 15.0(1)M 12.2(33)SRE 15.0S

                      Triggered RIP was introduced to overcome constant RIP updates over expensive circuit-based WAN links. Triggered extensions to RIP cause RIP to send information on the WAN only when there has been an update to the routing database. Periodic update packets are suppressed over the interface on which this feature is enabled. RIP routing traffic is reduced on point-to-point, serial interfaces.

                      The following commands were introduced or modified:
                      ip
                      rip
                      triggered
                      ,
                      show
                      ip
                      rip
                      database
                      .

                      Glossary


                      address
                      family
                      —A group of network protocols that share a common format of network address. Address families are defined by RFC 1700.


                      IS-IS
                      —Intermediate System-to-Intermediate System. OSI link-state hierarchical routing protocol based on DECnet Phase V routing, where routers exchange routing information based on a single metric, to determine network topology.


                      RIP
                      —Routing Information Protocol.RIP is a dynamic routing protocol used in local and wide area networks.


                      VRF
                      —VPN routing and forwarding instance. A VRF consists of an IP routing table, a derived forwarding table, a set of interfaces that use the forwarding table, and a set of rules and routing protocols that determine what goes into the forwarding table. In general, a VRF includes the routing information that defines a customer VPN site that is attached to a PE router.


                      В сетевой инфраструктуре особенно важно обеспечить надежность и эффективность передачи данных. Протокол RIP (Routing Information Protocol) является одним из основных протоколов маршрутизации в компьютерных сетях. Он позволяет роутерам обмениваться информацией о маршрутах и выбирать оптимальный путь для доставки пакетов данных.

                      Основная задача RIP заключается в создании таблицы маршрутизации, которая содержит информацию о доступных маршрутах, расстояниях до них и их стоимости. Эта информация передается от одного роутера к другому, позволяя всем узлам сети оптимально выбирать маршрут для передачи данных.

                      Для включения RIP в роутере необходимо выполнить несколько шагов. Во-первых, необходимо настроить сам протокол RIP на каждом роутере сети. Для этого используются команды, которые устанавливаются в командной строке роутера. Во-вторых, необходимо настроить интерфейсы роутера, которые будут использоваться для обмена информацией с другими роутерами. Это позволяет определить, какие интерфейсы будут использоваться для обмена информацией о маршрутах.

                      Включение протокола RIP в роутере позволяет автоматически обновлять таблицы маршрутизации и выбирать оптимальные маршруты для доставки данных. Это значительно упрощает процесс настройки и обновления сети, а также увеличивает скорость и надежность передачи данных в сети.

                      Надеюсь, теперь вы понимаете, что такое протокол RIP и как его включить в роутере. Это основной протокол маршрутизации, который помогает роутерам обмениваться информацией о маршрутах и выбирать наиболее эффективные пути для передачи данных. Включение RIP в роутер обеспечивает автоматическое обновление таблиц маршрутизации и оптимальный выбор пути для доставки пакетов данных.

                      Содержание

                      1. Основы RIP-протокола
                      2. Краткое описание и работа протокола RIP
                      3. Преимущества и недостатки RIP-протокола
                      4. Как включить RIP в роутере
                      5. Настройка RIP на роутере с помощью команд
                      6. Использование веб-интерфейса для включения RIP
                      7. Проверка работоспособности RIP-протокола

                      Основы RIP-протокола

                      Основой работы RIP является система счетчиков метрик. Каждый маршрутизатор подсчитывает метрику маршрута до всех доступных сетей. Метрика, как правило, является количеством переходов через маршрутизаторы. Чем меньше метрика, тем лучше маршрут. RIP использует алгоритм Bellman-Ford для выбора наилучшего маршрута на основе метрик.

                      Протокол RIP работает с логическими одними. Это означает, что он отправляет таблицу маршрутизации каждые 30 секунд через протокол UDP. Каждый маршрутизатор получает обновления таблицы маршрутизации от соседних маршрутизаторов и обновляет свою собственную таблицу. Если маршрутизатор перестает получать обновления от соседних узлов в течение 180 секунд, он считает, что эти соседние узлы недоступны.

                      У протокола There много версий, и все они совместимы друг с другом. Однако наиболее широко известные версии это RIP v1 и RIP v2. Они имеют некоторые различия в своих возможностях, таких как поддержка VLSM (перемаскировка сетевых адресов переменной длины) и IPv6. RIP v2 также поддерживает авторизацию маршрутов с помощью пароля.

                      Протокол RIP широко используется в небольших сетях, в основном в локальных сетях. Он прост в настройке, но имеет ограниченные возможности и плохо масштабируется на больших сетях. Тем не менее, для небольших офисных сетей или домашних сетей RIP является удобным и надежным выбором.

                      Краткое описание и работа протокола RIP

                      Работа протокола RIP основана на отправке сообщений (RIP-пакетов) другим роутерам, содержащих информацию о маршрутах и стоимости передачи данных. Роутеры, участвующие в протоколе RIP, регулярно обмениваются такими сообщениями, что позволяет им обновлять информацию о сетях и маршрутах. Каждый роутер подсчитывает стоимость передачи данных для каждого маршрута и использует алгоритмы, чтобы выбрать оптимальный маршрут.

                      Протокол RIP подходит для небольших сетей, где не требуется быстрая и сложная маршрутизация. Он прост в настройке и управлении, но имеет небольшую пропускную способность и не обеспечивает обнаружение и предотвращение петель при наличии кольцевой топологии сети.

                      Включение протокола RIP в роутере обычно осуществляется путем настройки соответствующих параметров маршрутизации. Это может включать в себя задание интерфейсов, которые будут использоваться протоколом RIP, и настройку статических маршрутов или маршрутов по умолчанию.

                      В целом, протокол RIP является удобным и распространенным инструментом для настройки простой и небольшой сети. Он обеспечивает достаточную функциональность для большинства потребностей и требует минимальной конфигурации.

                      Преимущества и недостатки RIP-протокола

                      Протокол маршрутизации RIP (Routing Information Protocol) широко используется в сетях малого и среднего размера благодаря своей простоте и надежности. Он относится к классу протоколов на основе векторов расстояний, что позволяет ему определять наилучший путь и настраиваться на изменение сетевой конфигурации.

                      Главные преимущества RIP:

                      • Простота настройки и обслуживания. В отличие от других протоколов маршрутизации, RIP не требует сложной настройки и позволяет с минимальными усилиями создать и поддерживать сетевую инфраструктуру.
                      • Надежность и стабильность. RIP был разработан с учетом максимальной надежности передачи информации о маршрутах и может эффективно работать в условиях неблагоприятных сетевых условий, таких как потеря пакетов или изменение топологии сети.
                      • Поддержка автоматического обнаружения и устранения неполадок. RIP способен самостоятельно обнаруживать сбои в сетевой инфраструктуре и перестраивать маршруты в реальном времени, что повышает надежность и стабильность сети.
                      • Масштабируемость. Протокол RIP позволяет эффективно работать в сетях с несколькими десятками маршрутизаторов, облегчая процесс управления маршрутами и динамическую адаптацию к изменениям.

                      Однако использование RIP имеет и некоторые недостатки, которые могут ограничить его применение:

                      • Ограниченная поддержка больших сетей. RIP может эффективно работать только в небольших сетях, так как при большом количестве маршрутизаторов происходит значительное увеличение нагрузки на сеть и время на обмен информацией о маршрутах.
                      • Неэффективное использование пропускной способности. Поскольку RIP обновляет информацию о маршрутах с определенной периодичностью, существует задержка между изменениями в топологии сети и обновлением маршрутов. Это может привести к неэффективному использованию пропускной способности сети и нарушению качества обслуживания.
                      • Отсутствие поддержки современных технологий и функций. RIP является устаревшим протоколом маршрутизации, который не поддерживает некоторые современные технологии, такие как распределенные сети и IPv6. Это может ограничить возможности сети.
                      • Уязвимость к атакам. Из-за своей простоты RIP может быть уязвим к различным атакам, таким как подмена маршрутов или переполнение таблиц маршрутизации, что может привести к нарушению работы сети или утечке конфиденциальной информации.

                      Несмотря на некоторые ограничения и недостатки, протокол RIP остается популярным среди малых и средних сетей благодаря своей простоте и надежности. Однако при проектировании и управлении сетевой инфраструктурой необходимо учитывать его особенности и альтернативы.

                      Как включить RIP в роутере

                      1. Подключите компьютер к роутеру с помощью Ethernet-кабеля или беспроводного соединения.
                      2. Откройте веб-браузер и введите IP-адрес роутера в строку адреса.
                      3. Войдите в настройки роутера с помощью административных учетных данных.
                      4. Найдите раздел настроек маршрутизации или протоколов маршрутизации.
                      5. Выберите опцию RIP и включите его.
                      6. Настроите параметры RIP, такие как время жизни маршрута (TTL) и интервал обновления.
                      7. Сохраните настройки и перезагрузите роутер, чтобы применить изменения.

                      После включения RIP на роутере, он начнет обмениваться информацией о маршрутах с другими RIP-активными роутерами в сети. Это позволит роутерам автоматически обновлять свои таблицы маршрутизации и выбирать наиболее короткие пути для доставки данных.

                      Настройка RIP на роутере с помощью команд

                      Для включения RIP на роутере и настройки его параметров необходимо выполнить следующие команды:

                      1. Вход в режим настройки роутера:

                      enable

                      configure terminal

                      2. Включение протокола RIP:

                      router rip

                      3. Настройка основных параметров протокола:

                      version {1 | 2} — указание версии протокола RIP (1 или 2)

                      network <адрес_сети> — указание сетей, которые будут объявлены соседним роутерам

                      no auto-summary — отключение автоматической суммаризации маршрутов

                      4. Настройка дополнительных параметров протокола (при необходимости):

                      passive-interface <интерфейс> — установка интерфейса в пассивный режим (не отправляет обновления протокола RIP)

                      default-information originate — объявление маршрута по умолчанию, если таковой имеется

                      redistribute <протокол> <номер_процесса> — распространение маршрутов других протоколов в RIP

                      5. Сохранение изменений:

                      end

                      copy running-config startup-config

                      После выполнения всех команд RIP будет включен на роутере и начнет обмениваться информацией о маршрутах с соседними роутерами, настроенными на тот же протокол.

                      Использование веб-интерфейса для включения RIP

                      Включение протокола маршрутизации RIP (Routing Information Protocol) на роутере может производиться с помощью веб-интерфейса управления роутером. Для этого необходимо выполнить следующие шаги:

                      1. Откройте веб-браузер и введите IP-адрес роутера в адресную строку. Обычно адрес указан в документации к роутеру или может быть найден на задней панели роутера.

                      2. Введите свои учетные данные для доступа к веб-интерфейсу роутера. Обычно это имя пользователя и пароль, которые также указаны в документации или заданы по умолчанию.

                      3. После успешной авторизации вы увидите веб-интерфейс управления роутером. Навигационное меню может отличаться в зависимости от модели роутера, но вы должны найти раздел или вкладку, связанные с настройками маршрутизации.

                      4. В разделе настройки маршрутизации найдите настройки протокола RIP. Возможно, вам потребуется проскроллить страницу или перейти на другую вкладку, связанную с маршрутизацией.

                      5. Включите протокол RIP, выбрав соответствующую опцию или переключатель. Обычно требуется щелкнуть на флажке или переместить переключатель в положение «ON».

                      6. Подтвердите включение протокола RIP и примените изменения, нажав на кнопку «Применить» или «Сохранить».

                      7. После применения изменений роутер автоматически начнет обмениваться информацией о маршрутах с другими устройствами в сети, используя протокол RIP. Вы можете увидеть это настройки на этой странице или в другом разделе веб-интерфейса роутера.

                      Теперь протокол RIP включен на вашем роутере, и он станет проактивно передавать информацию о маршрутах в сети. Убедитесь, что все ваши сетевые устройства настроены для приема и обработки маршрутной информации, передаваемой через протокол RIP.

                      Проверка работоспособности RIP-протокола

                      Для проверки работоспособности RIP-протокола на роутере можно использовать следующие методы:

                      1. Просмотреть исходную таблицу маршрутизации на роутере. Для этого можно использовать команду show ip route. Если в таблице маршрутизации есть записи с протоколом RIP (обычно они начинаются с символа «R»), это означает, что RIP-протокол настроен и функционирует.
                      2. Проверить доступность сетевых узлов, используя созданные маршруты. Для этого можно использовать команду ping с указанием IP-адреса удаленного узла. Если пинг успешен, это означает, что маршрутизация настроена правильно.
                      3. Использовать утилиту traceroute для определения пути пересылки пакетов до удаленного узла. Если в результате traceroute видны записи, содержащие IP-адреса маршрутизаторов, это подтверждает работоспособность RIP-протокола.

                      Если при проверке работоспособности RIP-протокола возникают проблемы, можно осуществить следующие действия:

                      • Проверить правильность настройки RIP-протокола на роутере. Убедитесь, что все необходимые интерфейсы включены в процесс маршрутизации RIP и правильно настроены.
                      • Проверить наличие соседних RIP-роутеров и убедиться, что они также настроены с учетом RIP-протокола.
                      • Проверить настройки сетевых узлов и убедиться, что они корректно настроены для работы с RIP-протоколом.
                      • Если проблема не устраняется, можно выполнить отладку RIP-протокола с помощью команды debug ip rip. Это позволит отслеживать процесс обмена RIP-сообщениями и выявить возможные ошибки.

                    1. Включить ssh на роутере что это
                    2. Включить беспроводной режим на роутере
                    3. Влияет ли скорость интернета на wifi роутере
                    4. Включить nat loopback в роутере d link что это
                    5. Включить цзы на роутере что это