HCIP-IERS部署企业级路由交换网络_组播协议_PIM SM及静态RP

目录

第五章 组播协议

实验 5-2 PIM SM及静态RP

学习目的

拓扑图

场景

学习任务

步骤一.基础配置与IP编址

步骤二.配置所有路由器启用PIM SM

步骤三.静态RP和静态RP负载均衡

附加实验: 思考并验证

最终设备配置


第五章 组播协议

实验 5-2 PIM SM及静态RP

学习目的

·掌握PIM SM协议的配置方法

·掌握静态RP和RP负载均衡的配置方法

拓扑图

图5-2 PIM SM及动态RP

场景

你是公司的网络管理员。公司以前使用过PIM的DM模式来实现组播路由学习,但是后来发现随着组播应用的发展,组播用户分部越来越广,这时组播质量显示出一定程度的下降。为了提高组播的可靠性、安全性和效率,你决定使用PIM的SM模式来实现组播路由学习。

在PIM的SM模式中,你需要定义RP,作为SM模式的共享树的树根。但是在实际的使用中,只是这样简单的配置是不够的,组播还需要实现RP之间的负载分担。

在实现网络的组播转发之前,你也遇到了一些网络故障,经过一些故障排除步骤,最终网络正常工作了。

学习任务

步骤一.基础配置与IP编址

S2参与到本次实验(实现R1和R3的互联)。

<Huawei>system-view

Enter system view, return user view with Ctrl+Z.

[Huawei]sysname S2

[S2]vlan 13

[S2-vlan13]quit

[S2]int GigabitEthernet 0/0/1

[S2-GigabitEthernet0/0/1]port link-t access

[S2-GigabitEthernet0/0/1]port default vlan 13

[S2-GigabitEthernet0/0/1]quit

[S2]int GigabitEthernet 0/0/3

[S2-GigabitEthernet0/0/3]port link-t access

[S2-GigabitEthernet0/0/3]port default vlan 13

[S2-GigabitEthernet0/0/3]quit

给所有路由器配置IP地址和掩码。配置时注意所有的Loopback接口配置掩码均为24位。

[R1]interface GigabitEthernet0/0/2

[R1-GigabitEthernet0/0/2]ip address 10.0.13.1 24

[R1-GigabitEthernet0/0/2]quit

[R1]interface Serial 1/0/0

[R1-Serial1/0/0]ip address 10.0.12.1 24

[R1-Serial1/0/0]quit

[R1]interface Serial 3/0/0

[R1-Serial3/0/0]ip address 10.0.14.1 24

[R1-Serial3/0/0]quit

[R1]interface loopback 0

[R1-LoopBack0]ip address 10.0.1.1 24

[R1-LoopBack0]quit

[R2]interface GigabitEthernet0/0/0

[R2-GigabitEthernet0/0/0]ip address 10.0.25.2 24

[R2-GigabitEthernet0/0/0]quit

[R2]interface GigabitEthernet0/0/1

[R2-GigabitEthernet0/0/1]ip address 10.0.24.2 24

[R2-GigabitEthernet0/0/1]quit

[R2]interface Serial 1/0/0

[R2-Serial1/0/0]ip address 10.0.12.2 24

[R2-Serial1/0/0]quit

[R2]interface loopback 0

[R2-LoopBack0]ip address 10.0.2.2 24

[R2-LoopBack0]quit

[R3]interface GigabitEthernet0/0/2

[R3-GigabitEthernet0/0/2]ip address 10.0.13.3 24

[R3-GigabitEthernet0/0/2]quit

[R3]interface Serial 3/0/0

[R3-Serial3/0/0]ip address 10.0.35.3 24

[R3-Serial3/0/0]quit

[R3]interface loopback 0

[R3-LoopBack0]ip address 10.0.3.3 24

[R3-LoopBack0]quit

[R4]interface GigabitEthernet0/0/1

[R4-GigabitEthernet0/0/1]ip address 10.0.24.4 24

[R4-GigabitEthernet0/0/1]quit

[R4]interface Serial 1/0/0

[R4-Serial1/0/0]ip address 10.0.14.4 24

[R4-Serial1/0/0]quit

[R4]interface loopback 0

[R4-LoopBack0]ip address 10.0.4.4 24

[R4-LoopBack0]quit

[R5]interface GigabitEthernet0/0/0

