拓扑:

使用GRE使组播穿越非组播网络_MSDP

实验目的:

1 使整个公司的网络看起来像一个组播域

2 使RP相互备份

配置:

-----------------------R1-----------------------------

interface FastEthernet0/0
ip address 12.1.1.1 255.255.255.0
ip pim sparse-mode
ip igmp join-group 224.1.1.1
duplex auto
speed auto
!
router ospf 100
router-id 1.1.1.1
log-adjacency-changes
network 12.1.1.0 0.0.0.255 area 0

-----------------------R2-----------------------------

interface Loopback0
ip address 2.2.2.2 255.255.255.255
ip pim sparse-mode
!
interface Tunnel24
ip address 24.1.1.2 255.255.255.0
ip pim sparse-mode
tunnel source FastEthernet0/1
tunnel destination 34.1.1.4
!
interface FastEthernet0/0
ip address 12.1.1.2 255.255.255.0
ip pim sparse-mode
duplex auto
speed auto
!
interface FastEthernet0/1
ip address 23.1.1.2 255.255.255.0
duplex auto
speed auto
!
router ospf 100
router-id 2.2.2.2
log-adjacency-changes
network 2.2.2.2 0.0.0.0 area 0
network 12.1.1.0 0.0.0.255 area 0
network 24.1.1.0 0.0.0.255 area 0
!
ip route 0.0.0.0 0.0.0.0 23.1.1.3
!
ip pim send-rp-announce Loopback0 scope 16 group-list 10
ip pim send-rp-discovery Loopback0 scope 16
!
access-list 10 permit 224.1.1.1

-----------------------R3(互联网)-----------------------------

interface FastEthernet0/0
 ip address 34.1.1.3 255.255.255.0
 !
interface FastEthernet0/1
 ip address 23.1.1.3 255.255.255.0
 

-----------------------R4-----------------------------

interface Loopback0
ip address 4.4.4.4 255.255.255.255
ip pim sparse-mode
!
interface Tunnel24
ip address 24.1.1.4 255.255.255.0
ip pim sparse-mode
tunnel source FastEthernet1/0
tunnel destination 23.1.1.2
!
interface FastEthernet0/0
ip address 45.1.1.4 255.255.255.0
ip pim sparse-mode
ip igmp join-group 224.1.1.1
duplex auto
speed auto
!
interface FastEthernet0/1
ip address 46.1.1.4 255.255.255.0
ip pim sparse-mode
duplex auto
speed auto
!
interface FastEthernet1/0
ip address 34.1.1.4 255.255.255.0
duplex auto
speed auto
!
router ospf 200
router-id 4.4.4.4
log-adjacency-changes
network 4.4.4.4 0.0.0.0 area 0
network 24.1.1.0 0.0.0.255 area 0
network 45.1.1.0 0.0.0.255 area 0
network 46.1.1.0 0.0.0.255 area 0
!
ip route 0.0.0.0 0.0.0.0 34.1.1.3
!
ip pim send-rp-announce Loopback0 scope 16 group-list 10
ip pim send-rp-discovery Loopback0 scope 16
!
access-list 10 permit 224.1.1.1

-----------------------R5-----------------------------

interface FastEthernet0/0
ip address 45.1.1.5 255.255.255.0
ip pim sparse-mode
duplex auto
speed auto
!
router ospf 200
router-id 5.5.5.5
log-adjacency-changes
network 45.1.1.0 0.0.0.255 area 0

-----------------------R6-----------------------------

interface FastEthernet0/1
ip address 46.1.1.6 255.255.255.0
ip pim sparse-mode
duplex auto
speed auto
!
router ospf 200
router-id 6.6.6.6
log-adjacency-changes
network 46.1.1.0 0.0.0.255 area 0

验证:

使用GRE使组播穿越非组播网络_组播_02

使用GRE使组播穿越非组播网络_MSDP_03

使用GRE使组播穿越非组播网络_MSDP_04