This section provides an example for configuring IPv6 user-side multicast for PPPoE access users.
On the network shown in Figure 1, users (PC1) are PPPoE access users, and they want to join multicast programs. Configure IPv6 user-side multicast to implement user-based on-demand multicast data forwarding.
The configuration roadmap is as follows:
Configure Authentication, Authorization and Accounting (AAA) schemes.
Configure a local IPv6 prefix pool.
Configure a local IPv6 address pool and bind the local IPv6 prefix pool to the local address pool.
Configure an AAA domain and bind it to the IPv6 address pool.
Configure the PPPoE access mode:
Configure a virtual template (VT) interface.
Bind a VT to an interface.
Bind a sub-interface to a VLAN.
Configure a BAS interface and specify a user access type for the interface.
Configure a multicast replication mode. Multicast replication by multicast VLAN is used as an example.
Configure basic multicast functions:
Enable IPv6 multicast routing.
Enable IPv6 PIM-SM on all BRAS interfaces.
Enable MLD on the BRAS interface connected to users.
Local prefix pool, address prefix, and prefix length parameters
Local address pool parameters
Authentication and accounting schemes
# Configure an authentication scheme.
<HUAWEI> system-view [HUAWEI] sysname BRAS [*HUAWEI] commit [~BRAS] aaa [*BRAS-aaa] authentication-scheme none [*BRAS-aaa-authen-none] authentication-mode none [*BRAS-aaa-authen-none] quit [*BRAS-aaa] commit
# Configure an accounting scheme.
[~BRAS-aaa] accounting-scheme none [*BRAS-aaa-accounting-none] accounting-mode none [*BRAS-aaa-accounting-none] quit [*BRAS-aaa] quit [*BRAS] commit
[~BRAS] ipv6 prefix ipv6 local [*BRAS-ipv6-prefix-ipv6] prefix 2001::db8:1::/64 [*BRAS-ipv6-prefix-ipv6] quit [*BRAS] commit
[~BRAS] ipv6 pool ipv6 bas local [*BRAS-ipv6-pool-ipv6] prefix ipv6 [*BRAS-ipv6-pool-ipv6] quit [*BRAS] commit
[~BRAS] aaa [*BRAS-aaa] domain wdomain [*BRAS-aaa-domain-wdomain] authentication-scheme none [*BRAS-aaa-domain-wdomain] accounting-scheme none [*BRAS-aaa-domain-wdomain] ipv6-pool ipv6 [*BRAS-aaa-domain-wdomain] quit [*BRAS-aaa] quit [*BRAS] commit
[~BRAS] interface virtual-template 100 [*BRAS-Virtual-Template100] ppp authentication-mode chap [*BRAS-Virtual-Template100] quit [*BRAS] commit
[~BRAS] interface gigabitethernet 0/1/1.1 [*BRAS-GigabitEthernet0/1/1.1] user-vlan 133 [*BRAS-GigabitEthernet0/1/1.1-vlan-133-133] quit [*BRAS-GigabitEthernet0/1/1.1] pppoe-server bind virtual-template 100 [*BRAS-GigabitEthernet0/1/1.1] commit
[~BRAS-GigabitEthernet0/1/1.1] bas [*BRAS-GigabitEthernet0/1/1.1-bas] access-type layer2-subscriber default-domain authentication wdomain [*BRAS-GigabitEthernet0/1/1.1-bas] quit [*BRAS-GigabitEthernet0/1/1.1] quit [*BRAS] commit
[~BRAS] display access-user domain wdomain ------------------------------------------------------------------------------ UserID Username Interface IP address MAC Vlan IPv6 address Access type ------------------------------------------------------------------------------ 65 spirent33@wdomain GE0/1/1.1 - 00-e0-fc-12-34-56 133/- 2001::db8:1::10:CC00:200:27E9 PPPoE ------------------------------------------------------------------------------ Normal users : 1 RUI Local users : 0 RUI Remote users : 0 Total users : 1
[~BRAS] interface gigabitethernet 0/1/1.1 [*BRAS-GigabitEthernet0/1/1.1] multicast user-aggregation vlan 81 [*BRAS-GigabitEthernet0/1/1.1] commit [~BRAS-GigabitEthernet0/1/1.1] quit
[~BRAS] multicast ipv6 routing-enable [*BRAS] interface gigabitethernet 0/1/0 [*BRAS-GigabitEthernet0/1/0] undo shutdown [*BRAS-GigabitEthernet0/1/0] ipv6 enable [*BRAS-GigabitEthernet0/1/0] ipv6 address 2001:db8:1::1/64 [*BRAS-GigabitEthernet0/1/0] pim ipv6 sm [*BRAS-GigabitEthernet0/1/0] quit [*BRAS] commit [~BRAS] interface gigabitethernet 0/1/1.1 [~BRAS-GigabitEthernet0/1/1.1] ipv6 enable [*BRAS-GigabitEthernet0/1/1.1] ipv6 address auto link-local [*BRAS-GigabitEthernet0/1/1.1] pim ipv6 sm [*BRAS-GigabitEthernet0/1/1.1] mld enable [*BRAS-GigabitEthernet0/1/1.1] quit [*BRAS] commit
[~BRAS] display multicast group-ip FF18::1 out-interface GigabitEthernet 0/1/1.1 User ID User IP User type Interface 65 2001::db8:1::10:CC00:200:27E9 Local GigabitEthernet0/1/1.1 Local user number :1 Remote user number:0 Total user number :1
[~BRAS] display multicast user-id 65 User information: User ID :65 User IPv6 address :2001::db8:1::10:CC00:200:27E9 Gateway IPv6 address:FE80::200:14FF:FE00:571 BRAS interface :GigabitEthernet0/1/1.1 User MAC-address :00-e0-fc-12-34-56 MAX program list :4 User order program: Group IP Source IP FF18::1 :: Total:1
[~BRAS] display pim ipv6 routing-table VPN-Instance: public net Total 1 (*, G) entry; 1 (S, G) entry (*, FF18::1) RP: NULL Protocol: pim-sm, Flag: WC NIIF UpTime: 00:01:31 Upstream interface: NULL, Refresh time: 00:01:31 Upstream neighbor: NULL RPF prime neighbor: NULL Downstream interface(s) information: Total number of downstreams: 1 1: GigabitEthernet0/1/1(bas) Protocol: mld, UpTime: 00:01:31, Expires: - (2001:db8:1::2, FF18::1) RP: NULL Protocol: pim-sm, Flag: SPT LOC ACT UpTime: 01:39:59 Upstream interface: GigabitEthernet0/1/0, Refresh time: 01:39:59 Upstream neighbor: NULL RPF prime neighbor: NULL Downstream interface(s) information: Total number of downstreams: 1 1: GigabitEthernet0/1/1(bas) Protocol: pim-sm, UpTime: 00:01:31, Expires: -
# sysname BRAS # multicast ipv6 routing-enable # aaa # authentication-scheme none authentication-mode none # accounting-scheme none accounting-mode none # domain wdomain authentication-scheme none accounting-scheme none ipv6-pool ipv6 # interface Virtual-Template100 ppp authentication-mode chap # interface GigabitEthernet0/1/0 undo shutdown ipv6 enable ipv6 address 2001:db8:1::1/64 pim ipv6 sm # interface GigabitEthernet0/1/1.1 ipv6 enable ipv6 address auto link-local user-vlan 133 pppoe-server bind Virtual-Template 100 pim ipv6 sm mld enable multicast user-aggregation vlan 81 bas # access-type layer2-subscriber default-domain authentication wdomain # # ipv6 prefix ipv6 local prefix 2001::db8:1::/64 # ipv6 pool ipv6 bas local prefix ipv6 # return