[R5-GigabitEthernet0/0/0]ip address 10.0.25.5 24

[R5-GigabitEthernet0/0/0]quit

[R5]interface Serial 1/0/0

[R5-Serial1/0/0]ip address 10.0.35.5 24

[R5-Serial1/0/0]quit

[R5]interface loopback 0

[R5-LoopBack0]ip address 10.0.5.5 24

[R5-LoopBack0]quit

[S1]interface Vlanif 1

[S1-Vlanif1]ip address 10.0.24.1 24

[S1-Vlanif1]quit

[S1]interface loopback 0

[S1-LoopBack0]ip address 10.0.11.11 24

[S1-LoopBack0]quit

配置完成后,测试直连链路的连通性。

[R1]ping -c 1 10.0.12.2

  PING 10.0.12.2: 56  data bytes, press CTRL_C to break

    Reply from 10.0.12.2: bytes=56 Sequence=1 ttl=255 time=41 ms

  --- 10.0.12.2 ping statistics ---

    1 packet(s) transmitted

    1 packet(s) received

    0.00% packet loss

    round-trip min/avg/max = 41/41/41 ms

[R1]ping -c 1 10.0.13.3

  PING 10.0.13.3: 56  data bytes, press CTRL_C to break

    Reply from 10.0.13.3: bytes=56 Sequence=1 ttl=255 time=5 ms

  --- 10.0.13.3 ping statistics ---

    1 packet(s) transmitted

    1 packet(s) received

    0.00% packet loss

round-trip min/avg/max = 5/5/5 ms

[R1]ping -c 1 10.0.14.4

  PING 10.0.14.4: 56  data bytes, press CTRL_C to break

    Reply from 10.0.14.4: bytes=56 Sequence=1 ttl=255 time=62 ms

  --- 10.0.14.4 ping statistics ---

    1 packet(s) transmitted

    1 packet(s) received

    0.00% packet loss

    round-trip min/avg/max = 62/62/62 ms

[R5]ping -c 1 10.0.25.2

  PING 10.0.25.2: 56 data bytes, press CTRL_C to break

    Reply from 10.0.25.2: bytes=56 Sequence=1 ttl=255 time=7 ms

  --- 10.0.25.2 ping statistics ---

    1 packet(s) transmitted

    1 packet(s) received

    0.00% packet loss

    round-trip min/avg/max = 7/7/7 ms

[R5]ping -c 1 10.0.35.3

  PING 10.0.35.3: 56 data bytes, press CTRL_C to break

    Reply from 10.0.35.3: bytes=56 Sequence=1 ttl=255 time=37 ms

  --- 10.0.35.3 ping statistics ---

    1 packet(s) transmitted

    1 packet(s) received

    0.00% packet loss

round-trip min/avg/max = 37/37/37 ms

[S1]ping -c 1 10.0.24.2

  PING 10.0.24.2: 56  data bytes, press CTRL_C to break

    Reply from 10.0.24.2: bytes=56 Sequence=1 ttl=255 time=1 ms

  --- 10.0.24.2 ping statistics ---

    1 packet(s) transmitted

    1 packet(s) received

    0.00% packet loss

    round-trip min/avg/max = 1/1/1 ms

在R1、R2、R3、R4、 R5和S1上启用OSPF路由协议。实现所有网络互通。

[R1]ospf 1 router-id 10.0.1.1

[R1-ospf-1]area 0

[R1-ospf-1-area-0.0.0.0]network 10.0.14.1 0.0.0.0

[R1-ospf-1-area-0.0.0.0]network 10.0.12.1 0.0.0.0

[R1-ospf-1-area-0.0.0.0]network 10.0.13.1 0.0.0.0

[R1-ospf-1-area-0.0.0.0]network 10.0.1.1 0.0.0.0

[R1-ospf-1-area-0.0.0.0]quit

[R1-ospf-1]quit

[R2]ospf 1 router-id 10.0.2.2

[R2-ospf-1]area 0

[R2-ospf-1-area-0.0.0.0]network 10.0.12.2 0.0.0.0

[R2-ospf-1-area-0.0.0.0]network 10.0.24.2 0.0.0.0

[R2-ospf-1-area-0.0.0.0]network 10.0.25.2 0.0.0.0

[R2-ospf-1-area-0.0.0.0]network 10.0.2.2 0.0.0.0

[R2-ospf-1-area-0.0.0.0]quit

