Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Include Page
_IW Academy
_IW Academy

Hide_comments

Table of contents

Table of Contents
maxLevel3
excludeСписок документов|Содержание

Описание

...

Description

The InfiNet devices of the InfiLINK 2x2 и InfiMAN 2x2 включают два модуля для настройки протокола RIP: модуль rip и модуль arip. Различие между ними заключается в том, что модуль rip не поддерживает совместную работу с протоколом OSPF, поэтому рекомендуется выполнять конфигурацию устройств с использованием модуля arip. В соответствии с рекомендацией в статье будем рассматривать настройку протокола RIP с использованием модуля arip.

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

...

Базовый режим RIP предназначен для анализа вывода диагностических команд и перехода в режим конфигурации.

...

, InfiMAN 2x2, InfiLINK Evolution, InfiMAN Evolution families have two modules for configuring RIP: rip and arip. The difference between them is in the interoperability with the OSPF protocol, which is not present in the rip module, thus it is recommended to configure the devices using the arip module. Due to the recommendation, this article will describe the RIP configuration using the arip module.

The RIP configuration is performed only via CLI. A separate command shell with several modes is used to configure the RIP protocol (Figure 1). The transition to each mode is performed using the commands with the same name. A detailed description of the commands is available in the Technical documentation.

Note
titleNOTE

An configuration example is given for the InfiLINK 2x2, InfiMAN 2x2 families devices, pay attention to the name of the radio interface on your devices during the scheme implementation.

Mode nameDescription
Basic

The basic RIP mode is used to analyze the output of the diagnostic commands and to switch to the configuration mode.

The switching to the basic mode is performed from the WANFleX command shell using the "arip" command.

Code Block
languagetext
themeEmacs
BS_1#1> arip
RIP>
Конфигурация
RIP

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

Переход в режим конфигурации RIP выполняется из базового режима с помощью команды "config"
configuration

The configuration mode allows to manage the RIP service running on the device and proceed to the configuration modes: router, interfaces or route-maps.

The switching to the RIP configuration mode is performed from the basic mode using the "config" command.

Code Block
languagetext
themeEmacs
RIP> config
RIP(config)#
Конфигурация маршрутизатора
RIP

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

Переход в режим конфигурации маршрутизатора RIP выполняется из режима конфигурации с помощью команды "router".

codeПереход в режим конфигурации интерфейса RIP выполняется из режима конфигурации с помощью команды "interface IFNAME".
router configuration

In the router configuration mode, basic RIPF settings can be made. The mode allows to configure the announced networks, router ID, etc.

The switching to the RIP router configuration mode is performed from the configuration mode using the "router" command.

Code Block
languagetext
themeEmacs
RIP(config)# router
RIP(config-router)# 
Конфигурация интерфейса RIP

Режим конфигурации интерфейса RIP позволяет выполнить настройки протокола, связанные с конкретным интерфейсом.

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

Переход в режим конфигурации фильтров маршрутов RIP выполняется из режима конфигурации с помощью команды создания фильтра
RIP interface configuration

The RIP interface configuration mode allows to configure the protocol settings related to a specific interface.

The switching to the RIP interface configuration mode is performed from the configuration mode using the "interface IFNAME" command.

Code Block
languagetext
themeEmacs
RIP(config)# interface rf5.0
RIP(config-if)#
Конфигурация фильтров маршрутов
Route-maps configuration

The route-maps configuration mode allows to configure the rules that should be applied to the advertised or received RIP routes.

The switching to the RIP route-map configuration mode is performed from the configuration mode using the rule creation command "route-map WORD (deny|permit) <1-65535>".

Code Block
languagetext
themeEmacs
RIP(config)# route-map MAP permit 10
RIP(config-route-map)#
Center

Gliffy Diagram
displayNamerip_shell
namerip_shell
pagePin1

Рисунок Figure 1 - Диаграмма переходов между режимами командной оболочки RIP

Каждый из режимов командной оболочки RIP содержит помощь с выводом всего перечня поддерживаемых команд. Вызов помощи выполняется с использованием команды "help".

...

Switching between the RIP command shell modes

Each RIP shell mode provides help by displaying the full list of supported commands. To display the list, use the "help" command.

The routing table can be displayed using one of the following commands:

Code Block
languagetext
themeEmacs
Изfrom команднойthe оболочкиWANFleX WANFleXcli:
BS_1#1> netstat -r

Из командной оболочки RIPfrom the RIP basic shell mode:
RIP> show route

Изfrom команднойthe оболочкиARDA ARDAshell mode:
ARDA> show route

Постановка задачи

Рассмотрим поэтапную конфигурацию протокола RIP на устройствах Инфинет на примере следующей схемы (рис. 2):

...

Task

