This section provides an example for configuring IPv6 static multicast for IPoE access users.
On the network shown in Figure 1, the user PC supports the IPoE access mode. Configure static multicast to allow the PC user to receive the traffic of specific multicast programs without sending join messages.
The configuration roadmap is as follows:
Configure 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 IPoE access service:
Configure an authentication scheme.
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 interface + VLAN is used as an example.
Configure basic multicast functions:
Enable IPv6 multicast routing.
Enable IPv6 PIM-SM on the interfaces of the BRAS.
Enable MLD on the BRAS interface connected to the user.
Configure static multicast:
Configure multicast program lists in the AAA view.
Configure a multicast profile in the AAA view.
Bind the multicast profile to the AAA domain.
Local prefix pool, address prefix, and prefix length parameters
Local address pool parameters
Authentication and accounting schemes
User domain parameters
BAS interface parameters
# 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 huawei local [~BRAS-ipv6-prefix-ipv6] prefix 2001::db8:1::/64 [~BRAS-ipv6-prefix-ipv6] quit
[~BRAS] ipv6 pool poolname bas local [~BRAS-ipv6-pool-ipv6] prefix ipv6 [~BRAS-ipv6-pool-ipv6] quit
[~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 poolname [*BRAS-aaa-domain-wdomain] quit [*BRAS-aaa] quit [*BRAS] commit
[~BRAS] interface gigabitethernet 0/1/1.1 [*BRAS-GigabitEthernet0/1/1.1] commit [*BRAS-GigabitEthernet0/1/1.1] user-vlan 133 [*BRAS-GigabitEthernet0/1/1.1-vlan-133-133] quit [*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] authentication-method-ipv6 bind [*BRAS-GigabitEthernet0/1/1.1-bas] quit [*BRAS-GigabitEthernet0/1/1.1] quit [*BRAS] commit
[~BRAS] interface gigabitethernet 0/1/1.1 [~BRAS-GigabitEthernet0/1/1.1] bas [~BRAS-GigabitEthernet0/1/1.1-bas] multicast copy by-vlan [*BRAS-GigabitEthernet0/1/1.1-bas] commit [~BRAS-GigabitEthernet0/1/1.1-bas] 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
# Configure IPv6 multicast program lists.
[~BRAS] aaa [~BRAS-aaa] multicast-list ipv6 list1 group-ipv6-address FF1E::1 [~BRAS-aaa] multicast-list ipv6 list2 group-ipv6-address FF1E::2
# Configure an IPv6 multicast profile.
[~BRAS-aaa] multicast-profile ipv6 name1 [~BRAS-aaa-mprofile-profile1] multicast-list ipv6 listname1 static [~BRAS-aaa-mprofile-profile1] multicast-list ipv6 listname2 static [~BRAS-aaa-mprofile-profile1] quit
# Bind the IPv6 multicast profile to the AAA domain.
[~BRAS-aaa] domain wdomain [~BRAS-aaa-domain-wdomain] multicast-profile ipv6 name1 [~BRAS-aaa-domain-wdomain] quit
Run the display multicast-profile ipv6 command to check information about a specified or all IPv6 multicast profiles.
<HUAWEI> display multicast-profile ipv6
---------------------------------------------------------------------
Index Multicast-profile-name-ipv6 IfAuthentic
---------------------------------------------------------------------
0 name1 Yes
---------------------------------------------------------------------
Total: 1
<HUAWEI> display multicast-profile ipv6 name1
Profile-name-ipv6 : name1
If-authentic : Yes
Static multicast-list-name-ipv6 : listname1
Static multicast-list-name-ipv6 : listname2
Run the display multicast-list ipv6 command to check information about a specified or all IPv6 multicast program lists.
# Check information about all IPv6 multicast program lists.
<HUAWEI> display multicast-list ipv6
Total: 2
---------------------------------------------------------------------
Multicast-list ipv6 name : listname1
Index : 0
Source IPv6/prefix : FFFF:FFFF:FFFF:FFFF:FFFF:FFFF:FFFF:FFFF/128
Group IPv6/prefix : FF1E::1/128
Multicast-list ipv6 name : listname2
Index : 1
Source IPv6/prefix : FFFF:FFFF:FFFF:FFFF:FFFF:FFFF:FFFF:FFFF/128
Group IPv6/prefix : FF1E::2/128
---------------------------------------------------------------------
# Check information about a specified IPv6 multicast program list.
<HUAWEI> display multicast-list ipv6 listname1
---------------------------------------------------------------------
Multicast-list ipv6 name : listname1
Index : 0
Source IPv6/prefix : FFFF:FFFF:FFFF:FFFF:FFFF:FFFF:FFFF:FFFF/128
Group IPv6/prefix : FF1E::1/128
---------------------------------------------------------------------
# Run the display access-user domain wdomain command to check information about users that have gone online. The command output shows that the user with the user ID 65 has gone online in IPoE mode.
[*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 IPoE ------------------------------------------------------------------------------ Normal users : 1 RUI Local users : 0 RUI Remote users : 0 Total users : 1
# Run the display multicast user-id 65 command to check the multicast group that a specified user has joined.
[*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 VLAN :VLAN 133 User static program: Group IP Source IP Flag FF1E::1 :: Active FF1E::2 :: Active Total:1
# sysname BRAS # multicast ipv6 routing-enable # aaa multicast-list ipv6 listname1 index 0 group-ipv6-address FF1E::1 multicast-list ipv6 listname2 index 1 group-ipv6-address FF1E::2 multicast-profile ipv6 name1 multicast-list ipv6 list-index 0 1 static # authentication-scheme none authentication-mode none # accounting-scheme none accounting-mode none # domain wdomain authentication-scheme none accounting-scheme none ipv6-pool poolname multicast-profile ipv6 name1 # interface GigabitEthernet0/1/0 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 pim ipv6 sm mld enable bas # access-type layer2-subscriber default-domain authentication wdomain authentication-method-ipv6 bind multicast copy by-vlan # ipv6 prefix huawei local prefix 2001::db8:1::/64 # ipv6 pool poolname bas local prefix ipv6 # return