[PE-A-GigabitEthernet2/0/0] port hybrid pvid vlan 50
[PE-A-GigabitEthernet2/0/0] port hybrid untagged vlan 50
[PE-A-GigabitEthernet2/0/0] quit
[PE-A] interface vlanif 50
[PE-A-Vlanif50] ip binding vpn-instance RED
[PE-A-Vlanif50] ip address 10.110.1.1 24
[PE-A-Vlanif50] pim sm
[PE-A-Vlanif50] igmp enable
# Bind GigabitEthernet 3/0/0 to the VPN-RED instance, and start PIM-SM.
[PE-A] interface gigabitethernet 3/0/0
[PE-A-GigabitEthernet3/0/0] port hybrid pvid vlan 60
[PE-A-GigabitEthernet3/0/0] port hybrid untagged vlan 60
[PE-A-GigabitEthernet3/0/0] quit
[PE-A] interface vlanif 60
[PE-A-Vlanif60] ip binding vpn-instance RED
[PE-A-Vlanif60] ip address 10.110.2.1 24
[PE-A-Vlanif60] pim sm
# Assign an IP address to Loopback 1 and start PIM-SM.
[PE-A] interface loopback 1
[PE-A-LoopBack1] ip address 1.1.1.1 32
[PE-A-LoopBack1] pim sm
[PE-A-LoopBack1] quit
# Configure an IP address for MTI 0, which must be the same as the IP address of Loopback 1.
The system automatically binds MTI 0 to the VPN-RED instance. Start PIM-SM on the interface.
[PE-A] interface MTunnel 0
[PE-A-MTunnel0] ip address 1.1.1.1 32
[PE-A-MTunnel0] pim sm
[PE-A-MTunnel0] quit
# Configure unicast routing information of BGP, OSPF, and RIP.
[PE-A] bgp 100
[PE-A-bgp] group VPN-G internal
[PE-A-bgp] peer VPN-G connect-interface LoopBack1
[PE-A-bgp] peer 1.1.1.2 group VPN-G
[PE-A-bgp] peer 1.1.1.3 group VPN-G
[PE-A-bgp] ipv4-family vpn-instance RED
[PE-A-bgp-RED] import-route rip 2
[PE-A-bgp-RED] import-route direct
[PE-A-bgp-RED] quit
[PE-A-bgp] ipv4-family vpnv4
[PE-A-bgp-af-vpnv4] peer VPN-G enable
[PE-A-bgp-af-vpnv4] peer 1.1.1.2 group VPN-G
[PE-A-bgp-af-vpnv4] peer 1.1.1.3 group VPN-G
[PE-A-bgp-af-vpnv4] quit
[PE-A-bgp] quit
[PE-A] ospf 1
[PE-A-ospf-1] area 0.0.0.0
[PE-A-ospf-1-area-0.0.0.0] network 1.1.1.1 0.0.0.0
[PE-A-ospf-1-area-0.0.0.0] network 192.168.0.0 0.0.255.255
[PE-A-ospf-1-area-0.0.0.0] quit
[PE-A-ospf-1] quit
[PE-A] rip 2 vpn-instance RED
[PE-A-rip-2] network 10.0.0.0
[PE-A-rip-2] import-route bgp cost 3
Step 2 # Configure PE-B.
# Configure the ID of PE-B, enable IP multicast routing of the public network, configure the ID
of the MPLS LSR, and then enable LDP.
[PE-B] router id 1.1.1.2
[PE-B] multicast routing-enable
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.
300