H3C MSR1000[2600][3600] Routers Configuration Examples All-in-One-R9141-6W100

HomeSupportConfigure & DeployConfiguration ExamplesH3C MSR1000[2600][3600] Routers Configuration Examples All-in-One-R9141-6W100
Table of Contents
Related Documents
57-BIDIR-PIM Configuration Examples
Title Size Download
57-BIDIR-PIM Configuration Examples 132.06 KB

 

H3C Routers

BIDIR-PIM Configuration Examples

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Copyright © 2024 New H3C Technologies Co., Ltd. All rights reserved.

No part of this manual may be reproduced or transmitted in any form or by any means without prior written consent of New H3C Technologies Co., Ltd.

Except for the trademarks of New H3C Technologies Co., Ltd., any trademarks that may be mentioned in this document are the property of their respective owners.

The information in this document is subject to change without notice.



Introduction

This document introduces BIDIR-PIM configuration examples.

Prerequisites

This document is not restricted to specific software or hardware versions.

The configuration examples in this document were created and verified in a lab environment, and all the devices were started with the factory default configuration. When you are working on a live network, make sure you understand the potential impact of every command on your network.

This document assumes that you have basic knowledge of BIDIR-PIM.

Example: Configuring BIDIR-PIM

Network configuration

As shown in Figure 1:

·     Router A, Router B, and Router C run OSPF.

·     Source 1 and Source 2 send multicast data to multicast group 225.1.1.1.

·     Host A and Host B are member hosts of multicast group 225.1.1.1.

Configure BIDIR-PIM on the routers to implement multicast forwarding.

Figure 1 Network diagram

Table 1 Interface and IP address assignment

Device

Interface

IP address

Device

Interface

IP address

Router A

GE0/0/1

10.10.1.1/24

Router C

GE0/0/1

10.13.1.3/24

Router A

GE0/0/2      

10.12.1.1/24

Router C

GE0/0/2      

10.23.1.3/24

Router A

GE0/0/3

10.13.1.1/24

Router C

GE0/0/3

10.102.1.1/24

Router B

GE0/0/1

10.12.1.2/24

Router C

GE0/0/4

10.33.1.3/24

Router B

GE0/0/2      

10.23.1.2/24

Source 1

10.10.1.2/24

Router B

GE0/0/3

10.101.1.1/24

Source 2

10.33.1.4/24

 

Analysis

To meet the network requirements, perform the following tasks:

·     To establish the bidirectional RPT, configure GigabitEthernet 0/0/2 on Router A as a C-RP.

·     To use the BSR mechanism to dynamically elect the RP, configure GigabitEthernet 0/0/2 on Router A as a C-BSR.

·     To avoid multicast forwarding interruption when the RP fails, specify the unused IP address 10.13.1.4/24 as the static RP. In this way, the link on the subnet 10.13.1.0/24 becomes the RPL. Router A and Router C on the link function as the RPs.

Software versions used

This configuration example was created and verified on Release 9141P16 of the MSR2630E-X1 router.

Restrictions and guidelines

When you configure BIDIR-PIM, follow these restrictions and guidelines:

·     Enable the same PIM mode on the interfaces that belong to the same VPN instance on each router.

·     Configure the same static RP on all the routers in the BIDIR-PIM domain.

·     Enable PIM-SM for all interfaces on the routers in the BIDIR-PIM domain.

·     Enable IGMP for the interfaces that connect to the stub networks on all the routers in the BIDIR-PIM domain.

Procedures

Configure Router A

1.     Enable IP multicast routing.

<RouterA> system-view

System View: return to User View with Ctrl+Z.

[RouterA] multicast routing

[RouterA-mrib] quit

2.     Configure each interface and enable PIM-SM.

# Assign an IP address to GigabitEthernet 0/0/1, and enable PIM-SM on the interface.

[RouterA] interface gigabitethernet 0/0/1

[RouterA-GigabitEthernet0/0/1] ip address 10.10.1.1 24

