Example for Configuring Static Multicast for IPoE Access Users
This section provides an example for configuring static multicast for IPoE access users. The example provides the networking requirements, configuration roadmap, configuration procedure, and configuration files.
Networking Requirements
On the network shown in Figure 14-12, PC 1 and PC 2 belong to the domain named ipv4, and they support the IPoE access mode. Configure static multicast to meet the following requirements:
PC 1 and PC 2 can access the network through GE 1/0/0 on the BRAS in IPoE mode.
The BRAS does not authenticate or perform accounting for PC 1 and PC 2.
NOTE:
Authentication scheme: RADIUS or none
Accounting scheme: RADIUS or none
PC 1 and PC 2 can receive traffic of the multicast groups 225.1.1.1 and 227.1.1.1.
The BRAS uses GE 1/0/0 to communicate with the access network device and uses GE 1/0/1 and GE 1/0/2 to communicate with the PIM-SM devices.
Configuration Roadmap
The configuration roadmap is as follows:
Configure an IPv4 address pool.
Configure AAA schemes.
Configure an AAA domain.
Configure the IPoE user access service:
Configure an authentication scheme.
Configure a BAS interface and specify a user access type for the interface.
Enable multicast traffic replication by session on the BAS interface.
Configure basic multicast functions:
Enable multicast routing.
Enable PIM-SM on all interfaces of the BRAS.
Enable IGMP on the BRAS interface connected to users.
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.
Data Preparation
IPv4 address pool name, address range, and gateway address
Authentication and accounting schemes
Name of the domain to which users belong
BAS interface parameters
Procedure
- Configure an IPv4 address pool.
<HUAWEI> system-view [~HUAWEI] sysname BRAS [*HUAWEI] commit [~BRAS] ip pool ipv4 bas local [~BRAS-ip-pool-ipv4] gateway 10.0.0.1 255.255.0.0 [~BRAS-ip-pool-ipv4] section 1 10.0.0.1 10.0.255.255 [~BRAS-ip-pool-ipv4] quit
- Configure AAA schemes.
# Configure an authentication scheme.
[~BRAS] aaa [~BRAS-aaa] authentication-scheme none [*BRAS-aaa-authen-none] authentication-mode none [*BRAS-aaa-authen-none] commit [~BRAS-aaa-authen-none] quit
# Configure an accounting scheme.
[~BRAS-aaa] accounting-scheme none [*BRAS-aaa-accounting-none] accounting-mode none [*BRAS-aaa-accounting-none] commit [~BRAS-aaa-accounting-none] quit [~BRAS-aaa] quit
- Configure an AAA domain.
[~BRAS] aaa [~BRAS-aaa] domain ipv4 [*BRAS-aaa-domain-ipv4] commit [~BRAS-aaa-domain-ipv4] authentication-scheme none [*BRAS-aaa-domain-ipv4] accounting-scheme none [*BRAS-aaa-domain-ipv4] commit [~BRAS-aaa-domain-ipv4] ip-pool ipv4 [~BRAS-aaa-domain-ipv4] quit [~BRAS-aaa] quit
- Configure a BAS interface, specify a user access type for
the interface, and configure an authentication method.
[~BRAS-GigabitEthernet1/0/0] bas [~BRAS-GigabitEthernet1/0/0-bas] access-type layer2-subscriber default-domain authentication ipv4 [~BRAS-GigabitEthernet1/0/0-bas] authentication-method bind [~BRAS-GigabitEthernet1/0/0-bas] quit
- Enable multicast traffic replication by session on the
BAS interface.
[~BRAS-GigabitEthernet1/0/0] bas [*BRAS-GigabitEthernet1/0/0-bas] multicast copy by-session [*BRAS-GigabitEthernet1/0/0-bas] commit [~BRAS-GigabitEthernet1/0/0-bas] quit [~BRAS-GigabitEthernet1/0/0] quit
- Configure basic multicast functions.
[~BRAS] multicast routing-enable [*BRAS] interface gigabitethernet 1/0/1 [*BRAS-GigabitEthernet1/0/1] ip address 10.1.1.1 255.255.255.0 [*BRAS-GigabitEthernet1/0/1] pim sm [*BRAS-GigabitEthernet1/0/1] quit [*BRAS] interface GigabitEthernet 1/0/2 [*BRAS-GigabitEthernet1/0/2] ip address 10.1.2.1 255.255.255.0 [*BRAS-GigabitEthernet1/0/2] pim sm [*BRAS-GigabitEthernet1/0/2] quit [*BRAS] commit [~BRAS] interface gigabitethernet 1/0/0 [~BRAS-GigabitEthernet1/0/0] pim sm [*BRAS-GigabitEthernet1/0/0] igmp enable [*BRAS-GigabitEthernet1/0/0] quit [*BRAS] commit
- Configure multicast.
# Configure multicast program lists.
[~BRAS] aaa [~BRAS-aaa] multicast-list list1 group-address 225.1.1.1 [~BRAS-aaa] multicast-list list2 group-address 227.1.1.1
# Configure a multicast profile.
[~BRAS-aaa] multicast-profile profile1 [~BRAS-aaa-mprofile-profile1] multicast-list name list1 static [~BRAS-aaa-mprofile-profile1] multicast-list name list2 static [~BRAS-aaa-mprofile-profile1] quit
# Bind the multicast profile to the AAA domain.
[~BRAS-aaa] domain ipv4 [~BRAS-aaa-domain-ipv4] multicast-profile profile1 [~BRAS-aaa-domain-ipv4] quit [~BRAS-aaa] quit
- Verify the configuration.
# Run the display multicast-profile command to check information about a specified or all multicast profiles.
# Check information about all multicast profiles.
[~BRAS] display multicast-profile --------------------------------------------------------------------- Index Multicast-profile-name IfAuthentic --------------------------------------------------------------------- 0 profile1 Yes --------------------------------------------------------------------- Total: 1
# Check multicast program lists bound to a specified multicast profile.
[~BRAS] display multicast-profile profile1 Profile-name : profile1 If-authentic : Yes Static multicast-list-name : list1 Static multicast-list-name : list2
# Run the display multicast-list command to check information about a specified or all multicast program lists.
# Check information about all multicast program lists.
[~BRAS] display multicast-list Total: 2 --------------------------------------------------------------------- Multicast-list name : list1 Index : 0 Source IP/mask : 255.255.255.255/32 Group IP/mask : 225.1.1.1/32 Group vpn-instance : -- Multicast-list name : list2 Index : 1 Source IP/mask : 255.255.255.255/32 Group IP/mask : 227.1.1.1/32 Group vpn-instance : -- ---------------------------------------------------------------------
# Check information about a specified program list.
[~BRAS] display multicast-list list1 Total: 1 --------------------------------------------------------------------- Multicast-list name : list1 Index : 0 Source IP/mask : 255.255.255.255/32 Group IP/mask : 225.1.1.1/32 Group vpn-instance : -- ---------------------------------------------------------------------
# Have users go online, and then run the display access-user command to check whether user information.
[~BRAS] display access-user username PC1@ipv4 -------------------------------------------------------------------------- UserID Username Interface IP address MAC Vlan IPv6 address Access type -------------------------------------------------------------------------- 1 PC1@ipv4 GE1/0/0 10.0.0.1 0001-010a-0101 -/- - IPOE -------------------------------------------------------------------------- Normal users : 1 RUI Local users : 0 RUI Remote users : 0 Total users : 1 [~BRAS] display access-user username PC2@ipv4 -------------------------------------------------------------------------- UserID Username Interface IP address MAC Vlan IPv6 address Access type -------------------------------------------------------------------------- 2 PC2@ipv4 GE1/0/0 10.0.0.2 000c-0101-0101 -/- - IPOE -------------------------------------------------------------------------- Normal users : 1 RUI Local users : 0 RUI Remote users : 0 Total users : 1
# Run the display multicast user-id command to check the multicast group that a specified user has joined.
[~BRAS] display multicast user-id 1 User information: User ID :1 User IPv4 address :10.0.0.1 Gateway IPv4 address:10.0.0.1 BRAS interface :GigabitEthernet1/0/0 User MAC-address :0001-010a-0101 MAX program list :4 User static program: Group IP Source IP Flag 225.1.1.1 0.0.0.0 Active 227.1.1.1 0.0.0.0 Active Total:2 [~BRAS] display multicast user-id 2 User information: User ID :2 User IPv4 address :10.0.0.2 Gateway IPv4 address:10.0.0.1 BRAS interface :GigabitEthernet1/0/0 User MAC-address :000c-0101-0101 MAX program list :4 User static program: Group IP Source IP Flag 225.1.1.1 0.0.0.0 Active 227.1.1.1 0.0.0.0 Active Total:2
Configuration Files
# sysname BRAS # multicast routing-enable # ip pool ipv4 bas local gateway 10.0.0.1 255.255.0.0 section 1 10.0.0.1 10.0.255.255 # aaa multicast-list list1 index 0 group-address 225.1.1.1 multicast-list list1 index 1 group-address 227.1.1.1 multicast-profile profile1 multicast-list list-index 0 1 static # authentication-scheme none authentication-mode none # accounting-scheme none accounting-mode none # domain ipv4 authentication-scheme none accounting-scheme none ip-pool ipv4 multicast-profile profile1 # interface GigabitEthernet1/0/1 ip address 10.1.1.1 255.255.255.0 pim sm # interface GigabitEthernet1/0/2 ip address 10.1.2.1 255.255.255.0 pim sm # interface GigabitEthernet1/0/0 pim sm igmp enable bas # access-type layer2-subscriber default-domain authentication ipv4 authentication-method bind multicast copy by-session # # return