[R2-ospf-1]quit

[R3]ospf 1 router-id 10.0.3.3

[R3-ospf-1]area 0

[R3-ospf-1-area-0.0.0.0]network 10.0.13.3 0.0.0.0

[R3-ospf-1-area-0.0.0.0]network 10.0.35.3 0.0.0.0

[R3-ospf-1-area-0.0.0.0]network 10.0.3.3 0.0.0.0

[R3-ospf-1-area-0.0.0.0]quit

[R3-ospf-1]quit

[R4]ospf 1 router-id 10.0.4.4

[R4-ospf-1]area 0

[R4-ospf-1-area-0.0.0.0]network 10.0.14.4 0.0.0.0

[R4-ospf-1-area-0.0.0.0]network 10.0.24.4 0.0.0.0

[R4-ospf-1-area-0.0.0.0]network 10.0.4.4 0.0.0.0

[R4-ospf-1-area-0.0.0.0]quit

[R4-ospf-1]quit

[R5]ospf 1 router-id 10.0.5.5

[R5-ospf-1]area 0

[R5-ospf-1-area-0.0.0.0]network 10.0.25.5 0.0.0.0

[R5-ospf-1-area-0.0.0.0]network 10.0.35.5 0.0.0.0

[R5-ospf-1-area-0.0.0.0]network 10.0.5.5 0.0.0.0

[R5-ospf-1-area-0.0.0.0]quit

[R5-ospf-1]quit

[S1]ospf 1 router-id 10.0.11.11

[S1-ospf-1]area 0

[S1-ospf-1-area-0.0.0.0]network 10.0.24.1 0.0.0.0

[S1-ospf-1-area-0.0.0.0]network 10.0.11.11 0.0.0.0

[S1-ospf-1-area-0.0.0.0]quit

[S1-ospf-1]quit

配置完成后,稍等片刻,待OSPF邻居关系连接,路由信息交互完成后,测试S1与路由器R3的Loopback 0地址之间的连通性。

[S1]ping -c 1 10.0.3.3

  PING 10.0.3.3: 56  data bytes, press CTRL_C to break

    Reply from 10.0.3.3: bytes=56 Sequence=1 ttl=253 time=37 ms

  --- 10.0.3.3 ping statistics ---

    1 packet(s) transmitted

    1 packet(s) received

    0.00% packet loss

    round-trip min/avg/max = 37/37/37 ms

如测试显示,网络工作正常。

步骤二.配置所有路由器启用PIM SM

启用R1、R2、R3、R4、R5和S1的组播路由功能。

[R1]multicast routing-enable

[R2]multicast routing-enable

[R3]multicast routing-enable

[R4]multicast routing-enable

[R5]multicast routing-enable

[S1]multicast routing-enable

在所有设备的所有接口上配置运行SM模式的PIM。

[R1]interface GigabitEthernet0/0/2

[R1-GigabitEthernet0/0/2]pim sm

[R1-GigabitEthernet0/0/2]quit

[R1]interface Serial 1/0/0

[R1-Serial1/0/0]pim sm

[R1-Serial1/0/0]quit

[R1]interface Serial 3/0/0

[R1-Serial3/0/0]pim sm

[R1-Serial3/0/0]quit

[R1]interface loopback 0

[R1-LoopBack0]pim sm

[R1-LoopBack0]quit

[R2]interface GigabitEthernet0/0/0

[R2-GigabitEthernet0/0/0]pim sm

[R2-GigabitEthernet0/0/0]quit

[R2]interface GigabitEthernet0/0/1

[R2-GigabitEthernet0/0/1]pim sm

[R2-GigabitEthernet0/0/1]quit

[R2]interface Serial 1/0/0

[R2-Serial1/0/0]pim sm

[R2-Serial1/0/0]quit

[R2]interface loopback 0

[R2-LoopBack0]pim sm

[R2-LoopBack0]quit

[R3]interface GigabitEthernet0/0/2

[R3-GigabitEthernet0/0/2]pim sm

[R3-GigabitEthernet0/0/2]quit

[R3]interface Serial 3/0/0

[R3-Serial3/0/0]pim sm

[R3-Serial3/0/0]quit

[R3]interface loopback 0

[R3-LoopBack0]pim sm

[R3-LoopBack0]quit

[R4]interface GigabitEthernet0/0/1

[R4-GigabitEthernet0/0/1]pim sm