[RouterA-GigabitEthernet0/0/1] pim sm

[RouterA-GigabitEthernet0/0/1] quit

# Assign an IP address to GigabitEthernet 0/0/2, enable PIM-SM on the interface.

[RouterA-vlan12] interface gigabitethernet 0/0/2

[RouterA-GigabitEthernet0/0/2] ip address 10.12.1.1 24

[RouterA-GigabitEthernet0/0/2] pim sm

[RouterA-GigabitEthernet0/0/2] quit

# Assign an IP address to GigabitEthernet 0/0/3, enable PIM-SM on the interface.

[RouterA] interface gigabitethernet 0/0/3

[RouterA-GigabitEthernet0/0/3] ip address 10.13.1.1 24

[RouterA-GigabitEthernet0/0/3] pim sm

[RouterA-GigabitEthernet0/0/3] quit

3.     Configure a C-RP, a C-BSR, and the static RP.

# Configure GigabitEthernet 0/0/2 as a C-BSR and a C-RP.

[RouterA] pim

[RouterA-pim] c-bsr 10.12.1.1

[RouterA-pim] c-rp 10.12.1.1 bidir

# Specify the unused IP address 10.13.1.4 as a static RP.

[RouterA-pim] static-rp 10.13.1.4 bidir

4.     Enable BIDIR-PIM.

[RouterA-pim] bidir-pim enable

[RouterA-pim] quit

5.     Configure OSPF.

[RouterA] ospf 1

[RouterA-ospf-1] import-route direct

[RouterA-ospf-1] area 0

[RouterA-ospf-1-area-0.0.0.0] network 10.0.0.0 0.255.255.255

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

[RouterA-ospf-1] quit

Configure Router B

1.     Enable IP multicast routing.

<RouterB> system-view

System View: return to User View with Ctrl+Z.

[RouterB] multicast routing

[RouterB-mrib] quit

2.     Configure each interface and enable PIM-SM.

# Assign an IP address to GigabitEthernet 0/0/1, enable PIM-SM on the interface.

[RouterB] interface gigabitethernet 0/0/1

[RouterB-GigabitEthernet0/0/1] ip address 10.12.1.2 24

[RouterB-GigabitEthernet0/0/1] pim sm

[RouterB-GigabitEthernet0/0/1] quit

# Assign an IP address to GigabitEthernet 0/0/2, enable PIM-SM on the interface.

[RouterB] interface gigabitethernet 0/0/2

[RouterB-GigabitEthernet0/0/2] ip address 10.23.1.2 24

[RouterB-GigabitEthernet0/0/2] pim sm

[RouterB-GigabitEthernet0/0/2] quit

# Assign an IP address to GigabitEthernet 0/0/3, enable PIM-SM and IGMP on the interface.

[RouterB] interface gigabitethernet 0/0/3

[RouterB-GigabitEthernet0/0/3] ip address 10.101.1.1 24

[RouterB-GigabitEthernet0/0/3] pim sm

[RouterB-GigabitEthernet0/0/3] igmp enable

[RouterB-GigabitEthernet0/0/3] quit

3.     Specify the unused IP address 10.13.1.4 as a static RP.

[RouterB] pim

[RouterB-pim] static-rp 10.13.1.4 bidir

4.     Enable BIDIR-PIM.

[RouterB-pim] bidir-pim enable

[RouterB-pim] quit

5.     Configure OSPF.

[RouterB] ospf 1

[RouterB-ospf-1] import-route direct

[RouterB-ospf-1] area 0

[RouterB-ospf-1-area-0.0.0.0] network 10.0.0.0 0.255.255.255

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

[RouterB-ospf-1] quit

Configure Router C

1.     Enable IP multicast routing.

<RouterC> system-view

System View: return to User View with Ctrl+Z.

[RouterC] multicast routing

[RouterC-mrib] quit

2.     Configure each interface and enable PIM-SM.

# Assign an IP address to GigabitEthernet 0/0/4, enable PIM-SM on the interface.

[RouterC] interface gigabitethernet 0/0/4

