CCIE学习笔记之组播实验整理

#lab Multi1# PIM Dense 模式基本配置

实验拓扑:

CCIE学习笔记之组播实验整理_第1张图片

配置:

R1-

ip multicast-routing  //路由器上要运行multicast routing

interface FastEthernet0/0
 ip address 16.1.1.1 255.255.255.0
 ip pim dr-priority 3         //设置DR优先级,以太网才会选
 ip pim dense-mode           //设置PIM模式DM
 duplex auto
 speed auto
!
interface Serial1/0
 ip address 12.1.1.1 255.255.255.0
 ip pim dense-mode                //设置PIM模式DM
 serial restart-delay 0
!
interface Serial1/1
 ip address 13.1.1.1 255.255.255.0
 ip pim dense-mode              //设置PIM模式DM
 serial restart-delay 0
!
router ospf 110                   
 router-id 1.1.1.1
 log-adjacency-changes
 network 12.1.1.0 0.0.0.255 area 0
 network 13.1.1.0 0.0.0.255 area 0
 network 16.1.1.0 0.0.0.255 area 0
!
R2-

ip multicast-routing //路由器上运行组播
interface Serial1/0
 ip address 12.1.1.2 255.255.255.0
 ip pim dense-mode          //设置PIM模式DM
 serial restart-delay 0
!
interface Serial1/1
 ip address 24.1.1.2 255.255.255.0
 ip pim dense-mode           //设置PIM模式DM,连接源的接口
 serial restart-delay 0
!
router ospf 110
 router-id 2.2.2.2
 log-adjacency-changes
 network 12.1.1.0 0.0.0.255 area 0
 network 24.1.1.0 0.0.0.255 area 0
!
R3-

ip multicast-routing //路由器上运行组播
interface Serial1/0
 ip address 35.1.1.3 255.255.255.0
 ip pim dense-mode            //设置PIM模式DM,和PC连接的接口也需要做
 serial restart-delay 0
!
interface Serial1/1
 ip address 13.1.1.3 255.255.255.0
 ip pim dense-mode           //设置PIM模式DM
 serial restart-delay 0
!
router ospf 110
 log-adjacency-changes
 network 13.1.1.0 0.0.0.255 area 0
!
R4-
interface Serial1/1
 ip address 24.1.1.4 255.255.255.0            //组播源
 serial restart-delay 0
!
R5-
interface Serial1/0
 ip address 35.1.1.5 255.255.255.0
 no ip route-cache
 ip igmp join-group 224.1.1.1          //加入组224.1.1.1
 serial restart-delay 0
!
ip default-gateway 35.1.1.3              //模拟PC

 R6-

ip multicast-routing //路由器上运行组播

interface FastEthernet0/0
 ip address 16.1.1.6 255.255.255.0
 ip pim dense-mode           //PIM模式DM,没有配置OSPF?
 duplex auto
 speed auto
!
实验结果:

#lab Multi2# PIM Sparse模式基本配置-静态配置RP

实验拓扑:

CCIE学习笔记之组播实验整理_第2张图片

配置:

R1-

ip multicast-routing 

interface Loopback0
 ip address 1.1.1.1 255.255.255.0
!
interface FastEthernet0/0
 ip address 16.1.1.1 255.255.255.0
 ip pim dr-priority 3
 ip pim sparse-mode       //PIM SM模式
 duplex auto
 speed auto
!
interface Serial1/0
 ip address 12.1.1.1 255.255.255.0
 ip pim sparse-mode   //PIM SM模式
 serial restart-delay 0
!
interface Serial1/1
 ip address 13.1.1.1 255.255.255.0
 ip pim sparse-mode   //PIM SM模式
 serial restart-delay 0
!
router ospf 110
 router-id 1.1.1.1
 log-adjacency-changes
 network 1.1.1.0 0.0.0.255 area 0
 network 12.1.1.0 0.0.0.255 area 0
 network 13.1.1.0 0.0.0.255 area 0
 network 16.1.1.0 0.0.0.255 area 0
