55、组播配置实验之PIM Sparse Mode静态指定RP

1、PIM Sparse Mode简介

wKiom1ZyE4mzwKbtAAFUujL55PQ355.png

wKioL1ZyE5Sgh53kAAEgwEB8I_8914.png

wKioL1ZyE5aR-iABAAFZGUGlMJI847.png

wKioL1ZyE5nTVtn7AAFRJkB85XU486.png

wKiom1ZyE5GiNY3rAAFgUCMpPC0458.png

wKioL1ZyE52QbMlnAAFKjAaD0iI594.png

wKiom1ZyE5XCuLvdAAEGfbm8t48544.png

wKioL1ZyE6GhuYhyAAD0BRiELFg498.png

wKiom1ZyE5nx-oxmAAD-SUGObSQ456.png

wKiom1ZyE5yxdHpvAAEa2pjezwA545.png

wKioL1ZyE6iQgC2qAAETUx1Zbso919.png

wKiom1ZyE6KhVxvvAAGDzHhHXyA906.png

wKioL1ZyE62jdaHeAADoXGrWK0Q403.png

wKiom1ZyE6bg-nWMAAD7dam0AUk310.png

wKioL1ZyE7PQ_TZUAAEh0Eb5wW4116.png

wKioL1ZyE7WhOu3uAAEbKebOcus328.png

wKiom1ZyE66QdjBNAAEyP48tMnc655.png

wKiom1ZyE7HhRXtKAAEXsTy0pW4621.png

wKioL1ZyE72hoe74AAFbEkTNG2s513.png

wKioL1ZyE7_hd1LOAAFDyvWwGWo795.png


2、实验拓扑

wKiom1Zw083Bbq4FAABJZ5RBKCw786.png


3、基础配置

R1配置

interface Serial0/1

 ip address 12.1.1.1 255.255.255.0

interface Serial0/2

 ip address 14.1.1.1 255.255.255.0

interface FastEthernet1/0

 ip address 13.1.1.1 255.255.255.0

router ospf 110

 router-id 1.1.1.1

 network 12.1.1.0 0.0.0.255 area 0

 network 13.1.1.0 0.0.0.255 area 0

 network 14.1.1.0 0.0.0.255 area 0


R2配置

interface Serial0/0

 ip address 25.1.1.2 255.255.255.0

interface Serial0/1

 ip address 12.1.1.2 255.255.255.0

router ospf 110

 router-id 2.2.2.2

 network 12.1.1.0 0.0.0.255 area 0

 default-information originate always


R3配置

interface FastEthernet1/0

 ip address 13.1.1.3 255.255.255.0

router ospf 110

 router-id 3.3.3.3

 network 13.1.1.0 0.0.0.255 area 0


R4配置

interface Serial0/0

 ip address 46.1.1.4 255.255.255.0

interface Serial0/2

 ip address 14.1.1.4 255.255.255.0

router ospf 110

 router-id 4.4.4.4

 network 14.1.1.0 0.0.0.255 area 0


R5配置

interface Serial0/0

 ip address 25.1.1.5 255.255.255.0


R6配置

interface Serial0/0

 ip address 46.1.1.6 255.255.255.0

no ip routing

ip default-gateway 46.1.1.4


4、配置PIM Sparse Mode

R1配置

ip multicast-routing 

interface Serial0/1

 ip pim sparse-mode 

interface Serial0/2

 ip pim sparse-mode 

interface FastEthernet1/0

 ip pim sparse-mode 


R2配置

ip multicast-routing 

interface Serial0/0

 ip pim sparse-mode      

interface Serial0/1

 ip pim sparse-mode 


R3配置

ip multicast-routing 

interface FastEthernet1/0

 ip pim sparse-mode 


R4配置

ip multicast-routing 

interface Serial0/0

 ip pim sparse-mode 

interface Serial0/2

 ip pim sparse-mode 


R6配置

interface Serial0/0

 ip igmp join-group 224.1.1.1


5、静态选举RP

静态选举RP需要在每台PIM路由器上指定用一个集合点RP,此方法选举出来的集合点RP无备份冗余。

R1配置

interface Loopback0

 ip address 1.1.1.1 255.255.255.0

router ospf 110

 network 1.1.1.0 0.0.0.255 area 0

ip pim rp-address 1.1.1.1


R2配置

ip pim rp-address 1.1.1.1


R3配置

ip pim rp-address 1.1.1.1


R4配置

ip pim rp-address 1.1.1.1


6、测试

源未发送组播流量前,R1、R4之间形成RPT树,R2、R1之间未形成任何树。

wKiom1ZyGArRYwf8AABBrhxOEa8414.png

wKioL1ZyGBWRLPT1AABVlnkqGXE260.png

wKiom1ZyGAyQlrTAAABQayVWpiI373.png

源将多播流量封装到单播中发给集合点RP,由于集合点RP底下有接收者,所以集合点会将源发过来的单播解封将多播流量发给接收者。

wKiom1ZyGJiTKgEJAAAcE2baBWg311.png

随后接收者会向First Hop路由器发送(S,G)Join报文,最终在First Hop路由器和Last Hop路由器间生成SPT树。

wKioL1ZyGcnQRUWvAABXXHAXKo0585.png

wKioL1ZyGcqzrp0iAABgQzgPDKw154.png

wKioL1ZyGcviyxF1AABaH_1Iido154.png


7、关闭自动转换SwitchOver

要关闭自动转换SwitchOver只需在Last Hop路由器全局配置模式下配置即可。

ip pim spt-threshold infinity 

wKioL1ZyGxHhMN8cAABTGl_LbC0305.png

你可能感兴趣的:(sparse,55,组播配置实验之PIM,Mode静态指定RP)