[R4-GigabitEthernet0/0/1]quit

[R4]interface Serial 1/0/0

[R4-Serial1/0/0]pim sm

[R4-Serial1/0/0]quit

[R4]interface loopback 0

[R4-LoopBack0]pim sm

[R4-LoopBack0]quit

[R5]interface GigabitEthernet0/0/0

[R5-GigabitEthernet0/0/0]pim sm

[R5-GigabitEthernet0/0/0]quit

[R5]interface Serial 1/0/0

[R5-Serial1/0/0]pim sm

[R5-Serial1/0/0]quit

[R5]interface loopback 0

[R5-LoopBack0]pim sm

[R5-LoopBack0]quit

[S1]interface Vlanif 1

[S1-Vlanif1]pim sm

[S1-Vlanif1]quit

[S1]interface loopback 0

[S1-LoopBack0]pim sm

[S1-LoopBack0]quit

配置完成后,查看R1、R5和S1的PIM邻居学习的情况。

<R1>display pim neighbor

VPN-Instance: public net

 Total Number of Neighbors = 3

 Neighbor        Interface           Uptime   Expires  Dr-Priority  BFD-Session

 10.0.13.3       GE0/0/2             00:01:25 00:01:20 1               N          

 10.0.12.2       S1/0/0              00:01:47 00:01:28 1               N          

 10.0.14.4       S3/0/0              00:00:56 00:01:19 1               N    

[R5]display pim neighbor

VPN-Instance: public net

 Total Number of Neighbors = 2

 Neighbor        Interface           Uptime   Expires  Dr-Priority  BFD-Session

 10.0.25.2       GE0/0/0             00:01:24 00:01:29 1              N          

 10.0.35.3       S1/0/0              00:01:19 00:01:39 1              N  

[S1]display pim neighbor

VPN-Instance: public net

 Total Number of Neighbors = 2

 Neighbor        Interface           Uptime   Expires  Dr-Priority  BFD-Session

 10.0.24.4       Vlanif1             00:01:24 00:01:28 1              N          

 10.0.24.2       Vlanif1             00:01:24 00:01:41 1              N   

从命令输出结果可以看到,PIM协议已经在网络中正确运行。

步骤三.静态RP和静态RP负载均衡

通过给网络手动指定静态RP来控制网络中组播数据流。

在所有设备配置R1的S3/0/0接口作为网络中的静态RP。

[R1]pim

[R1-pim]static-rp 10.0.14.1

[R1-pim]quit

[R2]pim

[R2-pim]static-rp 10.0.14.1

[R2-pim]quit

[R3]pim

[R3-pim]static-rp 10.0.14.1

[R3-pim]quit

[R4]pim

[R4-pim]static-rp 10.0.14.1

[R4-pim]quit

[R5]pim

[R5-pim]static-rp 10.0.14.1

[R5-pim]quit

[S1]pim

[S1-pim]static-rp 10.0.14.1

[S1-pim]quit

S1模拟网络中组播用户接入的三层交换机,在S1的Loopback 0接口上开启IGMP功能。

[S1]interface LoopBack 0

[S1-LoopBack0]igmp enable

[S1-LoopBack0]quit

将S1的Loopback 0接口静态加入225.0.0.1组播组,模拟连接有225.0.0.1组播组的用户。

[S1]interface LoopBack 0

[S1-LoopBack0]igmp static-group 225.0.0.1

[S1-LoopBack0]quit

在R1、R4和S1上使用命令display pim routing-table查看PIM路由表。

[R1]display pim routing-table

 VPN-Instance: public net

 Total 1 (*, G) entry; 0 (S, G) entry

 (*, 225.0.0.1)

     RP: 10.0.14.1 (local)

     Protocol: pim-sm, Flag: WC

     UpTime: 00:02:40

     Upstream interface: Register

         Upstream neighbor: NULL

         RPF prime neighbor: NULL

     Downstream interface(s) information:

     Total number of downstreams: 1

         1: Serial3/0/0

             Protocol: pim-sm, UpTime: 00:02:40, Expires: 00:02:50

[R4]display pim routing-table

 VPN-Instance: public net

 Total 1 (*, G) entry; 0 (S, G) entry

 (*, 225.0.0.1)

     RP: 10.0.14.1

     Protocol: pim-sm, Flag: WC

     UpTime: 00:01:46

     Upstream interface: Serial1/0/0

         Upstream neighbor: 10.0.14.1

         RPF prime neighbor: 10.0.14.1

     Downstream interface(s) information:

     Total number of downstreams: 1

         1: GigabitEthernet0/0/1

             Protocol: pim-sm, UpTime: 00:01:46, Expires: 00:02:43

