Table of content
Description
The OSPF configuration is performed only via CLI. A separate command shell with several modes is used to configure the OSPF protocol (Figure 1). The transition to each mode is performed using the commands with the same name. A detailed commands description is available in Technical documentation.
Mode name | Description |
---|---|
Basic | Basic OSPF mode is used to analyze the diagnostic commands output and switch to configuration mode. Switching to basic mode is performed from the WANFleX command shell using the "ospf" command. BS_1#1> ospf OSPF> |
OSPF configuration | Configuration mode allows to manage the OSPF service running on the device and proceed to the configuration modes, router, interfaces, or route-maps. Switching to OSPF configuration mode is performed from basic mode using the "config" command. OSPF> config OSPF(config)# |
OSPF router configuration | In router configuration mode, basic OSPF settings are made. The mode allows to configure the announced networks, areas, router ID, etc. Switching to the OSPF router configuration mode is performed from the configuration mode using the "router" command. OSPF(config)# router OSPF(config-router)# |
OSPF interface configuration | OSPF interface configuration mode allows to configure the protocol settings related to a specific interface. Switching to the OSPF interface configuration mode is performed from the configuration mode using the "interface IFNAME" command. OSPF(config)# interface rf5.0 OSPF(config-if)# |
Route-maps configuration | Route-maps configuration mode allows to configure the rules that should be applied to announced or received OSPF routes. Switching to the OSPF route-map configuration mode is performed from the configuration mode using the rule creation command "route-map WORD (deny|permit) <1-65535>". OSPF(config)# route-map MAP permit 10 OSPF(config-route-map)# |
Figure 1 - Scheme of switching between OSPF command shell modes
Each OSPF shell modes provides help by displaying the full list of supported commands. To display the list use the "help" command.
The routing table can be displayed by the following commands:
From WANFleX command shell: BS_1#1> netstat -r From OSPF command shell: OSPF> show route From ARDA command shell: ARDA> show route
Scheme with one area
To demonstrate how to configure the OSPF protocol and analyze the diagnostic commands output, let's look at the example of the scheme with one OSPF area (Figure 2):
- The network consists of three wireless devices BS1, CPE2, CPE3 configured as routers.
- Wireless devices build the OSPF backbone area.
- BS1 has an external link for connecting to LAN-1 network.
- The CPE3 router is connected to the outside router R1.To make the R1 router networks available, static routes to the networks 192.168.5.0/28 and 192.168.6.0/28 have been added to CPE3.
- Routers BS1, CPE2 and CPE3 use as identifiers the addresses assigned to the loopback interface: 192.168.0.1/32, 192.168.0.2/32 and 192.168.0.3/32.
Figure 2 - Network scheme with one OSPF area
Pre-configuration
Description | Perform a devices preliminary configuration consisting of the following steps:
|
---|---|
BS1 | Configure device ID system prompt BS_1 Remove 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 Set wireless links rf rf5.0 band 20 rf rf5.0 freq 5000 mint rf5.0 -name "BS_1" mint rf5.0 -type master |
CPE2 | Configure device ID system prompt CPE_2 Remove 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 Set a wireless link mint rf5.0 -name "CPE_2" mint rf5.0 -type slave mint rf5.0 prof 1 -band 20 -freq 5000 -type slave |
CPE3 | Configure device ID system prompt CPE_3 Remove 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 Set a wireless link mint rf5.0 -name "CPE_3" mint rf5.0 -type slave mint rf5.0 prof 1 -band 20 -freq 5000 -type slave |
OSPF configuration
Description | Configure OSPF protocol in accordance with scheme. Step 1: start OSPF. Step 2: set routers IDs. The identifiers will be equal to the IP addresses assigned to the loopback interface. Step 3: define the interfaces where OSPF should be started. All interfaces are connected to the backbone area according to the scheme. On the BS1 and CPE3 routers, set the networks assigned to one of the device interfaces. On the CPE2 router, set all networks using one entry 0.0.0.0/0. This entry includes all networks and enables OSPF support on all router interfaces; when some device interfaces is connected to a new network, this network will be immediately announced via OSPF. This approach doesn't require additional OSPF configuration, but decreases control over announcements. In addition, this command announces the address 127.0.0.1/32 assigned to the loopback interface and does not announce the address 192.168.0.2/32, therefore, this network must be additionally specified. Step 4: make redistribution of directly connected networks on the BS1 router and static routes on the CPE3 router. Step 5: configure passive interfaces. The CPE3 eth0 interface is connected to the outside router R1, so no neighbor relationship should be established on this interface. Network 10.10.30.0/24 associated with the eth0 interface must be announced via OSPF, so the eth0 interface must be set as passive. |
---|---|
BS1 | Start OSPF ospf start Set router-id ospf config router router-id 192.168.0.1 Start OSPF on interfaces ospf config router network 172.16.0.0/29 area 0.0.0.0 network 192.168.0.1/32 area 0.0.0.0 Connected routes redistribution ospf config router redistribute connected |
CPE2 | Start OSPF ospf start Set router-id ospf config router router-id 192.168.0.2 Start OSPF on interfaces ospf config router network 0.0.0.0/0 area 0.0.0.0 network 192.168.0.2/32 area 0.0.0.0 |
CPE3 | Start OSPF ospf start Set router-id ospf config router router-id 192.168.0.3 Start OSPF on interfaces ospf config router network 10.10.30.0/24 area 0.0.0.0 network 172.16.0.0/29 area 0.0.0.0 network 192.168.0.3/32 area 0.0.0.0 Static routes redistribution ospf config router redistribute kernel Passive interfaces configuration passive-interface eth0 |
Command output analyzing
Neighbors list
Description | Analyze neighors list output. The routers are connected by the 172.16.0.0/29 network, which is broadcast (using the MINT protocol), so:
|
---|---|
BS1 | OSPF> show neighbor Neighbor ID Pri State Dead Time Address Interface RXmtL RqstL DBsmL 192.168.0.2 1 Full/Backup 00:00:38 172.16.0.2 rf5.0:172.16.0.1 0 0 0 192.168.0.3 1 Full/DR 00:00:38 172.16.0.3 rf5.0:172.16.0.1 0 0 0 |
CPE2 | OSPF> show neighbor Neighbor ID Pri State Dead Time Address Interface RXmtL RqstL DBsmL 192.168.0.1 1 Full/DROther 00:00:33 172.16.0.1 rf5.0:172.16.0.2 0 0 0 192.168.0.3 1 Full/DR 00:00:35 172.16.0.3 rf5.0:172.16.0.2 0 0 0 |
CPE3 | OSPF> show neighbor Neighbor ID Pri State Dead Time Address Interface RXmtL RqstL DBsmL 192.168.0.1 1 Full/DROther 00:00:31 172.16.0.1 rf5.0:172.16.0.3 0 0 0 192.168.0.2 1 Full/Backup 00:00:37 172.16.0.2 rf5.0:172.16.0.3 0 0 0 |
LSDB content
Description | Analyze LSDB. Since the scheme contains one area, the LSDB output on all routers will be identical:
|
---|---|
BS1, CPE2, CPE3 | OSPF> show database OSPF Router with ID (192.168.0.1)(192.168.0.1) Router Link States (Area 0.0.0.0) Link ID ADV Router Age Seq# LS-Age Link count 192.168.0.1 192.168.0.1 202 0x80000008 7442 2 192.168.0.2 192.168.0.2 201 0x80000008 7405 3 192.168.0.3 192.168.0.3 204 0x8000000a 7407 3 Net Link States (Area 0.0.0.0) Link ID ADV Router Age Seq# LS-Age Routers 172.16.0.3/29 192.168.0.3 204 0x80000006 7407 3 AS External Link States Link ID ADV Router Age Seq# LS-Age Route 10.10.10.0 192.168.0.1 122 0x80000007 7442 E2 10.10.10.0/24 [0x0] 192.168.5.0 192.168.0.3 169 0x80000007 7407 E2 192.168.5.0/28 [0x0] 192.168.6.0 192.168.0.3 299 0x80000007 7407 E2 192.168.6.0/28 [0x0] |
Routing table
Description | The routing tables of wireless devices, contains entries that each device has information about each subnet shown in the scheme. This means that the devices have successfully exchanged routing information and added it to the FIB. Note, the loopback interfaces addresses do not depend on the links state, therefore they can be used to manage devices in redundant networks. |
---|---|
BS1 | 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 141 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.5.0/28 172.16.0.3 UG3 0 0 rf5.0 192.168.6.0/28 172.16.0.3 UG3 0 0 rf5.0 224.0.0.0/8 127.0.0.1 UGS 1 1561 lo0 |
CPE2 | AS_2#2> netstat -r Routing tables Destination Gateway Flags Refs Use Interface 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 50 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.5.0/28 172.16.0.3 UG3 0 0 rf5.0 192.168.6.0/28 172.16.0.3 UG3 0 0 rf5.0 224.0.0.0/8 127.0.0.1 UGS 1 2037 lo0 |
CPE3 | AS_3#1> netstat -r Routing tables Destination Gateway Flags Refs Use Interface 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 155 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.5.0/28 10.10.30.1 UGS 0 0 eth0 192.168.6.0/28 10.10.30.1 UGS 0 0 eth0 224.0.0.0/8 127.0.0.1 UGS 1 1745 lo0 |
Схема с несколькими областями
Рассмотрим пример схемы сети с несколькими областями OSPF (рис. 3):
- Сеть состоит из четырёх беспроводных устройств БС1, АС2, АС3, АС4, настроенных в режиме маршрутизатора.
- Беспроводные устройства образуют три области OSPF:
- область 0: к области подключены маршрутизаторы БС1 и АС2. Маршрутизатор БС1 имеет внешний канал связи;
- область 3: к области подключены маршрутизаторы БС1 и АС3, тип области NSSA. Маршрутизатор АС3 имеет внешний канал связи со сторонним маршрутизатором R1 и два статических маршрута для сетей 192.168.5.0/28 и 192.168.6.0/28;
- область 4: к области подключены маршрутизаторы БС1 и АС4, тип области Stub.
- В качестве идентификаторов маршрутизаторы БС1, АС2, АС3 и АС4 используют адреса, ассоциированные с интерфейсом loopback, 192.168.0.1/32, 192.168.0.2/32, 192.168.0.3/32 и 192.168.0.4/32 соответственно.
Рисунок 3 - Схема сети с несколькими областями OSPF
Предварительная настройка
Description | Выполним предварительную настройку устройств, состоящую из следующих этапов:
|
---|---|
BS1 | Установка идентификатора system prompt BS_1 Удаление интерфейса svi1 ifc svi1 destroy Назначение IP-адресов ifc eth0 10.10.10.1/24 ifc rf5.0 172.16.0.1/30 ifc rf5.0 172.16.3.1/30 ifc rf5.0 172.16.4.1/30 ifc lo0 192.168.0.1/32 Отключение коммутации switch stop Установка радиоканала rf rf5.0 band 20 rf rf5.0 freq 5000 mint rf5.0 -name "BS_1" mint rf5.0 -type master |
CPE2 | Установка идентификатора system prompt AS_2 Удаление интерфейса svi1 ifc svi1 destroy Назначение IP-адресов ifc eth0 10.10.20.2/24 ifc rf5.0 172.16.0.2/30 ifc lo0 192.168.0.2/32 Отключение коммутации switch stop Установка радиоканала mint rf5.0 -name "AS_2" mint rf5.0 -type slave mint rf5.0 prof 1 -band 20 -freq 5000 -type slave |
CPE3 | Установка идентификатора system prompt AS_3 Удаление интерфейса svi1 ifc svi1 destroy Назначение IP-адресов ifc eth0 10.10.30.3/24 ifc rf5.0 172.16.3.2/30 ifc lo0 192.168.0.3/32 Добавление статических маршрутов route add 192.168.5.0/28 10.10.30.1 route add 192.168.6.0/28 10.10.30.1 Отключение коммутации switch stop Установка радиоканала mint rf5.0 -name "AS_3" mint rf5.0 -type slave mint rf5.0 prof 1 -band 20 -freq 5000 -type slave |
CPE4 | Установка идентификатора system prompt AS_4 Удаление интерфейса svi1 ifc svi1 destroy Назначение IP-адресов ifc eth0 10.10.40.4/24 ifc rf5.0 172.16.4.2/30 ifc lo0 192.168.0.4/32 Отключение коммутации switch stop Установка радиоканала mint rf5.0 -name "AS_4" mint rf5.0 -type slave mint rf5.0 prof 1 -band 20 -freq 5000 -type slave |
Настройка OSPF
Description | Выполним настройку протокола OSPF в соответствии со схемой. Этап 1: запустим службу OSPF. Этап 2: установим идентификаторы маршрутизаторов. Идентификаторы будут идентичны IP-адресам, ассоциированным с интерфейсом loopback. Этап 3: определим интерфейсы, на которых должен быть запущен OSPF. Все интерфейсы подключены к магистральной области, в соответствии со схемой. Этап 4: определим типы областей: область 3 - NSSA, область 4 - Stub. Следует иметь в виду, что тип области должен быть настроен на всех маршрутизаторах, подключенных к этой области, иначе они не установят соседские отношения. Этап 5: выполним редистрибуцию непосредственно присоединённых сетей на маршрутизаторе БС1 и статических маршрутов на маршрутизаторе АС3. Этап 6: определим пассивные интерфейсы. |
---|---|
BS1 | Запуск службы OSPF ospf start Установка router-id ospf config router router-id 192.168.0.1 Запуск OSPF на интерфейсах ospf config router network 172.16.0.0/30 area 0.0.0.0 network 172.16.3.0/30 area 0.0.0.3 network 172.16.4.0/30 area 0.0.0.4 network 192.168.0.1/32 area 0.0.0.0 Определение типа областей ospf config router area 0.0.0.3 nssa area 0.0.0.4 stub Редистрибуция connected-маршрутов ospf config router redistribute connected |
CPE2 | Запуск службы OSPF ospf start Установка router-id ospf config router router-id 192.168.0.2 Запуск OSPF на интерфейсах ospf config router network 10.10.20.0/24 area 0.0.0.0 network 172.16.0.0/30 area 0.0.0.0 network 192.168.0.2/32 area 0.0.0.0 |
CPE3 | Запуск службы OSPF ospf start Установка router-id ospf config router router-id 192.168.0.3 Запуск OSPF на интерфейсах ospf config router network 10.10.30.0/24 area 0.0.0.3 network 172.16.3.0/30 area 0.0.0.3 network 192.168.0.3/32 area 0.0.0.3 Определение типа областей ospf config router area 0.0.0.3 nssa Редистрибуция статических маршрутов ospf config router redistribute kernel Определим пассивные интерфейсы passive-interface eth0 |
CPE4 | Запуск службы OSPF ospf start Установка router-id ospf config router router-id 192.168.0.4 Запуск OSPF на интерфейсах ospf config router network 10.10.40.0/24 area 0.0.0.4 network 172.16.4.0/30 area 0.0.0.4 network 192.168.0.4/32 area 0.0.0.4 Определение типа областей ospf config router area 0.0.0.4 stub Редистрибуция статических маршрутов ospf config router redistribute kernel |
Анализ вывода команд
Список соседей
Description | Проанализируем вывод списка соседей. Маршрутизаторы объединены сетью MINT, однако для каждого беспроводного соединения выделена своя подсеть. Маршрутизаторы АС2, АС3 и АС4 установили отношения соседства только с БС1, что говорит о том, что отношения соседства могут быть установлены только в рамках одной области. Маршрутизаторы АС2, АС3 и АС4 выбраны в качестве DR, БС1 - BDR, т.к. идентификатор маршрутизатора БС1 самый низкий. |
---|---|
BS1 | OSPF> show neighbor Neighbor ID Pri State Dead Time Address Interface RXmtL RqstL DBsmL 192.168.0.2 1 Full/DR 00:00:32 172.16.0.2 rf5.0:172.16.0.1 0 0 0 192.168.0.3 1 Full/DR 00:00:34 172.16.3.2 rf5.0:172.16.3.1 0 0 0 192.168.0.4 1 Full/DR 00:00:32 172.16.4.2 rf5.0:172.16.4.1 0 0 0 |
CPE2 | OSPF> show neighbor Neighbor ID Pri State Dead Time Address Interface RXmtL RqstL DBsmL 192.168.0.1 1 Full/Backup 00:00:32 172.16.0.1 rf5.0:172.16.0.2 0 0 0 |
CPE3 | OSPF> show neighbor Neighbor ID Pri State Dead Time Address Interface RXmtL RqstL DBsmL 192.168.0.1 1 Full/Backup 00:00:31 172.16.3.1 rf5.0:172.16.3.2 0 0 0 |
CPE4 | OSPF> show neighbor Neighbor ID Pri State Dead Time Address Interface RXmtL RqstL DBsmL 192.168.0.1 1 Full/Backup 00:00:37 172.16.4.1 rf5.0:172.16.4.2 0 0 0 |
Содержание LSDB
Description | Проанализируем LSDB. В отличие от схемы с одной областью, в рассматриваемом примере набор LSA для каждой из областей будет отличаться. Область 0:
Область 3:
Область 4:
|
---|---|
BS1 | OSPF> show database OSPF Router with ID (192.168.0.1)(192.168.0.1) Router Link States (Area 0.0.0.0) Link ID ADV Router Age Seq# LS-Age Link count 192.168.0.1 192.168.0.1 235 0x80000003 246 2 192.168.0.2 192.168.0.2 232 0x80000005 243 3 Net Link States (Area 0.0.0.0) Link ID ADV Router Age Seq# LS-Age Routers 172.16.0.2/30 192.168.0.2 244 0x80000001 243 2 Summary Link States (Area 0.0.0.0) Link ID ADV Router Age Seq# LS-Age Route 10.10.30.0 192.168.0.1 237 0x80000001 237 10.10.30.0/24 10.10.40.0 192.168.0.1 237 0x80000001 237 10.10.40.0/24 172.16.3.0 192.168.0.1 245 0x80000001 245 172.16.3.0/30 172.16.4.0 192.168.0.1 245 0x80000001 245 172.16.4.0/30 192.168.0.3 192.168.0.1 237 0x80000001 237 192.168.0.3/32 192.168.0.4 192.168.0.1 237 0x80000001 237 192.168.0.4/32 ASBR-Summary Link States (Area 0.0.0.0) Link ID ADV Router Age Seq# LS-Age 192.168.0.3 192.168.0.1 237 0x80000001 237 Router Link States (Area 0.0.0.3 [NSSA]) Link ID ADV Router Age Seq# LS-Age Link count 192.168.0.1 192.168.0.1 236 0x80000003 246 1 192.168.0.3 192.168.0.3 224 0x80000005 243 3 Net Link States (Area 0.0.0.3 [NSSA]) Link ID ADV Router Age Seq# LS-Age Routers 172.16.3.2/30 192.168.0.3 244 0x80000001 243 2 Summary Link States (Area 0.0.0.3 [NSSA]) Link ID ADV Router Age Seq# LS-Age Route 0.0.0.0 192.168.0.1 245 0x80000001 245 0.0.0.0/0 10.10.20.0 192.168.0.1 237 0x80000001 237 10.10.20.0/24 10.10.40.0 192.168.0.1 237 0x80000001 237 10.10.40.0/24 172.16.0.0 192.168.0.1 245 0x80000001 245 172.16.0.0/30 172.16.4.0 192.168.0.1 245 0x80000001 245 172.16.4.0/30 192.168.0.1 192.168.0.1 240 0x80000001 240 192.168.0.1/32 192.168.0.2 192.168.0.1 237 0x80000001 237 192.168.0.2/32 192.168.0.4 192.168.0.1 237 0x80000001 237 192.168.0.4/32 NSSA-external Link States (Area 0.0.0.3 [NSSA]) Link ID ADV Router Age Seq# LS-Age Route 10.10.10.0 192.168.0.1 243 0x80000004 246 E2 10.10.10.0/24 [0x0] 192.168.5.0 192.168.0.3 244 0x80000002 243 E2 192.168.5.0/28 [0x0] 192.168.6.0 192.168.0.3 244 0x80000002 243 E2 192.168.6.0/28 [0x0] Router Link States (Area 0.0.0.4 [Stub]) Link ID ADV Router Age Seq# LS-Age Link count 192.168.0.1 192.168.0.1 231 0x80000003 246 1 192.168.0.4 192.168.0.4 215 0x80000005 243 3 Net Link States (Area 0.0.0.4 [Stub]) Link ID ADV Router Age Seq# LS-Age Routers 172.16.4.2/30 192.168.0.4 244 0x80000001 243 2 Summary Link States (Area 0.0.0.4 [Stub]) Link ID ADV Router Age Seq# LS-Age Route 0.0.0.0 192.168.0.1 245 0x80000001 245 0.0.0.0/0 10.10.20.0 192.168.0.1 237 0x80000001 237 10.10.20.0/24 10.10.30.0 192.168.0.1 237 0x80000001 237 10.10.30.0/24 172.16.0.0 192.168.0.1 245 0x80000001 245 172.16.0.0/30 172.16.3.0 192.168.0.1 245 0x80000001 245 172.16.3.0/30 192.168.0.1 192.168.0.1 240 0x80000001 240 192.168.0.1/32 192.168.0.2 192.168.0.1 237 0x80000001 237 192.168.0.2/32 192.168.0.3 192.168.0.1 237 0x80000001 237 192.168.0.3/32 AS External Link States Link ID ADV Router Age Seq# LS-Age Route 10.10.10.0 192.168.0.1 243 0x80000004 246 E2 10.10.10.0/24 [0x0] 192.168.5.0 192.168.0.1 207 0x80000002 239 E2 192.168.5.0/28 [0x0] 192.168.6.0 192.168.0.1 207 0x80000002 239 E2 192.168.6.0/28 [0x0] |
CPE2 | OSPF> show database OSPF Router with ID (192.168.0.2)(192.168.0.2) Router Link States (Area 0.0.0.0) Link ID ADV Router Age Seq# LS-Age Link count 192.168.0.1 192.168.0.1 61 0x80000003 68 2 192.168.0.2 192.168.0.2 56 0x80000005 96 3 Net Link States (Area 0.0.0.0) Link ID ADV Router Age Seq# LS-Age Routers 172.16.0.2/30 192.168.0.2 68 0x80000001 68 2 Summary Link States (Area 0.0.0.0) Link ID ADV Router Age Seq# LS-Age Route 10.10.30.0 192.168.0.1 63 0x80000001 62 10.10.30.0/24 10.10.40.0 192.168.0.1 63 0x80000001 62 10.10.40.0/24 172.16.3.0 192.168.0.1 71 0x80000001 68 172.16.3.0/30 172.16.4.0 192.168.0.1 71 0x80000001 68 172.16.4.0/30 192.168.0.3 192.168.0.1 63 0x80000001 62 192.168.0.3/32 192.168.0.4 192.168.0.1 63 0x80000001 62 192.168.0.4/32 ASBR-Summary Link States (Area 0.0.0.0) Link ID ADV Router Age Seq# LS-Age 192.168.0.3 192.168.0.1 63 0x80000001 62 AS External Link States Link ID ADV Router Age Seq# LS-Age Route 10.10.10.0 192.168.0.1 69 0x80000004 68 E2 10.10.10.0/24 [0x0] 192.168.5.0 192.168.0.1 65 0x80000002 64 E2 192.168.5.0/28 [0x0] 192.168.6.0 192.168.0.1 65 0x80000002 64 E2 192.168.6.0/28 [0x0] |
CPE3 | OSPF> show database OSPF Router with ID (192.168.0.3)(192.168.0.3) Router Link States (Area 0.0.0.3 [NSSA]) Link ID ADV Router Age Seq# LS-Age Link count 192.168.0.1 192.168.0.1 157 0x80000003 163 1 192.168.0.3 192.168.0.3 142 0x80000005 182 3 Net Link States (Area 0.0.0.3 [NSSA]) Link ID ADV Router Age Seq# LS-Age Routers 172.16.3.2/30 192.168.0.3 163 0x80000001 163 2 Summary Link States (Area 0.0.0.3 [NSSA]) Link ID ADV Router Age Seq# LS-Age Route 0.0.0.0 192.168.0.1 166 0x80000001 163 0.0.0.0/0 10.10.20.0 192.168.0.1 158 0x80000001 157 10.10.20.0/24 10.10.40.0 192.168.0.1 158 0x80000001 157 10.10.40.0/24 172.16.0.0 192.168.0.1 166 0x80000001 163 172.16.0.0/30 172.16.4.0 192.168.0.1 166 0x80000001 163 172.16.4.0/30 192.168.0.1 192.168.0.1 161 0x80000001 160 192.168.0.1/32 192.168.0.2 192.168.0.1 158 0x80000001 157 192.168.0.2/32 192.168.0.4 192.168.0.1 158 0x80000001 157 192.168.0.4/32 NSSA-external Link States (Area 0.0.0.3 [NSSA]) Link ID ADV Router Age Seq# LS-Age Route 10.10.10.0 192.168.0.1 164 0x80000004 163 E2 10.10.10.0/24 [0x0] 192.168.5.0 192.168.0.3 163 0x80000002 182 E2 192.168.5.0/28 [0x0] 192.168.6.0 192.168.0.3 163 0x80000002 182 E2 192.168.6.0/28 [0x0] AS External Link States Link ID ADV Router Age Seq# LS-Age Route 192.168.5.0 192.168.0.3 163 0x80000002 182 E2 192.168.5.0/28 [0x0] 192.168.6.0 192.168.0.3 163 0x80000002 182 E2 192.168.6.0/28 [0x0] |
CPE4 | OSPF> show database OSPF Router with ID (192.168.0.4)(192.168.0.4) Router Link States (Area 0.0.0.4 [Stub]) Link ID ADV Router Age Seq# LS-Age Link count 192.168.0.1 192.168.0.1 194 0x80000003 205 1 192.168.0.4 192.168.0.4 176 0x80000005 216 3 Net Link States (Area 0.0.0.4 [Stub]) Link ID ADV Router Age Seq# LS-Age Routers 172.16.4.2/30 192.168.0.4 205 0x80000001 205 2 Summary Link States (Area 0.0.0.4 [Stub]) Link ID ADV Router Age Seq# LS-Age Route 0.0.0.0 192.168.0.1 208 0x80000001 205 0.0.0.0/0 10.10.20.0 192.168.0.1 200 0x80000001 199 10.10.20.0/24 10.10.30.0 192.168.0.1 200 0x80000001 199 10.10.30.0/24 172.16.0.0 192.168.0.1 208 0x80000001 205 172.16.0.0/30 172.16.3.0 192.168.0.1 208 0x80000001 205 172.16.3.0/30 192.168.0.1 192.168.0.1 203 0x80000001 202 192.168.0.1/32 192.168.0.2 192.168.0.1 200 0x80000001 199 192.168.0.2/32 192.168.0.3 192.168.0.1 200 0x80000001 199 192.168.0.3/32 |
Таблица маршрутизации
Description | В таблицах маршрутизации беспроводных устройств видно, что каждое устройство владеет маршрутом к каждой подсети, представленной на схеме. Это свидетельствует о том, что устройства успешно обменялись маршрутной информацией и добавили её в FIB. Основным отличием между таблицами маршрутизации устройств являются маршруты к внешним сетям: на части маршрутизаторах использует явный маршрут к сети, а на остальных - маршрут по умолчанию. Отдельно стоит отметить о маршрутах к адресам интерфейсов loopback маршрутизаторов. Эти адреса не зависят от состояния каналов связи, поэтому могут быть использованы для управления устройствами в сетях с избыточнотью. |
---|---|
BS1 | 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.3.2 UG3 0 0 rf5.0 10.10.40.0/24 172.16.4.2 UG3 0 0 rf5.0 127.0.0.1 127.0.0.1 UH 3 465 lo0 172.16.0.0/30 link#3 UC 0 0 rf5.0 172.16.3.0/30 link#3 UC 0 0 rf5.0 172.16.4.0/30 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.3.2 UGH3 0 0 rf5.0 192.168.0.4 172.16.4.2 UGH3 0 0 rf5.0 192.168.5.0/28 172.16.3.2 UG3 0 0 rf5.0 192.168.6.0/28 172.16.3.2 UG3 0 0 rf5.0 224.0.0.0/8 127.0.0.1 UGS 1 11852 lo0 |
CPE2 | AS_2#2> netstat -r Routing tables Destination Gateway Flags Refs Use Interface 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.1 UG3 0 0 rf5.0 10.10.40.0/24 172.16.0.1 UG3 0 0 rf5.0 127.0.0.1 127.0.0.1 UH 3 396 lo0 172.16.0.0/30 link#3 UC 0 0 rf5.0 172.16.3.0/30 172.16.0.1 UG3 0 0 rf5.0 172.16.4.0/30 172.16.0.1 UG3 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.1 UGH3 0 0 rf5.0 192.168.0.4 172.16.0.1 UGH3 0 0 rf5.0 192.168.5.0/28 172.16.0.1 UG3 0 0 rf5.0 192.168.6.0/28 172.16.0.1 UG3 0 0 rf5.0 224.0.0.0/8 127.0.0.1 UGS 1 15881 lo0 |
CPE3 | AS_3#1> netstat -r Routing tables Destination Gateway Flags Refs Use Interface default 172.16.3.1 UG3 0 0 rf5.0 10.10.10.0/24 172.16.3.1 UG3 0 0 rf5.0 10.10.20.0/24 172.16.3.1 UG3 0 0 rf5.0 10.10.30.0/24 link#2 UC 0 0 eth0 10.10.40.0/24 172.16.3.1 UG3 0 0 rf5.0 127.0.0.1 127.0.0.1 UH 3 534 lo0 172.16.0.0/30 172.16.3.1 UG3 0 0 rf5.0 172.16.3.0/30 link#3 UC 0 0 rf5.0 172.16.4.0/30 172.16.3.1 UG3 0 0 rf5.0 192.168.0.1 172.16.3.1 UGH3 0 0 rf5.0 192.168.0.2 172.16.3.1 UGH3 0 0 rf5.0 192.168.0.3 192.168.0.3 UH 0 0 lo0 192.168.0.4 172.16.3.1 UGH3 0 0 rf5.0 192.168.5.0/28 10.10.30.1 UGS 0 0 eth0 192.168.6.0/28 10.10.30.1 UGS 0 0 eth0 224.0.0.0/8 127.0.0.1 UGS 1 9339 lo0 |
CPE4 | AS_4#1> netstat -r Routing tables Destination Gateway Flags Refs Use Interface default 172.16.4.1 UG3 0 0 rf5.0 10.10.20.0/24 172.16.4.1 UG3 0 0 rf5.0 10.10.30.0/24 172.16.4.1 UG3 0 0 rf5.0 10.10.40.0/24 link#2 UC 0 0 eth0 127.0.0.1 127.0.0.1 UH 3 271 lo0 172.16.0.0/30 172.16.4.1 UG3 0 0 rf5.0 172.16.3.0/30 172.16.4.1 UG3 0 0 rf5.0 172.16.4.0/30 link#3 UC 0 0 rf5.0 192.168.0.1 172.16.4.1 UGH3 0 0 rf5.0 192.168.0.2 172.16.4.1 UGH3 0 0 rf5.0 192.168.0.3 172.16.4.1 UGH3 0 0 rf5.0 192.168.0.4 192.168.0.4 UH 0 0 lo0 224.0.0.0/8 127.0.0.1 UGS 1 3138 lo0 |