[RouterC-GigabitEthernet0/0/4] ip address 10.33.1.3 24

[RouterC-GigabitEthernet0/0/4] pim sm

[RouterC-GigabitEthernet0/0/4] quit

# Assign an IP address to GigabitEthernet 0/0/1, enable PIM-SM on the interface.

[RouterC] interface gigabitethernet 0/0/1

[RouterC-GigabitEthernet0/0/1] ip address 10.13.1.3 24

[RouterC-GigabitEthernet0/0/1] pim sm

[RouterC-GigabitEthernet0/0/1] quit

# Assign an IP address to GigabitEthernet 0/0/2, enable PIM-SM on the interface.

[RouterC] interface gigabitethernet 0/0/2

[RouterC-GigabitEthernet0/0/2] ip address 10.23.1.3 24

[RouterC-GigabitEthernet0/0/2] pim sm

[RouterC-GigabitEthernet0/0/2] quit

# Assign an IP address to GigabitEthernet 0/0/3, enable PIM-SM and IGMP on the interface.

[RouterC] interface gigabitethernet 0/0/3

[RouterC-GigabitEthernet0/0/3] ip address 10.102.1.1 24

[RouterC-GigabitEthernet0/0/3] pim sm

[RouterC-GigabitEthernet0/0/3] igmp enable

[RouterC-GigabitEthernet0/0/3] quit

3.     Specify the unused IP address 10.13.1.4 as a static RP.

[RouterC] pim

[RouterC-pim] static-rp 10.13.1.4 bidir

4.     Enable BIDIR-PIM

[RouterC-pim] bidir-pim enable

[RouterC-pim] quit

5.     Configure OSPF.

[RouterC] ospf 1

[RouterC-ospf-1] import-route direct

[RouterC-ospf-1] area 0

[RouterC-ospf-1-area-0.0.0.0] network 10.0.0.0 0.255.255.255

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

[RouterC-ospf-1] quit

Verifying the configuration

1.     Verify that Router A, Router B, and Router C have established PIM neighbor relationships.

# Display PIM neighbor information on Router A.

[RouterA] display pim neighbor

 Total Number of Neighbors = 2

 

 Neighbor        Interface           Uptime   Expires  DR-Priority Mode

 10.12.1.2       GE0/0/2                    00:02:27 00:01:45 1           B

 10.13.1.3       GE0/0/3             00:02:27 00:01:19 1           B

# Display PIM neighbor information on Router B.

[RouterB] display pim neighbor

 Total Number of Neighbors = 2

 

 Neighbor        Interface           Uptime   Expires  DR-Priority Mode

 10.12.1.1       GE0/0/1             00:03:05 00:01:44 1           B

 10.23.1.3       GE0/0/3             00:13:49 00:01:29 1           B

# Display PIM neighbor information on Router C.

[RouterC] display pim neighbor

 Total Number of Neighbors = 2

 

 Neighbor        Interface           Uptime   Expires  DR-Priority Mode

 10.13.1.1       GE0/0/1             00:03:28 00:01:39 1           B

 10.23.1.2       GE0/0/2                    00:14:05 00:01:36 1           B

2.     Verify that GigabitEthernet 0/0/2 on Router A has been elected as the BSR on each router.

# Display BSR information on Router A.

[RouterA] display pim bsr-info

 Scope: non-scoped

     State: Elected

     Bootstrap timer: 00:01:18

     Elected BSR address: 10.12.1.1

       Priority: 64

       Hash mask length: 30

       Uptime: 00:04:01

     Candidate BSR address: 10.12.1.1

       Priority: 64

       Hash mask length: 30

# Display BSR information on Router B.

[RouterB] display pim bsr-info

 Scope: non-scoped

     State: Accept Preferred

     Bootstrap timer: 00:00:26

     Elected BSR address: 10.12.1.1

       Priority: 64

       Hash mask length: 30

       Uptime: 00:10:41

# Display BSR information on Router C.

