45
[CE1-HundredGigE1/0/1] quit
# In VLAN 100, enable the IGMP snooping querier.
[CE1-vlan100] igmp-snooping querier
# In VLAN 100, specify 192.168.1.100 as the source IP address of IGMP general queries and
IGMP group-specific queries.
[CE1-vlan100] igmp-snooping general-query source-ip 192.168.1.100
[CE1-vlan100] igmp-snooping special-query source-ip 192.168.1.100
4.
Configure CE 2:
# Enable IGMP snooping globally.
<CE2> system-view
[CE2] igmp-snooping
[CE2-igmp-snooping] quit
# Create VLAN 100, and assign HundredGigE 1/0/2 to VLAN100.
[CE2] vlan 100
[CE2-vlan100] port hundredgige 1/0/2
# In VLAN 100, enable IGMP snooping, and enable dropping unknown multicast data.
[CE2-vlan100] igmp-snooping enable
[CE2-vlan100] igmp-snooping drop-unknown
# Configure HundredGigE 1/0/1 as a trunk port, and assign it to VLAN 100.
[CE2] interface hundredgige 1/0/1
[CE2-HundredGigE1/0/1] port link-type trunk
[CE2-HundredGigE1/0/1] port trunk permit vlan 100
[CE2-HundredGigE1/0/1] quit
5.
Configure CE 3:
# Enable IGMP snooping globally.
<CE3> system-view
[CE3] igmp-snooping
[CE3-igmp-snooping] quit
# Create VLAN 100, and assign HundredGigE 1/0/2 to VLAN100.
[CE3] vlan 100
[CE3-vlan100] port hundredgige 1/0/2
# In VLAN 100, enable IGMP snooping, and dropping unknown multicast data.
[CE3-vlan100] igmp-snooping enable
[CE3-vlan100] igmp-snooping drop-unknown
# Configure HundredGigE 1/0/1 as a trunk port, and assign it to VLAN 100.
[CE3] interface hundredgige 1/0/1
[CE3-HundredGigE1/0/1] port link-type trunk
[CE3-HundredGigE1/0/1] port trunk permit vlan 100
[CE3-HundredGigE1/0/1] quit
6.
Configure PE 1:
# Configure the LSR ID as 1.1.1.1 for the local node, and enable L2VPN and LDP.
<PE1> system-view
[PE1] mpls lsr-id 1.1.1.1
[PE1] l2vpn enable
[PE1] mpls ldp
[PE1-ldp] quit
# Enable MPLS and LDP on VLAN-interface 101.