[S1]display pim routing-table

 VPN-Instance: public net

 Total 1 (*, G) entry; 0 (S, G) entry

 (*, 225.0.0.1)

     RP: 10.0.14.1

     Protocol: pim-sm, Flag: WC

     UpTime: 00:01:19

     Upstream interface: Vlanif1

         Upstream neighbor: 10.0.24.4

         RPF prime neighbor: 10.0.24.4

     Downstream interface(s) information:

     Total number of downstreams: 1

         1: LoopBack0

             Protocol: static, UpTime: 00:01:19, Expires: -

从命令输出结果可以看到,在指定静态RP的网络中,R1是网络中的RP。S1生成了一条经过R4到达RP路由器R1的组播路径。

创建ACL并应用到静态RP上,定义R1作为RP,服务的组播范围是225.0.0.0/24网段,定义R5作为RP,服务的组播范围是225.0.1.0/24网段。

[R1]acl 2000

[R1-acl-basic-2000]rule permit source 225.0.0.0 0.0.0.255

[R1-acl-basic-2000]quit

[R1]acl 2001

[R1-acl-basic-2001]rule permit source 225.0.1.0 0.0.0.255

[R1-acl-basic-2001]quit

[R1]pim

[R1-pim]static-rp 10.0.14.1 2000

[R1-pim]static-rp 10.0.25.5 2001

[R1-pim]quit

[R2]acl 2000

[R2-acl-basic-2000]rule permit source 225.0.0.0 0.0.0.255

[R2-acl-basic-2000]quit

[R2]acl 2001

[R2-acl-basic-2001]rule permit source 225.0.1.0 0.0.0.255

[R2-acl-basic-2001]quit

[R2]pim

[R2-pim]static-rp 10.0.14.1 2000

[R2-pim]static-rp 10.0.25.5 2001

[R2-pim]quit

[R3]acl 2000

[R3-acl-basic-2000]rule permit source 225.0.0.0 0.0.0.255

[R3-acl-basic-2000]quit

[R3]acl 2001

[R3-acl-basic-2001]rule permit source 225.0.1.0 0.0.0.255

[R3-acl-basic-2001]quit

[R3]pim

[R3-pim]static-rp 10.0.14.1 2000

[R3-pim]static-rp 10.0.25.5 2001

[R3-pim]quit

[R4]acl 2000

[R4-acl-basic-2000]rule permit source 225.0.0.0 0.0.0.255

[R4-acl-basic-2000]quit

[R4]acl 2001

[R4-acl-basic-2001]rule permit source 225.0.1.0 0.0.0.255

[R4-acl-basic-2001]quit

[R4]pim

[R4-pim]static-rp 10.0.14.1 2000

[R4-pim]static-rp 10.0.25.5 2001

[R4-pim]quit

[R5]acl 2000

[R5-acl-basic-2000]rule permit source 225.0.0.0 0.0.0.255

[R5-acl-basic-2000]quit

[R5]acl 2001

[R5-acl-basic-2001]rule permit source 225.0.1.0 0.0.0.255

[R5-acl-basic-2001]quit

[R5]pim

[R5-pim]static-rp 10.0.14.1 2000

[R5-pim]static-rp 10.0.25.5 2001

[R5-pim]quit

[S1]acl 2000

[S1-acl-basic-2000]rule permit source 225.0.0.0 0.0.0.255

[S1-acl-basic-2000]quit

[S1]acl 2001

[S1-acl-basic-2001]rule permit source 225.0.1.0 0.0.0.255

[S1-acl-basic-2001]quit

[S1]pim

[S1-pim]static-rp 10.0.14.1 2000

[S1-pim]static-rp 10.0.25.5 2001

将S1的Loopback 0接口静态加入225.0.1.1组播组,模拟连接有225.0.1.1组播组的用户。

[S1]interface LoopBack 0

[S1-LoopBack0]igmp static-group 225.0.1.1

[S1-LoopBack0]quit

在S1、R2和 R5上使用命令display pim routing-table查看PIM路由表。

