Forgot password?
 Register now

Welcome to use this form to feedback your problems with Ruijie Community

The category of your feedback

Your Feedback

Your Email address (optional):

How to configure PIM-DIM on Ruijie Switch? Reply

GTAC-Bancroft

Level 1

How to configure PIM-DIM on Ruijie Switch?
1454 0 2023-8-15 13:32:11
Original
Introduction of PIM-DIM

PIM (Protocol Independent Multicast) is a multicast routing protocol that does not depend on a specific unicast routing protocol, and can use the unicast routing table established by any unicast routing protocol to perform RPF checking functions to establish multicast routes. Because PIM does not require sending and receiving multicast routing updates, it has much lower overhead than other multicast routing protocols.

PIM defines two modes: Dense Mode and Sparse Mode

Applied scenario:

PIM-DM (Protocol Independent Multicast-Dense Mode), which is the dense mode of PIM, is suitable for small networks with relatively concentrated multicast members.

Case of configuration

a) Requirement

1) S5750-H-1, S5750-H-2 and S5750-H-3 are three core devices. They are interconnected using a Layer 3 port and run OSPF, process 110, and all belong to area 0

2) The user PC's gateway is on S5750-H-1 and the multicast server is directly connected to S5750-H-2, which are each republished into the OSPF process

3) Layer 3 multicast routing protocol PIM-DM should be enabled on the S5750-H-1, S5750-H-2 and S5750-H-3 switches

4) Layer 2 multicast routing protocol IVGL to be enabled on the SS2928G-E switch

5) The PC downlinked by S29E is able to make on-demand video inside the multicast server

b) Network Topology



C) Configuration:

Configurations on Core Switches

S5750-H-1:

1) Create VLAN 10, user gateway SVI address, trunk configuration with access switches, and IP address configuration with other core switches for Layer 3 interconnection

S5750-H-1>enable

S5750-H-1#configure terminal

S5750-H-1(config)#vlan 10

S5750-H-1(config-vlan)#exit

S5750-H-1(config)#interface vlan 10

S5750-H-1(config-if-VLAN 10)#ip address 192.168.1.254 255.255.255.0

S5750-H-1(config-if-VLAN 10)#exit

S5750-H-1(config)#interface gigabitEthernet 0/1

S5750-H-1(config-if-GigabitEthernet 0/1)#switchport mode trunk

S5750-H-1(config-if-GigabitEthernet 0/1)#exit

S5750-H-1(config)#interface gigabitEthernet 0/2

S5750-H-1(config-if-GigabitEthernet 0/2)#no switchport

S5750-H-1(config-if-GigabitEthernet 0/2)#ip address 172.16.12.1 255.255.255.252

S5750-H-1(config-if-GigabitEthernet 0/2)#exit

S5750-H-1(config)#interface gigabitEthernet 0/3

S5750-H-1(config-if-GigabitEthernet 0/3)#no switchport

S5750-H-1(config-if-GigabitEthernet 0/3)#ip address 172.16.13.1 255.255.255.252

S5750-H-1(config-if-GigabitEthernet 0/3)#exit

S5750-H-1(config)#interface loopback 0

S5750-H-1(config-if-Loopback 0)#ip address 1.1.1.1 255.255.255.255

S5750-H-1(config-if-Loopback 0)#exit

2) Configure OSPF Routing for the S5750-H-1

S5750-H-1(config)#router ospf 110

S5750-H-1(config-router)#router-id 1.1.1.1

Change router-id and update OSPF process! [yes/no]:y

S5750-H-1(config-router)#network 172.16.12.0 0.0.0.3 area 0

S5750-H-1(config-router)#network 172.16.13.0 0.0.0.3 area 0

S5750-H-1(config-router)#network 192.168.1.0 0.0.0.255 area 0

S5750-H-1(config-router)#exit

3) Configure Multicast Routing for the S5750-H-1

S5750-H-1(config)#ip multicast-routing

S5750-H-1(config)#interface vlan 10

S5750-H-1(config-if-VLAN 10)#ip pim dense-mode

S5750-H-1(config-if-VLAN 10)#exit

S5750-H-1(config)#interface gigabitEthernet 0/2

