PIM-SM non-scoped zone configuration example

Network requirements

As shown in Figure 33:

Figure 33: Network diagram

Table 7: Interface and IP address assignment

Device

Interface

IP address

Device

Interface

IP address

Switch A

Vlan-int100

10.110.1.1/24

Switch D

Vlan-int300

10.110.5.1/24

Switch A

Vlan-int101

192.168.1.1/24

Switch D

Vlan-int101

192.168.1.2/24

Switch A

Vlan-int102

192.168.9.1/24

Switch D

Vlan-int105

192.168.4.2/24

Switch B

Vlan-int200

10.110.2.1/24

Switch E

Vlan-int104

192.168.3.2/24

Switch B

Vlan-int103

192.168.2.1/24

Switch E

Vlan-int103

192.168.2.2/24

Switch C

Vlan-int200

10.110.2.2/24

Switch E

Vlan-int102

192.168.9.2/24

Switch C

Vlan-int104

192.168.3.1/24

Switch E

Vlan-int105

192.168.4.1/24

Configuration procedure

  1. Assign an IP address and subnet mask to each interface according to Figure 33. (Details not shown.)

  2. Enable OSPF on all switches on the PIM-SM network to make sure the following conditions are met: (Details not shown.)

    • The switches are interoperable at the network layer.

    • The switches can dynamically update their routing information.

  3. Enable IP multicast routing, and enable IGMP and PIM-SM:

    # On Switch A, enable IP multicast routing globally.

    <SwitchA> system-view
    [SwitchA] multicast routing
    [SwitchA-mrib] quit
    

    # Enable IGMP on the receiver-side interface (VLAN-interface 100).

    [SwitchA] interface vlan-interface 100
    [SwitchA-Vlan-interface100] igmp enable
    [SwitchA-Vlan-interface100] quit
    

    # Enable PIM-DM on the other interfaces.

    [SwitchA] interface vlan-interface 101
    [SwitchA-Vlan-interface101] pim sm
    [SwitchA-Vlan-interface101] quit
    [SwitchA] interface vlan-interface 102
    [SwitchA-Vlan-interface102] pim sm
    [SwitchA-Vlan-interface102] quit
    

    # Enable IP multicast routing, IGMP, and PIM-SM on Switch B and Switch C in the same way Switch A is configured. (Details not shown.)

    # Enable IP multicast routing and PIM-SM on Switch D and Switch E in the same way Switch A is configured. (Details not shown.)

  4. Configure C-BSRs and C-RPs:

    # On Switch D, configure the service scope of RP advertisements.

    <SwitchD> system-view
    [SwitchD] acl number 2005
    [SwitchD-acl-basic-2005] rule permit source 225.1.1.0 0.0.0.255
    [SwitchD-acl-basic-2005] quit
    

    # Configure VLAN-interface 105 as a C-BSR and a C-RP, and set the hash mask length to 32 and the priority of the C-BSR to 10.

    [SwitchD] pim
    [SwitchD-pim] c-bsr 192.168.4.2 hash-length 32 priority 10
    [SwitchD-pim] c-rp 192.168.4.2 group-policy 2005
    [SwitchD-pim] quit
    

    # On Switch E, configure the service scope of RP advertisements.

    <SwitchE> system-view
    [SwitchE] acl number 2005
    [SwitchE-acl-basic-2005] rule permit source 225.1.1.0 0.0.0.255
    [SwitchE-acl-basic-2005] quit
    

    # Configure VLAN-interface 102 as a C-BSR and a C-RP, and set the hash mask length to 32 and the priority of the C-BSR to 20.

    [SwitchE] pim
    [SwitchE-pim] c-bsr 192.168.9.2 hash-length 32 priority 20
    [SwitchE-pim] c-rp 192.168.9.2 group-policy 2005
    [SwitchE-pim] quit
    

Verifying the configuration

# Display PIM information on Switch A.

[SwitchA] display pim interface
 Interface           NbrCnt HelloInt   DR-Pri     DR-Address
 Vlan100             0      30         1          10.110.1.1     (local)
 Vlan101             1      30         1          192.168.1.2
 Vlan102             1      30         1          192.168.9.2

# Display BSR information on Switch A.

[SwitchA] display pim bsr-info
 Scope: non-scoped
     State: Accept Preferred
     Bootstrap timer: 00:01:44
     Elected BSR address: 192.168.9.2
       Priority: 20
       Hash mask length: 32
       Uptime: 00:40:40

# Display BSR information on Switch D.

[SwitchD] display pim bsr-info
 Scope: non-scoped
     State: Candidate
     Bootstrap timer: 00:01:44
     Elected BSR address: 192.168.9.2
       Priority: 20
       Hash mask length: 32
       Uptime: 00:05:26
     Candidate BSR address: 192.168.4.2
       Priority: 10
       Hash mask length: 32

# Display BSR information on Switch E.

[SwitchE] display pim bsr-info
 Scope: non-scoped
     State: Elected
     Bootstrap timer: 00:01:44
     Elected BSR address: 192.168.9.2
       Priority: 20
       Hash mask length: 32
       Uptime: 00:01:18
     Candidate BSR address: 192.168.9.2
       Priority: 20
       Hash mask length: 32

# Display RP information on Switch A.

[SwitchA] display pim rp-info
 BSR RP information:
   Scope: non-scoped
     Group/MaskLen: 225.1.1.0/24
       RP address               Priority  HoldTime  Uptime    Expires
       192.168.4.2              192       150       00:51:45  00:02:22
       192.168.9.2              192       150       00:51:45  00:02:22