Начиная с версии 3.7.0 на маршрутизаторах серии МЕ реализована поддержка множественных IGP процессов (Multi-Instance).
router ospfv2 First area 0.0.0.0 interface loopback 1 passive exit interface tengigabitethernet 0/0/4 bfd fast-detect network point-to-point te-support exit exit router-id 3.3.3.3 te-router-id 3.3.3.3 exit router ospfv2 Second area 0.0.0.0 interface loopback 2 passive exit interface tengigabitethernet 0/0/5 bfd fast-detect network point-to-point te-support exit exit router-id 3.3.3.33 te-router-id 3.3.3.33 exit
Для разных OSPFv2 процессов можно указать одинаковые Router ID и Area, а для IS-IS процессов можно указать одинаковый NET
"show" и "clear" команды срабатывают для всех процессов, например:
0/ME5100:R3# show ospfv2 interfaces Thu Jun 27 09:22:22 2024 Routing Process: First, ID 3.3.3.3 Router is not an area border router Interface Area State Address Metric Mode GR BFD --------------------- ---------------- ------ ------------------- ------------- --------- ---- ---- lo1 0.0.0.0 Loop 3.3.3.3/32 0 Active Y N te0/0/4 0.0.0.0 P2P 10.0.0.0/31 1 Active Y Y Routing Process: Second, ID 3.3.3.33 Router is not an area border router Interface Area State Address Metric Mode GR BFD --------------------- ---------------- ------ ------------------- ------------- --------- ---- ---- lo2 0.0.0.0 Loop 3.3.3.33/32 0 Active Y N te0/0/5 0.0.0.0 P2P 10.0.0.5/31 1 Active Y Y
Так же , к "show" и "clear" командам можно добавить аргумент "instance", позволяющий взаимодействовать с отдельными процессами:
0/ME5100:R3# show ospfv2 interfaces instance First Thu Jun 27 09:22:51 2024 Routing Process: First, ID 3.3.3.3 Router is not an area border router Interface Area State Address Metric Mode GR BFD --------------------- ---------------- ------ ------------------- ------------- --------- ---- ---- lo1 0.0.0.0 Loop 3.3.3.3/32 0 Active Y N te0/0/4 0.0.0.0 P2P 10.0.0.0/31 1 Active Y Y 0/ME5100:R3# clear ospfv2 instance First Thu Jun 27 09:26:33 2024 2024-06-27T09:26:33+00:00 %BFD-N-ADJTRACK: Protocol OSPFv2 detached from old session to Nbr 10.0.0.1 2024-06-27T09:26:35+00:00 %BFD-N-ADJTRACK: Protocol OSPFv2 attached to session to Nbr 10.0.0.1 2024-06-27T09:26:35+00:00 %OSPF_V2-W-ADJCHANGE: Router 3.3.3.3: Nbr 4.4.4.4 at 10.0.0.1, interface te0/0/4 changed state to INIT 2024-06-27T09:26:43+00:00 %OSPF_V2-W-ADJCHANGE: Router 3.3.3.3: Nbr 4.4.4.4 at 10.0.0.1, interface te0/0/4 changed state to TWO WAY 2024-06-27T09:26:43+00:00 %OSPF_V2-W-ADJCHANGE: Router 3.3.3.3: Nbr 4.4.4.4 at 10.0.0.1, interface te0/0/4 changed state to LOADING 2024-06-27T09:26:43+00:00 %OSPF_V2-W-ADJCHANGE: Router 3.3.3.3: Nbr 4.4.4.4 at 10.0.0.1, interface te0/0/4 changed state to FULL 2024-06-27T09:26:44+00:00 %BFD-W-ADJCHANGE: Local 10.0.0.0, Nbr 10.0.0.1 changed state to UP
Маршруты изученные в одном IGP процессе по умолчанию не передаются в другой IGP процесс, для этого необходимо настроить редистрибуцию:
Пример правила редистрибуции:
router ospfv2 First redistribution ospf example match instance Second <---Выбираем маршруты из процесса "Second" metric-value 50 <---Устанавливаем метрику 50 exit
С помощью данного правила все маршруты из процесса "Second" будут импортированы в процесс "First"
На соседнем маршрутизаторе отобразились маршруты с указанной метрикой:
0/ME5200:R4# show route Thu Jun 27 09:44:19 2024 Codes: C - connected, S - static, O - OSPF, B - BGP, L - local IA - OSPF inter area, EA - OSPF intra area N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2 E1 - OSPF external type 1, E2 - OSPF external type 2 i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, LE1 - IS-IS level1 external, LE2 - IS-IS level2 external BI - BGP internal, BE - BGP external, BV - BGP vpn, BL - BGP labeled, R - RIP O EA 3.3.3.3/32 via 10.0.0.0 [30/1], 00h17m31s, te0/0/3 L 4.4.4.4/32 is directly connected, 01h12m50s, lo1 O E2 5.5.5.5/32 via 10.0.0.0 [110/50], 00h03m05s, te0/0/3 <--- C 10.0.0.0/31 is directly connected, 00h57m04s, te0/0/3 L 10.0.0.1/32 is directly connected, 00h57m04s, te0/0/3 O E2 10.0.0.4/31 via 10.0.0.0 [110/50], 00h03m05s, te0/0/3 <--- Total entries: 6