S5750-H-1(config-if-GigabitEthernet 0/2)#ip pim dense-mode

S5750-H-1(config-if-GigabitEthernet 0/2)#exit

S5750-H-1(config)#interface gigabitEthernet 0/3

S5750-H-1(config-if-GigabitEthernet 0/3)#ip pim dense-mode

S5750-H-1(config-if-GigabitEthernet 0/3)#end

S5750-H-1#wr


S5750-H-2:

1) Create VLAN 20, multicast server gateway SVI address, multicast server connection port set to access vlan 20, layer 3 interconnect IP address configuration with other core switches:

S5750-H-2#configure terminal

S5750-H-2(config)#vlan 20

S5750-H-2(config-vlan)#exit

S5750-H-2(config)#interface vlan 20

S5750-H-2(config-if-VLAN 20)#ip address 192.168.20.254 255.255.255.0

S5750-H-2(config-if-VLAN 20)#exit

S5750-H-2(config)#interface gigabitEthernet 0/1

S5750-H-2(config-if-GigabitEthernet 0/1)#switchport access vlan 20

S5750-H-2(config-if-GigabitEthernet 0/1)#exit

S5750-H-2(config)#interface gigabitEthernet 0/2

S5750-H-2(config-if-GigabitEthernet 0/2)#no switchport

S5750-H-2(config-if-GigabitEthernet 0/2)#ip address 172.16.12.2 255.255.255.252

S5750-H-2(config-if-GigabitEthernet 0/2)#exit

S5750-H-2(config)#interface gigabitEthernet 0/4

S5750-H-2(config-if-GigabitEthernet 0/4#no switchport

S5750-H-2(config-if-GigabitEthernet 0/4#ip address 172.16.23.1 255.255.255.252

S5750-H-2(config-if-GigabitEthernet 0/4)#exit

S5750-H-2(config)#interface loopback 0

S5750-H-2(config-if-Loopback 0)#ip address 2.2.2.2 255.255.255.255

S5750-H-2(config-if-Loopback 0)#exit

2) Configure OSPF Routing for the S5750-H-2

S5750-H-2(config)#router ospf 110

S5750-H-2(config-router)#router-id 2.2.2.2

Change router-id and update OSPF process! [yes/no]:y

S5750-H-2(config-router)#network 172.16.12.0 0.0.0.3 area 0

S5750-H-2(config-router)#network 172.16.23.0 0.0.0.3 area 0

S5750-H-2(config-router)#network 192.168.20.0 0.0.0.255 area 0

S5750-H-2(config-router)#exit

3) Configure Multicast Routing for the S5750-H-2

S5750-H-2(config)#ip multicast-routing

S5750-H-2(config)#interface vlan 20

S5750-H-2(config-if-VLAN 20)#ip pim dense-mode

S5750-H-2(config-if-VLAN 20)#exit

S5750-H-2(config)#interface gigabitEthernet 0/2

S5750-H-2(config-if-GigabitEthernet 0/2)#ip pim dense-mode

S5750-H-2(config-if-GigabitEthernet 0/2)#exit

S5750-H-2(config)#interface gigabitEthernet 0/4

S5750-H-2(config-if-GigabitEthernet 0/4)#ip pim dense-mode

S5750-H-2(config-if-GigabitEthernet 0/4)#end

S5750-H-2#wr


S5750-H-3

1) Create a Layer 3 interconnect IP address configuration with other core switches:

S5750-H-3#configure terminal

S5750-H-3(config)#interface gigabitEthernet 0/3

S5750-H-3(config-if-GigabitEthernet 0/3)#no switchport

S5750-H-3(config-if-GigabitEthernet 0/3)#ip address 172.16.23.2 255.255.255.252

S5750-H-3(config-if-GigabitEthernet 0/3)#exit

S5750-H-3(config)#interface gigabitEthernet 0/4

