This section provides an example for configuring multicast services for layer 3 leased line users accessing from BAS interface.
On the network shown in Figure 1, multicast users are layer 3 leased line access users, and they want to join multicast groups.
The configuration roadmap is as follows (on BRAS device):
Configure Authentication, Authorization and Accounting (AAA) schemes.
Configure a domain.
Configure layer 3 lease line for multicast users.
Configure basic multicast functions:
Enable multicast routing.
Enable PIM-SM on the BAS interface.
Enable IGMP on the BAS interface connected to users on CE.
[~BRAS] radius enable [*BRAS] radius-server group rd1 [*BRAS-radius-rd1] radius-server authentication 10.1.4.15 1812 [*BRAS-radius-rd1] radius-server accounting 10.1.4.15 1813 [*BRAS-radius-rd1] quit [*BRAS-aaa] commit
# Configure an authentication scheme.
[~BRAS] aaa [*BRAS-aaa] authentication-scheme 1 [*BRAS-aaa-authen-1] authentication-mode radius [*BRAS-aaa-authen-1] quit [*BRAS-aaa] commit
# Configure an accounting scheme.
[~BRAS-aaa] accounting-scheme 1 [*BRAS-aaa-accounting-1] accounting-mode radius [*BRAS-aaa-accounting-1] quit [*BRAS-aaa] quit [*BRAS] commit
[~BRAS] aaa [*BRAS-aaa] domain l3 [*BRAS-aaa-domain-l3] authentication-scheme 1 [*BRAS-aaa-domain-l3] accounting-scheme 1 [*BRAS-aaa-domain-l3] radius-server group rd1 [*BRAS-aaa-domain-l3] quit [*BRAS-aaa] quit [*BRAS] commit
[~BRAS-GigabitEthernet0/1/2.1] bas [*BRAS-GigabitEthernet0/1/2.1-bas] access-type layer3-leased-line user-name layer3 password cipher Huawei_123 default-domain authentication l3 [*BRAS-GigabitEthernet0/1/2.1-bas] quit [*BRAS-GigabitEthernet0/1/2.1] commit
Configure basic multicast functions on the BRAS device.
[~BRAS] multicast routing-enable [*BRAS] interface gigabitethernet 0/1/1 [*BRAS-GigabitEthernet0/1/0] undo shutdown [*BRAS-GigabitEthernet0/1/0] ip address 10.1.1.1 255.255.255.0 [*BRAS-GigabitEthernet0/1/0] pim sm [*BRAS-GigabitEthernet0/1/0] quit [*BRAS] commit [~BRAS] interface gigabitethernet 0/1/2.1 [*BRAS-GigabitEthernet0/1/1.1] ip address 10.1.3.1 255.255.255.0 [*BRAS-GigabitEthernet0/1/1.1] pim sm [*BRAS-GigabitEthernet0/1/1.1] quit [*BRAS] commit
Configure basic multicast functions on CE.
[~CE] multicast routing-enable [*CE] interface gigabitethernet 0/1/1 [*CE-GigabitEthernet0/1/1] undo shutdown [*CE-GigabitEthernet0/1/1] ip address 10.1.3.2 255.255.255.0 [*CE-GigabitEthernet0/1/1] pim sm [*CE-GigabitEthernet0/1/1] quit [*CE] interface gigabitethernet 0/1/3 [*CE-GigabitEthernet0/1/3] undo shutdown [*CE-GigabitEthernet0/1/3] ip address 10.1.5.1 255.255.255.0 [*CE-GigabitEthernet0/1/3] pim sm [*CE-GigabitEthernet0/1/3] igmp enable [*CE-GigabitEthernet0/1/3] quit [*CE] commit
[~BRAS] display access-user domain l3 ------------------------------------------------------------------------------ UserID Username Interface IP address MAC Vlan IPv6 address Access type ------------------------------------------------------------------------------ 1280 layer3@l3 GE0/1/2.1 - - -/- - Layer3_lease_line ------------------------------------------------------------------------------ Normal users : 1 RUI Local users : 0 RUI Remote users : 0 Total users : 1
BRAS configuration file
# sysname BRAS # multicast routing-enable # radius enable # radius-server group rd1 radius-server authentication 10.1.4.15 1812 radius-server accounting 10.1.4.15 1813 # aaa # authentication-scheme 1 authentication-mode radius # accounting-scheme 1 accounting-mode radius # domain l3 authentication-scheme 1 accounting-scheme 1 radius-server group rd1 # interface GigabitEthernet0/1/1 undo shutdown ip address 10.1.1.1 255.255.255.0 pim sm # interface GigabitEthernet0/1/2.1 undo shutdown ip address 10.1.3.1 255.255.255.0 encapsulation dot1q-termination dot1q termination vid 10 pim sm bas # access-type layer3-leased-line user-name layer3 password cipher %^%#2hXm~)DX,6jjtH#jL!~:Vcg/@e"^Y0bxG default-domain authentication l3 # interface GigabitEthernet0/1/3 undo shutdown ip address 10.1.4.1 255.255.255.0 # interface LoopBack0 ip address 1.1.1.1 255.255.255.255 pim sm # ospf 1 area 0.0.0.0 network 10.1.1.0 255.255.255.0 network 10.1.3.0 255.255.255.0 network 10.1.4.0 255.255.255.0 network 1.1.1.1 255.255.255.255 # pim c-bsr LoopBack0 c-rp LoopBack0 # return
CE configuration file
# sysname CE # multicast routing-enable # interface GigabitEthernet0/1/1 undo shutdown ip address 10.1.3.2 255.255.255.0 pim sm # interface GigabitEthernet0/1/3 undo shutdown ip address 10.1.5.1 255.255.255.0 pim sm igmp enable # ospf 1 area 0.0.0.0 network 10.1.3.0 255.255.255.0 network 10.1.5.0 255.255.255.0 # return