Let's take a look at the step by step configuration of the RIP protocol on the InfiNet devices, using the following scheme (Figure 2):

  • the network consists of three wireless devices: BS1, CPE2 and CPE3 which are connected through wireless links;
  • subnet 172.16.0.0/29 ;каждое из беспроводных устройств имеет подключение к проводному сегменту связи: БС1 подключен к сети is assigned to the wireless network;
  • each wireless device has a connection to a wired segment: BS1 is connected to the 10.10.10.0/24 network, АС2 CPE2 - к сети to the 10.10.20.0/24 network, АС3 CPE3 - к сети to the 10.10.30.0/24 ;на беспроводном устройстве АС3 настроены три статических маршрута к сетям network;
  • three static routes are configured on the CPE3 wireless device towards the networks 192.168.6.0/28, 192.168.7.0/28 , and 192.168.8.0/28. В качестве шлюза используется сторонний маршрутизатор R1;за каждым из беспроводных устройств закреплён адрес, ассоциированный с интерфейсом loopback, из сети  The third-party router R1 is used as a gateway;
  • an IP address from the 192.168.0.0/24 .

Задача: на беспроводных устройствах необходимо настроить работу протокола RIP так, чтобы в таблице каждого из маршрутизатором появилась информация о всех сетях, указанных на схеме. Устройство БС1 должно быть использовано в качестве шлюза по умолчанию на устройствах АС2 и АС3.

Center

Image Removed

Рисунок 2 - Пример схемы сети для конфигурации протокола RIP

Решение

...

  • network is assigned to the loopback interface of each wireless device.

Task: configure the RIP protocol on the wireless devices in order to add information about all the networks in the scheme to the routing table of each router. The BS1 device should be used as default gateway on the CPE2 and CPE3 devices.

Center

Image Added

Figure 2 - Network scheme for the RIP configuration

Solution

The devices will be configured step-by-step. In addition to the RIP configuration, static routes will be used (see Static routing) for providing connectivity with LAN-6, LAN-7 , and LAN-8.

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

Предварительная настройка

...

Выполним предварительную настройку устройств, состоящую из следующих этапов:

  • Установка идентификаторов устройств.
  • Удаление интерфейса svi1.
  • Ассоциация IP-адресов с сетевыми интерфейсами, согласно схеме.
  • Добавление статических записей в таблицу маршрутизации.
  • Отключение коммутации.
  • Установка радиоканала.

...

In order to highlight several available features, different approaches will be used when configuring RIP on the wireless devices.

Pre-configuration

Description

Perform a preliminary configuration of the devices, consisting of the following steps:

  • Configure the device IDs.
  • Remove the svi1 interface.
  • Assign IP addresses to the network interfaces, according to the scheme.
  • Add static entries to the routing table.
  • Disable switching.
  • Establish the wireless links.
BS1
Code Block
languagetext
themeEmacs
Установка идентификатораSet the device ID
system prompt BS_1

УдалениеRemove интерфейсаthe svi1 interface
ifc svi1 destroy

НазначениеAssign IP-адресов addresses
ifc eth0 10.10.10.1/24
ifc rf5.0 172.16.0.1/29
ifc lo0 192.168.0.1/32

ОтключениеDisable коммутацииswitching
switch stop

Установка радиоканалаEstablish the radio link
rf rf5.0 band 20
rf rf5.0 freq 5000

mint rf5.0 -name "BS_1"
mint rf5.0 -type master
АС2CPE2
Code Block
languagetext
themeEmacs
Установка идентификатораSet the device ID
system prompt ASCPE_2

УдалениеRemove интерфейсаthe svi1 interface
ifc svi1 destroy

НазначениеAssign IP-адресов addresses
ifc eth0 10.10.20.2/24
ifc rf5.0 172.16.0.2/29
ifc lo0 192.168.0.2/32

ОтключениеDisable коммутацииswitching
switch stop

Установка радиоканалаEstablish the radio link
mint rf5.0 -name "ASCPE_2"
mint rf5.0 -type slave
mint rf5.0 prof 1 -band 20 -freq 5000 -type slave
АС3CPE3
Code Block
languagetext
themeEmacs
Установка идентификатораSet the device ID
system prompt ASCPE_3

УдалениеRemove интерфейсаthe svi1 interface
ifc svi1 destroy

НазначениеAssign IP-адресов addresses
ifc eth0 10.10.30.3/24
ifc rf5.0 172.16.0.3/29
ifc lo0 192.168.0.3/32

ДобавлениеAdd статическихstatic маршрутовroutes
route add 192.168.5.0/28 10.10.30.1
route add 192.168.6.0/28 10.10.30.1

ОтключениеDisable коммутацииswitching
switch stop