[RouterC] display pim bsr-info

 Scope: non-scoped

     State: Accept Preferred

     Bootstrap timer: 00:02:08

     Elected BSR address: 10.12.1.1

       Priority: 64

       Hash mask length: 30

       Uptime: 00:15:41

3.     Verify that GigabitEthernet 0/0/2 on Router A has been elected as the RP, and verify that the IP address of the static RP is 10.13.1.4 on each router.

# Display RP information on Router A.

[RouterA] display pim rp-info

 BSR RP information:

   Scope: non-scoped

     Group/MaskLen: 224.0.0.0/4 [B]

       RP address               Priority  HoldTime  Uptime    Expires

       10.12.1.1 (local)        192       150       00:06:01  00:02:58

 

 Static RP information:

       RP address               ACL   Mode    Preferred

       10.13.1.4                ----  bidir   No

# Display RP information on Router B.

[SwatchB] display pim rp-info

 BSR RP information:

   Scope: non-scoped

     Group/MaskLen: 224.0.0.0/4 [B]

       RP address               Priority  HoldTime  Uptime    Expires

       10.12.1.1                192       150       00:06:33  00:02:26

 

 Static RP information:

       RP address               ACL   Mode    Preferred

       10.13.1.4                ----  bidir   No

# Display RP information on Router C.

[RouterC] display pim rp-info

 BSR RP information:

   Scope: non-scoped

     Group/MaskLen: 224.0.0.0/4 [B]

       RP address               Priority  HoldTime  Uptime    Expires

       10.12.1.1                192       150       00:06:51  00:02:05

 

Static RP information:

       RP address               ACL   Mode    Preferred

       10.13.1.4                ----  bidir   No

4.     Verify that the DFs have been elected for BIDIR-PIM on each router.

# Display information about DFs for BIDIR-PIM on Router A.

[RouterA] display pim df-info

RP address: 10.12.1.1

 Interface           State   DF-Pref    DF-Metric  DF-Uptime DF-Address

 GE0/0/1             Win     0          0          00:01:09  10.10.1.1 (local)

 GE0/0/2                    -       -          -          -         -

 GE0/0/3             Win     0          0          00:01:10  10.13.1.1 (local)

 

RP address: 10.13.1.4

 Interface           State   DF-Pref    DF-Metric  DF-Uptime DF-Address

 GE0/0/1             Win     0          0          00:00:07  10.10.1.1 (local)

 GE0/0/2                    Win     0          0          00:00:07  10.12.1.1 (local)

 GE0/0/3             -       -          -          -         -

# Display information about DFs for BIDIR-PIM on Router B.

[RouterB] display pim df-info

RP address: 10.12.1.1

 Interface           State   DF-Pref    DF-Metric  DF-Uptime DF-Address

 GE0/0/1             -       -          -          -         -

 GE0/0/2                    Win     0          0          00:01:46  10.23.1.2 (local)

 GE0/0/3             Win     0          0          00:01:45  10.101.1.1 (local)

 

RP address: 10.13.1.4

 Interface           State   DF-Pref    DF-Metric  DF-Uptime DF-Address

 GE0/0/1             Lose    0          0          00:00:44  10.12.1.1

 GE0/0/2                    Lose    0          0          00:00:53  10.23.1.3

 GE0/0/3             Win     10         2          00:00:53  10.101.1.1 (local)

# Display information about DFs for BIDIR-PIM on Router C.

[RouterC] display pim df-info

RP address: 10.12.1.1

 Interface           State   DF-Pref    DF-Metric  DF-Uptime DF-Address

 GE0/0/3             Win     10         2          00:02:07  10.102.1.1 (local)

 GE0/0/4             Win     10         2          00:02:06  10.33.1.3 (local)

 GE0/0/1             Lose    0          0          00:02:07  10.13.1.1

 GE0/0/2                    Lose    0          0          00:02:07  10.23.1.2

 