[R5]display pim routing-table

 VPN-Instance: public net

 Total 1 (*, G) entry; 0 (S, G) entry

 (*, 225.0.1.1)

     RP: 10.0.25.5 (local)

     Protocol: pim-sm, Flag: WC

     UpTime: 00:03:13

     Upstream interface: Register

         Upstream neighbor: NULL

         RPF prime neighbor: NULL

     Downstream interface(s) information:

     Total number of downstreams: 1

         1: GigabitEthernet0/0/0

             Protocol: pim-sm, UpTime: 00:03:13, Expires: 00:03:17

[R2]display pim routing-table

 VPN-Instance: public net

 Total 1 (*, G) entry; 0 (S, G) entry

 (*, 225.0.1.1)

     RP: 10.0.25.5

     Protocol: pim-sm, Flag: WC

     UpTime: 00:03:41

     Upstream interface: GigabitEthernet0/0/0

         Upstream neighbor: 10.0.25.5

         RPF prime neighbor: 10.0.25.5

     Downstream interface(s) information:

     Total number of downstreams: 1

         1: GigabitEthernet0/0/1

             Protocol: pim-sm, UpTime: 00:03:41, Expires: 00:02:48

[S1]display pim routing-table

 VPN-Instance: public net

 Total 2 (*, G) entries; 0 (S, G) entry

 (*, 225.0.0.1)

     RP: 10.0.14.1

     Protocol: pim-sm, Flag: WC

     UpTime: 00:17:09

     Upstream interface: Vlanif1

         Upstream neighbor: 10.0.24.4

         RPF prime neighbor: 10.0.24.4

     Downstream interface(s) information:

     Total number of downstreams: 1

         1: LoopBack0

             Protocol: static, UpTime: 00:17:09, Expires: -

 (*, 225.0.1.1)

     RP: 10.0.25.5

     Protocol: pim-sm, Flag: WC

     UpTime: 00:03:58

     Upstream interface: Vlanif1

         Upstream neighbor: 10.0.24.2

         RPF prime neighbor: 10.0.24.2

     Downstream interface(s) information:

     Total number of downstreams: 1

         1: LoopBack0

             Protocol: static, UpTime: 00:03:58, Expires: -

从命令输出结果可以看到,S1针对225.0.0.1和225.0.1.1生成了二条组播路径。225.0.1.1组播路径经过R2到达RP路由器R5。

附加实验: 思考并验证

PIM的SM模式适合于用户比较分散的场景。

思考一下生活中哪些网络应用适合使用PIM SM模式的组播来实现数据转发?它们的特点是什么?

最终设备配置

[R1]display current-configuration 

[V200R007C00SPC600]

#

 sysname R1

#

multicast routing-enable

#

acl number 2000  

 rule 5 permit source 225.0.0.0 0.0.0.255

acl number 2001  

 rule 5 permit source 225.0.1.0 0.0.0.255

#

interface Serial1/0/0

 link-protocol ppp

 ip address 10.0.12.1 255.255.255.0

 pim sm

#

interface Serial3/0/0

 link-protocol ppp

 ip address 10.0.14.1 255.255.255.0

 pim sm                                   

#

interface GigabitEthernet0/0/2

 ip address 10.0.13.1 255.255.255.0

 pim sm

#

interface LoopBack0

 ip address 10.0.1.1 255.255.255.0

 pim sm                                   

#

ospf 1 router-id 10.0.1.1

 area 0.0.0.0

  network 10.0.1.1 0.0.0.0

  network 10.0.12.1 0.0.0.0

  network 10.0.13.1 0.0.0.0

  network 10.0.14.1 0.0.0.0

#

pim

 static-rp 10.0.14.1 2000

 static-rp 10.0.25.25 2001

#

return

[R2]display current-configuration 

[V200R007C00SPC600]

#

 sysname R2

#

multicast routing-enable

#

acl number 2000  

 rule 5 permit source 225.0.0.0 0.0.0.255

acl number 2001  

 rule 5 permit source 225.0.1.0 0.0.0.255

#

interface Serial1/0/0

 link-protocol ppp

 ip address 10.0.12.2 255.255.255.0

 pim sm

#

interface GigabitEthernet0/0/0

 ip address 10.0.25.2 255.255.255.0

 pim sm

#

interface GigabitEthernet0/0/1

 ip address 10.0.24.2 255.255.255.0

 pim sm

#