S5750-H-3(config-if-GigabitEthernet 0/4#no switchport

S5750-H-3(config-if-GigabitEthernet 0/4#ip address 172.16.13.2 255.255.255.252

S5750-H-3(config-if-GigabitEthernet 0/4)#exit

S5750-H-3(config)#interface loopback 0

S5750-H-3(config-if-Loopback 0)#ip address 3.3.3.3 255.255.255.255

S5750-H-3(config-if-Loopback 0)#exit

2) Configure OSPF Routing for the S5750-H-3

S5750-H-3(config)#router ospf 110

S5750-H-3(config-router)#router-id 3.3.3.3

Change router-id and update OSPF process! [yes/no]:y

S5750-H-3(config-router)#network 172.16.13.0 0.0.0.3 area 0

S5750-H-3(config-router)#network 172.16.23.0 0.0.0.3 area 0

S5750-H-3(config-router)#exit

3) Configure Multicast Routing for the S5750-H-3

S5750-H-3(config)#ip multicast-routing

S5750-H-3(config)#interface gigabitEthernet 0/3

S5750-H-3(config-if-GigabitEthernet 0/3)#ip pim dense-mode

S5750-H-3(config-if-GigabitEthernet 0/3)#exit

S5750-H-3(config)#interface gigabitEthernet 0/4

S5750-H-3(config-if-GigabitEthernet 0/4)#ip pim dense-mode

S5750-H-3(config-if-GigabitEthernet 0/4)#end

S5750-H-3#wr


Configurations on the Access Switch

S2928G-E

1) Create a vlan on the access switch and divide the vlan, set the port connecting to the user as access port and the uplink port as trunk port

S29E(config)#vlan 10

S29E(config-vlan)#exit

S29E(config)#interface gigabitEthernet 0/25

S29E(config-if-GigabitEthernet 0/25)#switchport mode trunk

S29E(config-if-GigabitEthernet 0/25)#exit

S29E(config)#interface range fastEthernet 0/1-2

S29E(config-if-range)#switchport access vlan 10

S29E(config-if-range)#exit

2) On the access switch, globally configure IGMP Snooping to IVGL mode and configure port g0/25 as the routing connection port for VLAN 10.

S29E(config)#vlan 10

S29E(config-vlan)#exit

S29E(config)#ip igmp snooping ivgl

S29E(config)#ip igmp snooping vlan 10 mrouter interface g0/25

S29E(config)#end

S29E#wr


Verification

1) View the IGMP Group group on the access switch

S29E#show ip igmp groups

IGMP Connected Group Membership

Group Address    Interface              Uptime   Expires   Last Reporter

225.1.1.1        VLAN 20               00:03:48  00:03:20  192.168.100.1

2) View the PIM-DM information of the interface

S5750-H-2#show ip pim dense-mode interface detail

GigabitEthernet 0/2(vif-id: 1):

  Address 172.18.12.2

  Hello period 30 seconds, Next Hello in 30 seconds

  Over-ride interval 2500 milli-seconds

  Propagation-delay 500 milli-seconds

  Neighbors:

    172.18.12.1

GigabitEthernet 0/4(vif-id: 1):

  Address ip address 172.16.23.1

  Hello period 30 seconds, Next Hello in 30 seconds

  Over-ride interval 2500 milli-seconds

  Propagation-delay 500 milli-seconds

  Neighbors:

    ip address 172.16.23.2

3) View next hop information for PIM-DM

S5750-H-2#show ip pim dense-mode nexthop

Destination    Nexthop   Nexthop       Nexthop     Metric   Pref

                     Num          Addr          Interface

192.168.100.2   1       172.18.12.1  GigabitEthernet 0/1   0   1   

RG-S5300-48GT4XS-E

Configuration Switch
There are no replies.
Related Posts
Product Model

Share this topic to

Cancel

This site contains user submitted content, comments and opinions and is for informational purposes only. Ruijie may provide or recommend responses as a possible solution based on the information provided; every potential issue may involve several factors not detailed in the conversations captured in an electronic forum and Ruijie can therefore provide no guarantee as to the efficacy of any proposed solutions on the community forums. Ruijie disclaims any and all liability for the acts, omissions and conduct of any third parties in connection with or related to your use of the site. All postings and use of the content on this site are subject to the Ruijie Community Terms of Use.

More ways to get help: Visit Support Videos, call us via Service Hotline, Facebook or Live Chat.

©2000-2023 Ruijie Networks Co,Ltd