!
ip pim rp-address 1.1.1.1    //设置RP地址
!
 R2-

ip multicast-routing 
interface Serial1/0
 ip address 12.1.1.2 255.255.255.0
 ip pim sparse-mode   //PIM SM模式
 serial restart-delay 0
!
interface Serial1/1
 ip address 24.1.1.2 255.255.255.0
 ip pim sparse-mode    //PIM SM模式,第一跳路由器
 serial restart-delay 0
!
router ospf 110
 router-id 2.2.2.2
 log-adjacency-changes
 network 12.1.1.0 0.0.0.255 area 0
 network 24.1.1.0 0.0.0.255 area 0
!
ip pim rp-address 1.1.1.1   //指定RP

R3-

ip multicast-routing 
interface Serial1/0
 ip address 35.1.1.3 255.255.255.0
 ip pim sparse-mode    //PIM SM模式,最后一跳路由器
 serial restart-delay 0
!
interface Serial1/1
 ip address 13.1.1.3 255.255.255.0
 ip pim sparse-mode    //PIM SM模式
 serial restart-delay 0
!
router ospf 110
 log-adjacency-changes
 network 13.1.1.0 0.0.0.255 area 0
!
ip pim rp-address 1.1.1.1   //指定RP
ip pim spt-threshold infinity    //不让共享树到源树自动切换

R4,R5配置同上

R6-

ip multicast-routing 

interface FastEthernet0/0
 ip address 16.1.1.6 255.255.255.0
 ip pim sparse-mode   //PIM SM模式
 duplex auto
 speed auto
!
ip pim rp-address 1.1.1.1   //设置RP

实验结果:

#lab Multi3# PIM SM模式基本配置-Auto RP

实验拓扑:

CCIE学习笔记之组播实验整理_第3张图片

配置:

R1-

ip multicast-routing 
interface Loopback0
 ip address 1.1.1.1 255.255.255.0
 ip pim sparse-dense-mode
!
interface FastEthernet0/0
 ip address 16.1.1.1 255.255.255.0
 ip pim dr-priority 3
 ip pim sparse-dense-mode
 duplex auto
 speed auto
!
interface Serial1/0
 ip address 12.1.1.1 255.255.255.0
 ip pim sparse-dense-mode
 serial restart-delay 0
!
interface Serial1/1
 ip address 13.1.1.1 255.255.255.0
 ip pim sparse-dense-mode
 serial restart-delay 0
!
router ospf 110
 router-id 1.1.1.1
 log-adjacency-changes
 network 1.1.1.0 0.0.0.255 area 0
 network 12.1.1.0 0.0.0.255 area 0
 network 13.1.1.0 0.0.0.255 area 0
 network 16.1.1.0 0.0.0.255 area 0
!
ip pim rp-address 1.1.1.1   //可以去掉?
ip pim send-rp-announce Loopback0 scope 8   //通告Lo接口是CRP

R2-

ip multicast-routing 

interface Loopback0
 ip address 2.2.2.2 255.255.255.0
 ip pim sparse-dense-mode
!
interface Serial1/0
 ip address 12.1.1.2 255.255.255.0
 ip pim sparse-dense-mode
 serial restart-delay 0
!
interface Serial1/1
 ip address 24.1.1.2 255.255.255.0
 ip pim sparse-dense-mode
 serial restart-delay 0
!
router ospf 110
 router-id 2.2.2.2
 log-adjacency-changes
 network 2.2.2.0 0.0.0.255 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 pim rp-address 1.1.1.1    //去掉?
ip pim send-rp-discovery Loopback0 scope 8   //设置L0口为MA
R3,R4,R5,R6的配置同上,需要去掉指定RP地址?

实验结果:


 


 

你可能感兴趣的:(CCIE学习)