Установка радиоканалаEstablish the radio link
mint rf5.0 -name "ASCPE_3"
mint rf5.0 -type slave
mint rf5.0 prof 1 -band 20 -freq 5000 -type slave

...

RIP configuration

Выполним настройку протокола RIP в соответствии со схемой.

Этап 1: запустим работу демона RIP.

Этап 2: определим интерфейсы, на которых должен быть запущен протокол RIP:

  • БС1: укажем интерфейсы lo0 и rf5.0;
  • АС2: укажем все интерфейсы;
  • АС3: укажем все интерфейсы.
На маршрутизаторе АС2 диапазон сетей, используемые в RIP, будет указан с помощью одной записи БС1
ОписаниеDescription

Configure the RIP protocol according to the scheme.

Step 1: start the RIP daemon.

Step 2: define the interfaces where RIP should be started:

  • BS1: the lo0 and radio interfaces;
  • CPE2: all interfaces;
  • CPE3: all interfaces.

In CPE2's configuration, the range of networks used in RIP will be set as a single entry: 0.0.0.0/0. Такая запись включает в себя все сети и активирует поддержку RIP на всех интерфейсах маршрутизатора, при подключении одного из интерфейсов устройства к новой сети эта сеть будет сразу анонсирована через RIP. Такой подход имеет преимущество, т.к. не потребуется дополнительной конфигурации RIP, но он таит в себе недостаток, т.к. снижается контроль за анонсами.

На маршрутизаторах БС1 и АС3 будем указывать только те сети, которые ассоциированы с интерфейсами, участвующими в работе протокола RIP.

Этап 3: выполним редистрибуцию маршрутной информации. БС1 выполняет редистрибуцию непосредственно присоединённых сетей, АС3 - редистрибуцию статических маршрутов.

Этап 4: определим пассивные интерфейсы. Интерфейс eth0 маршрутизатора АС3 подключен к стороннему маршрутизатору R1, поэтому необходимо блокировать передачу маршрутной информации между ними. Для этого интерфейс eth0 АС3 необходимо настроить как пассивный.

Этап 5: анонсируем маршрут по умолчанию, указав в качестве шлюза БС1.

 This entry includes all networks and enables the RIP support on all router's interfaces; when one of the CPE2's interfaces is connected to a new network, this network will be immediately announced via RIP. This approach doesn't require any additional RIP configuration, but decreases the control over the announcements.

On the BS1 and CPE3 routers, we will set only those networks that are associated with the interfaces participating in the RIP's operation.

Step 3: redistribute the directly connected networks on BS1 and the static routes on the CPE3 router.

Step 4: configure passive interfaces. The eth0 interface of CPE3 is connected to the external router R1, therefore it is necessary to block the transmission of the routing information between them. To ensure this, the eth0 interface of CPE3 must be configured as passive.

Step 5: announce the default route, specifying BS1 as the gateway.

BS1
Code Block
languagetext
themeEmacs
ЗапускStart демонаthe RIP daemon
arip start

ЗапускStart RIP on наthe интерфейсахinterfaces
arip
config
router
network 172.16.0.0/29

Редистрибуция connected-маршрутовConnected routes redistribution
arip
config
router
redistribute connected

АнонсDefault маршрутаroute по умолчаниюannouncement
arip
config
router
default-information originate
АС2CPE2
Code Block
languagetext
themeEmacs
ЗапускStart демонаthe RIP daemon
arip start

ЗапускStart RIP on наthe интерфейсахinterfaces
arip
config
router
network 0.0.0.0/0
АС3CPE3
Code Block
languagetext
themeEmacs
ЗапускStart демонаthe RIP daemon
arip start

ЗапускStart RIP on наthe интерфейсахinterfaces
arip
config
router
network 10.10.30.0/24
network 172.16.0.0/29
network 192.168.0.3/32

РедистрибуцияStatic статическихroutes маршрутовredistribution
arip
config
router
redistribute kernel

Определим пассивные интерфейсыConfiguration of the passive interfaces
passive-interface eth0

Анализ вывода команд

Таблица маршрутизации

...

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

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

  • БС1: редистрибуция непосредственно присоединённой сети;
  • АС2: устройство анонсирует все сети, к которым имеет подключение;
  • АС3: явное указание анонсов сети, закреплённой за интерфейсом loopback.

Также следует обратить внимание на наличие маршрута по умолчанию на устройствах АС2 и АС3. БС1, в соответствии с конфигурацией, анонсирует всем устройствам, поддерживающим работу протокола RIP, маршрут по умолчанию, указывая себя в качестве шлюза. При этом в таблице маршрутизации БС1 маршрут по умолчанию отсутствует.

...

Command output analysis

Routing table
Description