RP address: 10.13.1.4

 Interface           State   DF-Pref    DF-Metric  DF-Uptime DF-Address

 GE0/0/3             Win     0          0          00:01:24  10.102.1.1 (local)

 GE0/0/4             Win     0          0          00:01:23  10.33.1.3 (local)

 GE0/0/1             -       -          -          -         -

 GE0/0/2                    Win     0          0          00:01:24  10.23.1.3 (local)

5.     Verify that DFs for multicast forwarding are correct on each router.

# Display information about DFs for multicast forwarding on Router A.

[RouterA] display multicast forwarding df-info

Total 2 RPs, 2 matched

 

00001. RP address: 10.12.1.1

     Flags: 0x0

     Uptime: 00:02:42

     RPF interface: GigabitEthernet0/0/2

     List of 2 DF interfaces:

       1: GigabitEthernet0/0/1

       2: GigabitEthernet0/0/3

 

00002. RP address: 10.13.1.4

     Flags: 0x0

     Uptime: 00:01:41

     RPF interface: GigabitEthernet0/0/3

     List of 2 DF interfaces:

       1: GigabitEthernet0/0/1

       2: GigabitEthernet0/0/2

# Display information about DFs for multicast forwarding on Router B.

[RouterB] display multicast forwarding df-info

Total 2 RPs, 2 matched

 

00001. RP address: 10.12.1.1

     Flags: 0x0

     Uptime: 00:03:18

     RPF interface: GigabitEthernet0/0/1

     List of 2 DF interfaces:

       1: GigabitEthernet0/0/2

       2: GigabitEthernet0/0/3

 

00002. RP address: 10.13.1.4

     Flags: 0x0

     Uptime: 00:02:24

     RPF interface: GigabitEthernet0/0/2

     List of 1 DF interfaces:

       1: GigabitEthernet0/0/3

# Display information about DFs for multicast forwarding on Router C.

[RouterC] display multicast forwarding df-info

Total 2 RPs, 2 matched

 

00001. RP address: 10.12.1.1

     Flags: 0x0

     Uptime: 00:03:38

     RPF interface: GigabitEthernet0/0/2

     List of 2 DF interfaces:

       1: GigabitEthernet0/0/3

       2: GigabitEthernet0/0/4

 

00002. RP address: 10.13.1.4

     Flags: 0x0

     Uptime: 2d:18h

     RPF interface: GigabitEthernet0/0/1

     List of 3 DF interfaces:

       1: GigabitEthernet0/0/3

       2: GigabitEthernet0/0/4

       3: GigabitEthernet0/0/2

6.     Send IGMP reports from Host A and Host B to join multicast group 225.1.1.1, and send multicast data from Source 1 and Source 2 to the group. (Details not shown.)

7.     Verify that PIM forwarding entries have been correctly established on each router.

# Display information about PIM routing entries on Router A.

[RouterA] display pim routing-table

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

 

 (*, 225.1.1.1)

     RP: 10.12.1.1 (local)

     Protocol: pim-bidir, Flag: WC LOC ACT

     UpTime: 00:21:59

     Upstream interface: GigabitEthernet0/0/2

         Upstream neighbor: NULL

         RPF prime neighbor: NULL

     Downstream interface(s) information:

     Total number of downstreams: 1

         1: GigabitEthernet0/0/2

             Protocol: pim-bidir, UpTime: 00:21:59, Expires: -

         2: GigabitEthernet0/0/3

             Protocol: pim-bidir, UpTime: 00:03:26, Expires: -

# Display information about PIM routing entries on Router B.

[RouterB] display pim routing-table

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

 

 (*, 225.1.1.1)

     RP: 10.12.1.1

     Protocol: pim-bidir, Flag: WC LOC ACT

     UpTime: 00:23:47

     Upstream interface: GigabitEthernet0/0/1

         Upstream neighbor: NULL

         RPF prime neighbor: NULL

     Downstream interface(s) information:

     Total number of downstreams: 3

         1: GigabitEthernet0/0/2

             Protocol: pim-bidir, UpTime: 00:23:47, Expires: -

         2: GigabitEthernet0/0/2

             Protocol: pim-bidir, UpTime: 00:21:56, Expires: -

         3: GigabitEthernet0/0/3

             Protocol: igmp, UpTime: 00:23:47, Expires: -

