...
Блок кода |
---|
language | text |
---|
title | Конфигурация R1: |
---|
|
interface loopback 1
ipv4 address 1.1.1.1/32
interface loopback 10 <<<<<<<<<<<<<<<<<<<<<<<<<<< Loopback предназначен для использования в качестве source-адреса в подписках.
ipv4 address 1.1.1.110/32
vrf testvrf
interface tengigabitethernet 0/0/61
description "Receiver To R2"
ipv4 address 10.0.0.1/30
load-interval 20
interface tengigabitethernet 0/0/6
description "Server Multicast"
ipv4 address 10.168.20.1/24
vrf testvrf
interface tengigabitethernet 0/0/11
description "To R3"
ipv4 address 10.0.0.13/30
load-interval 20
vrf testvrf
export route-target 100:100
import route-target 100:100
mvpn <<<<<<<<<<<<<<<<<<<<<<<<<<< Создание обработчика MVPN
exit
rd 1:100
mpls
forwarding
interface loopback 1
interface tengigabitethernet 0/0/1
interface tengigabitethernet 0/0/11
exit
ldp
discovery interface tengigabitethernet 0/0/1
bfd fast-detect
exit
discovery interface tengigabitethernet 0/0/11
bfd fast-detect
exit
router-id 1.1.1.1
transport-address 1.1.1.1
exit
router bgp 100
address-family ipv4 mvpn <<<<<<<<<<<<<<<<<<<<<<<<<<< Добавляем SAFI5 mvpn
exit
address-family vpnv4 unicast
exit
bgp router-id 1.1.1.1
neighbor 2.2.2.2
address-family ipv4 mvpn
advertisement-interval 0
exit
address-family vpnv4 unicast
exit
bfd fast-detect
remote-as 100
send-community
send-community-ext
update-source 1.1.1.1
withdraw-interval 0
exit
neighbor 3.3.3.3
address-family ipv4 mvpn
advertisement-interval 0
exit
address-family vpnv4 unicast
exit
bfd fast-detect
remote-as 100
send-community
send-community-ext
update-source 1.1.1.1
withdraw-interval 0
router isis 1
interface loopback 1
address-family ipv4 unicast
exit
passive
exit
interface tengigabitethernet 0/0/1
address-family ipv4 unicast
bfd fast-detect
exit
point-to-point
exit
interface tengigabitethernet 0/0/11
address-family ipv4 unicast
bfd fast-detect
exit
level level-2
exit
point-to-point
exit
microloop-avoidance rib-update-delay 140
net 49.0000.0000.20001000.0000.00
spf interval maximum-wait 80
|
Блок кода |
---|
|
Начиная с версии 2.10.3.7R в блоке "LDP" нет команды "p2mp-mldp" для создание MLDP-туннелей на транспортном интерфейсе
- P2MP на интерфейсах включен по умолчанию. |
Блок кода |
---|
language | text |
---|
title | Конфигурация R2: |
---|
|
interface loopback 1
ipv4 address 12.12.12.12/32
interface loopback 10
ipv4 address 12.12.12.110/32
vrf testvrf
interface tengigabitethernet 0/0/61
description "ServerTo MulticastR1"
ipv4 address 17210.200.200.12/2430
vrfload-interval testvrf20
interface tengigabitethernet 0/0/112
description "To R3"
ipv4 address 10.0.0.1318/30
load-interval 20
interface tengigabitethernet 0/0/6
description "Receiver Multicast"
ipv4 address 172.20.20.1/24
vrf testvrf
vrf testvrf
export route-target 100:100
import route-target 100:100
mvpn
exit
rd 2:100
mpls
forwarding
interface loopback 1
interface tengigabitethernet 0/0/1
interface tengigabitethernet 0/0/112
exit
ldp
discovery interface tengigabitethernet 0/0/1
bfd fast-detect
exit
discovery interface tengigabitethernet 0/0/112
bfd fast-detect
exit
router-id 12.12.12.12
transport-address 12.12.12.12
exit
router bgp 100
address-family ipv4 mvpn
exit
address-family vpnv4 unicast
exit
bgp router-id 12.12.12.12
neighbor 21.21.21.21
address-family ipv4 mvpn
advertisement-interval 0
exit
address-family vpnv4 unicast
exit
bfd fast-detect
remote-as 100
send-community
send-community-ext
update-source 12.12.12.12
withdraw-interval 0
exit
neighbor 3.3.3.3
address-family ipv4 mvpn
advertisement-interval 0
exit
address-family vpnv4 unicast
exit
bfd fast-detect
remote-as 100
send-community
send-community-ext
update-source 12.12.12.12
withdraw-interval 0
router isis 1
interface loopback 1
address-family ipv4 unicast
exit
passive
exit
interface tengigabitethernet 0/0/1
address-family ipv4 unicast
bfd fast-detect
exit
point-to-point
exit
interface tengigabitethernet 0/0/11
address-family ipv4 unicast
bfd fast-detect
exit
level level-2
exit
point-to-point
exit
microloop-avoidance rib-update-delay 140
net 49.0000.0000.2000.0000.00
spf interval maximum-wait 80
|
Блок кода |
---|
language | text |
---|
title | Конфигурация R2R3: |
---|
|
interface loopback 1
ipv4 address 3.3.3.3/32
interface loopback 10
ipv4 address 3.3.3.10/32
vrf testvrf
interface tengigabitethernet 0/0/1
ipv4 address 10.0.0.14/30
load-interval 20
interface tengigabitethernet 0/0/2
ipv4 address 10.0.0.17/30
load-interval 20
vrf testvrf
export route-target 100:100
import route-target 100:100
mvpn
exit
rd 3:100
exit
mpls
forwarding
interface loopback 1
interface tengigabitethernet 0/0/1
interface tengigabitethernet 0/0/2
exit
ldp
discovery interface tengigabitethernet 0/0/1
bfd fast-detect
exit
discovery interface tengigabitethernet 0/0/2
bfd fast-detect
exit
router-id 3.3.3.3
transport-address 3.3.3.3
exit
router bgp 100
address-family ipv4 mvpn
exit
address-family vpnv4 unicast
exit
bgp router-id 3.3.3.3
neighbor 1.1.1.1
address-family ipv4 mvpn
advertisement-interval 0
exit
address-family vpnv4 unicast
exit
bfd fast-detect
remote-as 100
send-community
send-community-ext
update-source 3.3.3.3
withdraw-interval 0
exit
neighbor 2.2.2.2
address-family ipv4 mvpn
advertisement-interval 0
exit
address-family vpnv4 unicast
exit
bfd fast-detect
remote-as 100
send-community
send-community-ext
update-source 3.3.3.3
withdraw-interval 0
exit
exit
router isis 1
interface loopback 1
address-family ipv4 unicast
exit
passive
exit
interface tengigabitethernet 0/0/1
address-family ipv4 unicast
bfd fast-detect
exit
level level-2
exit
point-to-point
exit
interface tengigabitethernet 0/0/2
address-family ipv4 unicast
bfd fast-detect
exit
level level-2
exit
point-to-point
exit
microloop-avoidance rib-update-delay 140
net 49.0000.0000.4000.0000.00
spf interval maximum-wait 80
|
...
Блок кода |
---|
language | text |
---|
title | Конфигурация R1: |
---|
|
router pim
vrf testvrf
address-family ipv4
interface tengigabitethernet 0/0/6
<<<<<<<<<<<<<<< Включаем протокол IGMP на заданном интерфейсе passive-interface <<<<<<<<<<<<<<< Выключение отправки и обработки PIM-сообщений на интерфейсе.
exit
static-rp 239.1.1.10/32 <<<<<<<<<<<<<<< Задаем диапазон мультикаст-групп для статического RP
rp-address 2.2.2.2
exit
exit
exit
exit
|
...
Блок кода |
---|
language | text |
---|
title | Конфигурация R2: |
---|
|
router pim
address-family ipv4
exit
vrf testvrf
address-family ipv4
interface tengigabitethernet 0/0/6
exit
static-rp 239.1.1.10/32
rp-address 2.2.2.2
exit
exit
exit
exit
router igmp
vrf testvrf
interface tengigabitethernet 0/0/6 <<<<<<<<<<<<<<< Включаем протокол IGMP на заданном интерфейсе
version 2 <<<<<<<<<<<<<<< Необходимо указать, так как по умолчанию работает IGMPv3
exit
exit
exit
|
К этому моменту у нас появились необходимые маршруты в таблице маршрутизации и построились P2MP туннели:
...