The routing tables of the wireless devices contain entries about each subnet shown in the scheme. This means that the devices have successfully exchanged routing information and added it to the FIB.

Note that the routing tables contain also routes to the addresses assigned to the loopback interfaces of the other wireless devices. These interfaces have been added to RIP in various ways:

  • BS1: redistribution of a directly connected network;
  • CPE2: the device advertises all the networks to which it is connected because of the configuration of the 0.0.0.0/0 network;
  • CPE3: the network assigned to the loopback interface is explicitly announced.

Also pay attention to the default route on the CPE2 and CPE3 devices. According to the configuration, BS1 announces the default route to all the devices that support RIP, indicating itself as a gateway. At the same time, the default route is absent from the BS1's routing table.

The CPE3 router redistributes the static routes, therefore, the routing tables of BS1 and CPE2 contain paths towards the networks 192.168.6.0/24, 192.168.7.0/24

и

and 192.168.8.0/24.

БС1
BS1
Code Block
languagetext
themeEmacs
BS_1#1> netstat -r
Routing tables
Destination        Gateway            Flags     Refs     Use  Interface
10.10.10.0/24      link#2             UC          0        0  eth0
10.10.20.0/24      172.16.0.2         UG3         0        0  rf5.0
10.10.30.0/24      172.16.0.3         UG3         0        0  rf5.0
127.0.0.1          127.0.0.1          UH          3      106  lo0
172.16.0.0/29      link#3             UC          0        0  rf5.0
192.168.0.1        192.168.0.1        UH          0        0  lo0
192.168.0.2        172.16.0.2         UGH3        0        0  rf5.0
192.168.0.3        172.16.0.3         UGH3        0        0  rf5.0
192.168.6.0/28     172.16.0.3         UG3         0        0  rf5.0
192.168.7.0/28     172.16.0.3         UG3         0        0  rf5.0
192.168.8.0/28     172.16.0.3         UG3         0        0  rf5.0
224.0.0.0/8        127.0.0.1          UGS         0      346  lo0
АС2
CPE2
Code Block
languagetext
themeEmacs
AS_2#1> netstat -r
Routing tables
Destination        Gateway            Flags     Refs     Use  Interface
default            172.16.0.1         UG3         0        0  rf5.0
10.10.10.0/24      172.16.0.1         UG3         0        0  rf5.0
10.10.20.0/24      link#2             UC          0        0  eth0
10.10.30.0/24      172.16.0.3         UG3         0        0  rf5.0
127.0.0.1          127.0.0.1          UH          3      100  lo0
172.16.0.0/29      link#3             UC          0        0  rf5.0
192.168.0.1        172.16.0.1         UGH3        0        0  rf5.0
192.168.0.2        192.168.0.2        UH          0        0  lo0
192.168.0.3        172.16.0.3         UGH3        0        0  rf5.0
192.168.6.0/28     172.16.0.3         UG3         0        0  rf5.0
192.168.7.0/28     172.16.0.3         UG3         0        0  rf5.0
192.168.8.0/28     172.16.0.3         UG3         0        0  rf5.0
224.0.0.0/8        127.0.0.1          UGS         0      703  lo0
АС3
CPE3
Code Block
languagetext
themeEmacs
AS_3#1> netstat -r
Routing tables
Destination        Gateway            Flags     Refs     Use  Interface
default            172.16.0.1         UG3         0        0  rf5.0
10.10.10.0/24      172.16.0.1         UG3         0        0  rf5.0
10.10.20.0/24      172.16.0.2         UG3         0        0  rf5.0
10.10.30.0/24      link#2             UC          0        0  eth0
127.0.0.1          127.0.0.1          UH          3       84  lo0
172.16.0.0/29      link#3             UC          0        0  rf5.0
192.168.0.1        172.16.0.1         UGH3        0        0  rf5.0
192.168.0.2        172.16.0.2         UGH3        0        0  rf5.0
192.168.0.3        192.168.0.3        UH          0        0  lo0
192.168.6.0/28     10.10.30.1         UGS         0        0  eth0
192.168.7.0/28     10.10.30.1         UGS         0        0  eth0
192.168.8.0/28     10.10.30.1         UGS         0        0  eth0
224.0.0.0/8        127.0.0.1          UGS         0      349  lo0

Дополнительные материалы

Онлайн-курсы

  1. Предварительная настройка и установка устройств семейств InfiLINK 2x2 и InfiMAN 2x2.

Прочее

...

Additional materials

Online courses

  1. InfiLINK 2x2 / InfiMAN 2x2: Initial Link Configuration and Installation.

Other

  1. Ifconfig command (interfaces configuration)
  2. route command (static routes configuration)
  3. ARDA (Aqua Router Daemon)
  4. arip command
  5. rip command