# Display information about PIM routing entries on Router C.

[RouterC] display pim routing-table

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

 

 (*, 225.1.1.1)

     RP: 10.12.1.1

     Protocol: pim-bidir, Flag: WC ACT

     UpTime: 00:01:45

     Upstream interface: GigabitEthernet0/0/2

         Upstream neighbor: 10.23.1.2

         RPF prime neighbor: 10.23.1.2

     Downstream interface(s) information:

     Total number of downstreams: 2

         1: GigabitEthernet0/0/3

             Protocol: igmp, UpTime: 00:01:05, Expires: -

         2: GigabitEthernet0/0/2

             Protocol: pim-bidir, UpTime: 00:00:53, Expires: -

Configuration files

·     Router A:

#

ospf 1

 import-route direct

 area 0.0.0.0

  network 10.0.0.0 0.255.255.255

#

interface GigabitEthernet0/0/1

 port link-mode route

 ip address 10.10.1.1 255.255.255.0

 pim sm

#

interface GigabitEthernet0/0/2

 port link-mode route

 ip address 10.12.1.1 255.255.255.0

 pim sm

#

interface GigabitEthernet0/0/3

 port link-mode route

 ip address 10.13.1.1 255.255.255.0

 pim sm

#

multicast routing

#

pim

 c-bsr 10.12.1.1

 c-rp 10.12.1.1 bidir

 static-rp 10.13.1.4 bidir

 bidir-pim enable

#

·     Router B:

#

ospf 1

 import-route direct

 area 0.0.0.0

  network 10.0.0.0 0.255.255.255

#

interface GigabitEthernet0/0/1

 port link-mode route

 combo enable copper

 ip address 10.12.1.2 255.255.255.0

 pim sm

#

interface GigabitEthernet0/0/2

 port link-mode route

 combo enable copper

 ip address 10.23.1.2 255.255.255.0

 pim sm

#

interface GigabitEthernet0/0/3

 port link-mode route

 combo enable copper

 ip address 10.101.1.1 255.255.255.0

 pim sm

 igmp enable

#

multicast routing

#

pim

 static-rp 10.13.1.4 bidir

 bidir-pim enable

#

·     Router C:

#

ospf 1

 import-route direct

 area 0.0.0.0

  network 10.0.0.0 0.255.255.255

#

interface GigabitEthernet0/0/1

 port link-mode route

 ip address 10.13.1.3 255.255.255.0

 pim sm

#

interface GigabitEthernet0/0/2

 port link-mode route

 ip address 10.23.1.3 255.255.255.0

 pim sm

#

interface GigabitEthernet0/0/3

 port link-mode route

 ip address 10.102.1.1 255.255.255.0

 pim sm

 igmp enable

#

interface GigabitEthernet0/0/4

 port link-mode route

 ip address 10.33.1.3 255.255.255.0

 pim sm

#

multicast routing

#

pim

 static-rp 10.13.1.4 bidir

 bidir-pim enable

#

Related documentation

·     IP Multicast Configuration Guide in H3C MSR1000[2600][3600] Routers Configuration Guides(V9)

·     IP Multicast Command Reference in H3C MSR1000[2600][3600] Routers Command References(V9)

 

  • Cloud & AI
  • InterConnect
  • Intelligent Computing
  • Intelligent Storage
  • Security
  • SMB Products
  • Intelligent Terminal Products
  • Product Support Services
  • Technical Service Solutions
All Services
  • Resource Center
  • Policy
  • Online Help
  • Technical Blogs
All Support
  • Become A Partner
  • Partner Policy & Program
  • Global Learning
  • Partner Sales Resources
  • Partner Business Management
  • Service Business
All Partners
  • Profile
  • News & Events
  • Online Exhibition Center
  • Contact Us
All About Us
新华三官网