Активировать протокол RIPv2 на маршрутизаторах R1, R2 и R3
RIPv1 и RIPv2 используют UDP порт 520.
RIPng использует UDP порт 521.
Для передачи сообщений RIPv1 в адресе получателя используется широковещательный адрес 255.255.255.255, а RIPv2 — мультикаст адрес 224.0.0.9.
- Используя команду version актировать RIPv2 на R1
R1(config)#router rip R1(config-router)#version 2
- Актировать RIPv2 на R2 R2(config)#router rip R2(config-router)#version 2
- Актировать RIPv2 на R3 R3(config)#router rip R3(config-router)#version 2
- Таблица маршрутов R1 – RIPv1 172.16.0.0/25 is subnetted, 1 subnets C 172.16.100.0 is directly connected, FastEthernet0/0 R 192.168.0.0/24 [120/1] via 192.168.1.2, 00:00:24, Serial0/0 192.168.1.0/25 is subnetted, 1 subnets C 192.168.1.0 is directly connected, Serial0/0
- Таблица маршрутов R1 – RIPv2 172.16.0.0/25 is subnetted, 2 subnets C 172.16.100.0 is directly connected, FastEthernet0/0 R 172.16.200.0 [120/2] via 192.168.1.2, 00:00:11, Serial0/0 192.168.0.0/25 is subnetted, 1 subnets R 192.168.0.0 [120/1] via 192.168.1.2, 00:00:11, Serial0/0 192.168.1.0/25 is subnetted, 1 subnets C 192.168.1.0 is directly connected, Serial0/0
- Таблица маршрутов R2 – RIPv1 R 172.16.0.0/16 [120/1] via 192.168.1.1, 00:00:25, Serial0/0 [120/1] via 192.168.0.1, 00:00:05, Serial0/1 192.168.0.0/25 is subnetted, 1 subnets C 192.168.0.0 is directly connected, Serial0/1 192.168.1.0/25 is subnetted, 1 subnets C 192.168.1.0 is directly connected, Serial0/0
- Таблица маршрутов R2 – RIPv2 172.16.0.0/25 is subnetted, 2 subnets R 172.16.100.0 [120/1] via 192.168.1.1, 00:00:19, Serial0/0 R 172.16.200.0 [120/1] via 192.168.0.1, 00:00:20, Serial0/1 192.168.0.0/25 is subnetted, 1 subnets C 192.168.0.0 is directly connected, Serial0/1 192.168.1.0/25 is subnetted, 1 subnets C 192.168.1.0 is directly connected, Serial0/0
- Таблица маршрутов R3 – RIPv1 172.16.0.0/25 is subnetted, 1 subnets C 172.16.200.0 is directly connected, FastEthernet0/0 192.168.0.0/25 is subnetted, 1 subnets C 192.168.0.0 is directly connected, Serial0/0 R 192.168.1.0/24 [120/1] via 192.168.0.2, 00:00:23, Serial0/0
- Таблица маршрутов R3 – RIPv2 172.16.0.0/25 is subnetted, 2 subnets R 172.16.100.0 [120/2] via 192.168.0.2, 00:00:24, Serial0/0 C 172.16.200.0 is directly connected, FastEthernet0/0 192.168.0.0/25 is subnetted, 1 subnets C 192.168.0.0 is directly connected, Serial0/0 192.168.1.0/25 is subnetted, 1 subnets R 192.168.1.0 [120/1] via 192.168.0.2, 00:00:24, Serial0/0
- Используя команду passive-interface отключить анонсирование RIP на интерфейсе FastEthernet 0/0 маршрутизатора R1 R1(config)#router rip R1(config-router)#passive-interface FastEthernet 0/0
- Отключить анонсирование RIP на интерфейсе FastEthernet 0/0 маршрутизатора R3 R3(config)#router rip R3(config-router)#passive-interface FastEthernet 0/0
- При помощи команды show ip protocols отобразить конфигурацию RIP для R1 R1>show ip protocols Routing Protocol is "rip" Sending updates every 30 seconds, next due in 7 seconds Invalid after 180 seconds, hold down 180, flushed after 240 Outgoing update filter list for all interfaces is not set Incoming update filter list for all interfaces is not set Redistributing: rip Default version control: send version 2, receive 2 Interface Send Recv Triggered RIP Key-chain Serial0/0/0 2 2 Automatic network summarization is not in effect Maximum path: 4 Routing for Networks: 172.16.0.0 192.168.1.0 Passive Interface(s): FastEthernet0/0 Routing Information Sources: Gateway Distance Last Update 192.168.1.2 120 00:00:18 Distance: (default is 120)
- При помощи команды show ip protocols отобразить конфигурацию RIP для R3 R3>show ip protocols Routing Protocol is "rip" Sending updates every 30 seconds, next due in 27 seconds Invalid after 180 seconds, hold down 180, flushed after 240 Outgoing update filter list for all interfaces is not set Incoming update filter list for all interfaces is not set Redistributing: rip Default version control: send version 2, receive 2 Interface Send Recv Triggered RIP Key-chain Serial0/0/0 2 2 Automatic network summarization is not in effect Maximum path: 4 Routing for Networks: 172.16.0.0 192.168.0.0 Passive Interface(s): FastEthernet0/0 Routing Information Sources: Gateway Distance Last Update 192.168.0.2 120 00:00:07 Distance: (default is 120)
- На маршрутизаторе R2 добавить интерфейс Loopback 0 R2(config)#interface Loopback 0 - Назначить IP адрес R2(config-if)#ip address 203.0.113.2 255.255.255.255
- Добавить маршрут по умолчанию через интерфейс Loopback 0 R2(config)#ip route 0.0.0.0 0.0.0.0 loopback0
- Настроить анонсирование статического маршрута по умолчанию R2(config)#router rip R2(config-router)#default-information originate
- Вывести таблицу маршрутов R1 R1#show ip route Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2 E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area * - candidate default, U - per-user static route, o - ODR P - periodic downloaded static route Gateway of last resort is 192.168.1.2 to network 0.0.0.0 172.16.0.0/25 is subnetted, 2 subnets C 172.16.100.0 is directly connected, FastEthernet0/0 R 172.16.200.0 [120/2] via 192.168.1.2, 00:00:03, Serial0/0 192.168.0.0/25 is subnetted, 1 subnets R 192.168.0.0 [120/1] via 192.168.1.2, 00:00:03, Serial0/0 192.168.1.0/25 is subnetted, 1 subnets C 192.168.1.0 is directly connected, Serial0/0 R* 0.0.0.0/0 [120/1] via 192.168.1.2, 00:00:03, Serial0/0
- Вывести таблицу маршрутов R2 R2#show ip route Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2 E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area * - candidate default, U - per-user static route, o - ODR P - periodic downloaded static route Gateway of last resort is 0.0.0.0 to network 0.0.0.0 172.16.0.0/25 is subnetted, 2 subnets R 172.16.100.0 [120/1] via 192.168.1.1, 00:00:11, Serial0/0 R 172.16.200.0 [120/1] via 192.168.0.1, 00:00:09, Serial0/1 192.168.0.0/25 is subnetted, 1 subnets C 192.168.0.0 is directly connected, Serial0/1 192.168.1.0/25 is subnetted, 1 subnets C 192.168.1.0 is directly connected, Serial0/0 203.0.113.0/32 is subnetted, 1 subnets C 203.0.113.2 is directly connected, Loopback0 S* 0.0.0.0/0 is directly connected, Loopback0
- Вывести таблицу маршрутов R3 R3#show ip route Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2 E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area * - candidate default, U - per-user static route, o - ODR P - periodic downloaded static route
Gateway of last resort is 192.168.0.2 to network 0.0.0.0 172.16.0.0/25 is subnetted, 2 subnets R 172.16.100.0 [120/2] via 192.168.0.2, 00:00:20, Serial0/0 C 172.16.200.0 is directly connected, FastEthernet0/0 192.168.0.0/25 is subnetted, 1 subnets C 192.168.0.0 is directly connected, Serial0/0 192.168.1.0/25 is subnetted, 1 subnets R 192.168.1.0 [120/1] via 192.168.0.2, 00:00:20, Serial0/0 R* 0.0.0.0/0 [120/1] via 192.168.0.2, 00:00:20, Serial0/0
Содержание отчёта
1. Ход работы. 2. Ответы на контрольные вопросы.
Контрольные вопросы
1. Дайте определение динамической маршрутизации. 2. Достоинства и недостатки динамической маршрутизации. 3. В чём разница между статической и динамической маршрутизацией? 4. Расчитайте стоимость полосы пропускания согласно варианта. 5. Дать определение инверсной маски подсети? 6. Протокол RIP, принцип работы. 7. Какой командой просмотреть таблицу маршрутизации? 8. Что отабражает команада show ip protocols?
|