[PE-C-rip-2] import-route bgp cost 3
[PE-C-rip-2] quit
[PE-C] rip 3 vpn-instance BLUE
[PE-C-rip-3] network 10.0.0.0
[PE-C-rip-3] import-route bgp cost 3
Step 4 Configure the P.
# Enable IP multicast routing of the public network, configure the ID of the MPLS LSR, and
then enable LDP.
[P] multicast routing-enable
[P] mpls lsr-id 2.2.2.2
[P] mpls
[P-mpls] quit
[P] mpls ldp
[P-mpls-ldp] quit
# Enable LDP on GigabitEthernet 1/0/0 and start PIM-SM.
[P] interface gigabitethernet 1/0/0
[P-GigabitEthernet1/0/0] port hybrid pvid vlan 10
[P-GigabitEthernet1/0/0] port hybrid untagged vlan 10
[P-GigabitEthernet1/0/0] quit
[P] interface vlanif 10
[P-Vlanif10] ip address 192.168.6.2 24
[P-Vlanif10] pim sm
[P-Vlanif10] mpls
[P-Vlanif10] mpls ldp
# Enable LDP on GigabitEthernet 2/0/0 and start PIM-SM.
[P] interface gigabitethernet 2/0/0
[P-GigabitEthernet2/0/0] port hybrid pvid vlan 20
[P-GigabitEthernet2/0/0] port hybrid untagged vlan 20
[P-GigabitEthernet2/0/0] quit
[P] interface vlanif 20
[P-Vlanif20] ip address 192.168.7.2 24
[P-Vlanif20] pim sm
[P-Vlanif20] mpls
[P-Vlanif20] mpls ldp
# Enable LDP on GigabitEthernet 3/0/0 and start PIM-SM.
[P] interface gigabitethernet 3/0/0
[P-GigabitEthernet3/0/0] port hybrid pvid vlan 30
[P-GigabitEthernet3/0/0] port hybrid untagged vlan 30
[P-GigabitEthernet3/0/0] quit
[P] interface vlanif 30
[P-Vlanif30] ip address 192.168.8.2 24
[P-Vlanif30] pim sm
[P-Vlanif30] mpls
[P-Vlanif30] mpls ldp
# Assign an IP address to Loopback 1 and start PIM-SM.
[P] interface loopback 1
[P-LoopBack1] ip address 2.2.2.2 32
[P-LoopBack1] pim sm
[P-LoopBack1] quit
# Configure Loopback 1 as the C-BSR and C-RP for the public network.
[P] pim
[P-pim] c-bsr Loopback1
[P-pim] c-rp Loopback1
# Configure OSPF unicast routing information.
[P] ospf 1
Quidway S7700 Smart Routing Switch
Configuration Guide - Multicast 8 IPv4 Multicast VPN Configuration
Issue 01 (2011-07-15) Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
305