interface LoopBack0

 ip address 10.0.2.2 255.255.255.0        

 pim sm

#

ospf 1 router-id 10.0.2.2

 area 0.0.0.0

  network 10.0.2.2 0.0.0.0

  network 10.0.12.2 0.0.0.0

  network 10.0.24.2 0.0.0.0

  network 10.0.25.2 0.0.0.0

#

pim

 static-rp 10.0.14.1 2000

 static-rp 10.0.25.5 2001

#

return

[R3]display current-configuration

[V200R007C00SPC600]

#

 sysname R3

#

multicast routing-enable

#

acl number 2000  

 rule 5 permit source 225.0.0.0 0.0.0.255

acl number 2001  

 rule 5 permit source 225.0.1.0 0.0.0.255

#

interface Serial3/0/0

 link-protocol ppp                        

 ip address 10.0.35.3 255.255.255.0

 pim sm

#

interface GigabitEthernet0/0/2

 ip address 10.0.13.3 255.255.255.0

 pim sm

#

interface GigabitEthernet0/0/3

 description VirtualPort

#

interface LoopBack0

 ip address 10.0.3.3 255.255.255.0

 pim sm

#                                         

ospf 1 router-id 10.0.3.3

 area 0.0.0.0

  network 10.0.3.3 0.0.0.0

  network 10.0.13.3 0.0.0.0

  network 10.0.35.3 0.0.0.0

#

pim

 static-rp 10.0.14.1 2000

 static-rp 10.0.25.5 2001

#

return

[R4]display current-configuration 

[V200R007C00SPC600]

#

 sysname R4

#

multicast routing-enable

#

acl number 2000  

 rule 5 permit source 225.0.0.0 0.0.0.255

acl number 2001  

 rule 5 permit source 225.0.1.0 0.0.0.255

#

interface Serial1/0/0

 link-protocol ppp

 ip address 10.0.14.4 255.255.255.0

 pim sm

#                                         

interface GigabitEthernet0/0/1

 ip address 10.0.24.4 255.255.255.0

 pim sm

#

interface LoopBack0

 ip address 10.0.4.4 255.255.255.0

 pim sm

#

ospf 1 router-id 10.0.4.4

 area 0.0.0.0

  network 10.0.4.4 0.0.0.0

  network 10.0.14.4 0.0.0.0

  network 10.0.24.4 0.0.0.0               

#

pim

 static-rp 10.0.14.1 2000

 static-rp 10.0.25.5 2001

#

return

[R5]display current-configuration

[V200R007C00SPC600]

#

 sysname R5

#

multicast routing-enable

#

acl number 2000  

 rule 5 permit source 225.0.0.0 0.0.0.255

acl number 2001  

 rule 5 permit source 225.0.1.0 0.0.0.255

#

interface Serial1/0/0

 link-protocol ppp

 ip address 10.0.35.5 255.255.255.0

 pim sm

#

interface GigabitEthernet0/0/0

 ip address 10.0.25.5 255.255.255.0       

 pim sm

#

interface LoopBack0

 ip address 10.0.5.5 255.255.255.0

 pim sm

#

ospf 1 router-id 10.0.5.5

 area 0.0.0.0

  network 10.0.5.5 0.0.0.0

  network 10.0.25.5 0.0.0.0

  network 10.0.35.5 0.0.0.0               

#

pim

 static-rp 10.0.14.1 2000

 static-rp 10.0.25.5 2001

#

return

[S1]display current-configuration 

!Software Version V200R008C00SPC500

#

sysname S1

#

multicast routing-enable

#

acl number 2000

 rule 5 permit source 225.0.0.0 0.0.0.255

acl number 2001

 rule 5 permit source 225.0.1.0 0.0.0.255

#

interface Vlanif1                         

 ip address 10.0.24.1 255.255.255.0

 pim sm

#

interface LoopBack0                       

 ip address 10.0.11.11 255.255.255.0

 pim sm

 igmp enable

 igmp static-group 225.0.0.1

 igmp static-group 225.0.1.1

#

ospf 1 router-id 10.0.11.11

 area 0.0.0.0

  network 10.0.11.11 0.0.0.0

  network 10.0.24.1 0.0.0.0

#

pim

 static-rp 10.0.14.1 2000

 static-rp 10.0.25.5 2001

#

return

猜你喜欢

转载自blog.csdn.net/weixin_57099902/article/details/131914297
今日推荐