- Table of Contents
-
- 07-IP Multicast Configuration Examples
- 01-IGMP Snooping Configuration Examples
- 02-IGMP Configuration Examples
- 03-IPv6 Multicast VLAN Configuration Examples
- 04-MLD Snooping Configuration Examples
- 05-Static Multicast MAC Address Entry Configuration Examples
- 06-Layer 3 Multicast on Multicast Source-Side M-LAG System Configuration Examples
- 07-BIDIR-PIM Configuration Examples
- Related Documents
-
Title | Size | Download |
---|---|---|
06-Layer 3 Multicast on Multicast Source-Side M-LAG System Configuration Examples | 203.25 KB |
Example: Configuring Layer 3 IPv4 multicast on an M-LAG system attached to multicast sources
Applicable hardware and software versions
Assigning IP addresses and configuring unicast routing
Example: Configuring Layer 3 IPv6 multicast on an M-LAG system attached to multicast sources
Applicable hardware and software versions
Assigning IPv6 addresses and configuring unicast routing
Introduction
This document provides examples for configuring Layer 3 multicast on an M-LAG system attached to multicast sources.
Prerequisites
The configuration examples in this document were created and verified in a lab environment, and all the devices were started with the factory default configuration. When you are working on a live network, make sure you understand the potential impact of every command on your network.
This document assumes that you have basic knowledge of M-LAG and Layer 3 multicast.
Example: Configuring Layer 3 IPv4 multicast on an M-LAG system attached to multicast sources
Network configuration
As shown in Figure 1:
· OSPF runs on the network.
· VOD streams are sent to receiver hosts in multicast. The receivers of different subnets form stub networks, and a minimum of one receiver host exist on each stub network.
· The entire PIM-SM domain contains only one BSR.
· Device C is a Layer 2 device attached to the multicast source. Device A and Device B are virtualized into an M-LAG system, which is connected to Device C through a multichassis aggregate link. VLAN-interface 20 interfaces on the M-LAG system are the gateway for the multicast source.
· Host A is a multicast data receiver attached to Device D.
· The Twenty-FiveGigE 1/0/3 interfaces on Device A and Device B are excluded from the shutdown action by M-LAG MAD to set up the keepalive link.
· A VRRP group is configured on VLAN-interface 20 interfaces. In the VRRP group, Device A is the master.
· M-LAG interfaces on Device A and Device B permit packets from VLAN 20 to pass through. PIM is enabled on VLAN-interface 20 of Device A and Device B.
· IP multicast routing is enabled on Device and Device B.
Device |
Interface |
IP address |
Device |
Interface |
IP address |
Device A |
Vlan-int20 |
20.0.0.1/24 |
Device D |
Vlan-int10 |
100.0.0.2/24 |
|
WGE1/0/3 |
200.0.0.1/24 |
|
Vlan-int30 |
300.0.0.2/24 |
|
Vlan-int10 |
100.0.0.1/24 |
|
Vlan-int40 |
200.0.0.2/24 |
|
Loop0 |
1.1.1.1 |
|
|
|
Device B |
Vlan-int20 |
20.0.0.1/24 |
|
|
|
|
WGE1/0/3 |
200.0.0.2/24 |
|
|
|
|
Vlan-int30 |
300.0.0.1/24 |
|
|
|
|
Loop0 |
2.2.2.2 |
|
|
|
Applicable hardware and software versions
The following matrix shows the hardware and software versions to which this configuration example is applicable:
Hardware |
Software version |
S6550X-HI switch series |
Release 1213P51 and later |
S6880 switch series |
Release 1213P51 and later |
S9820-8M switch |
Release 1213P51 and later |
S5580X-HI switch series |
Release 1213P50 and later |
S5580X-EI switch series |
Release 1213P50 and later |
S5580S-EI switch series |
Release 1213P50 and later |
Procedures
Assigning IP addresses and configuring unicast routing
Assign an IP address and subnet mask to each interface as shown in Figure 1, and configure OSPF on the devices in the PIM-SM domain. (Details not shown.)
Configuring Device A
# Configure the M-LAG system settings.
<DeviceA> system-view
[DeviceA] m-lag system-mac 1-1-1
[DeviceA] m-lag system-number 1
[DeviceA] m-lag system-priority 123
# Configure M-LAG keepalive packet parameters.
[DeviceA] m-lag keepalive ip destination 200.0.0.2 source 200.0.0.1
# Exclude the interface used for M-LAG keepalive detection (Twenty-FiveGigE 1/0/3) from the shutdown action by M-LAG MAD.
[DeviceA] m-lag mad exclude interface twenty-fivegige 1/0/3
# Create Layer 2 dynamic aggregate interface Bridge-Aggregation 1.
[DeviceA] interface bridge-aggregation 1
[DeviceA-Bridge-Aggregation1] link-aggregation mode dynamic
[DeviceA-Bridge-Aggregation1] quit
# Assign Twenty-FiveGigE 1/0/1 and Twenty-FiveGigE 1/0/2 to aggregation group 1.
[DeviceA] interface twenty-fivegige 1/0/1
[DeviceA-Twenty-FiveGigE1/0/1] port link-aggregation group 1
[DeviceA-Twenty-FiveGigE1/0/1] quit
[DeviceA] interface twenty-fivegige 1/0/2
[DeviceA-Twenty-FiveGigE1/0/2] port link-aggregation group 1
[DeviceA-Twenty-FiveGigE1/0/2] quit
# Create Layer 2 dynamic aggregate interface Bridge-Aggregation 2.
[DeviceA] interface bridge-aggregation 2
[DeviceA-Bridge-Aggregation2] link-aggregation mode dynamic
[DeviceA-Bridge-Aggregation2] quit
# Assign Twenty-FiveGigE 1/0/5 and Twenty-FiveGigE 1/0/6 to aggregation group 1.
[DeviceA] interface twenty-fivegige 1/0/5
[DeviceA-Twenty-FiveGigE1/0/5] port link-aggregation group 2
[DeviceA-Twenty-FiveGigE1/0/5] quit
[DeviceA] interface twenty-fivegige 1/0/6
[DeviceA-Twenty-FiveGigE1/0/6] port link-aggregation group 2
[DeviceA-Twenty-FiveGigE1/0/6] quit
# Configure Bridge-Aggregation 1 as a trunk port, assign it to all VLANs, and specify it as the IPP.
[DeviceA] interface bridge-aggregation 1
[DeviceA-Bridge-Aggregation1] port link-type trunk
[DeviceA-Bridge-Aggregation1] port trunk permit vlan all
[DeviceA-Bridge-Aggregation1] port m-lag peer-link 1
[DeviceA-Bridge-Aggregation1] quit
# Configure Bridge-Aggregation 2 as a trunk port, and assign it to VLAN 20 and an M-LAG group.
[DeviceA] interface bridge-aggregation 2
[DeviceA-Bridge-Aggregation2] port link-type trunk
[DeviceA-Bridge-Aggregation2] port trunk permit vlan 20
[DeviceA-Bridge-Aggregation2] port m-lag group 1
[DeviceA-Bridge-Aggregation2] quit
# Configure VRRP group 1 on VLAN-interface 20, and set the priority of Device A to 200 for it to be the master in the VRRP group.
[DeviceA] vlan 20
[DeviceA-vlan20] quit
[DeviceA] interface vlan-interface 20
[DeviceA-Vlan-interface20] vrrp vrid 1 virtual-ip 100.0.0.10
[DeviceA-Vlan-interface20] vrrp vrid 1 priority 200
[DeviceA-Vlan-interface20] quit
# Enable IP multicast routing, enable IGMP and PIM on VLAN-interface 10, and enable PIM-SM on other interfaces as required.
[DeviceA] multicast routing
[DeviceA-mrib] quit
[DeviceA] interface vlan-interface 10
[DeviceA-Vlan-interface10] pim sm
[DeviceA-Vlan-interface10] quit
[DeviceA] interface vlan-interface 20
[DeviceA-Vlan-interface20] pim sm
[DeviceA-Vlan-interface20] quit
[DeviceA] interface loopback 0
[DeviceA-LoopBack0] pim sm
[DeviceA-LoopBack0] quit
# Specify the IP address of Loopback 0 as a C-RP and a C-BSR.
[DeviceA] pim
[DeviceA-pim] c-rp 1.1.1.1
[DeviceA-pim] c-bsr 1.1.1.1
[DeviceA-pim] quit
Configuring Device B
Configure Device B in the same way you configure Device A. (Details not shown.)
Configuring Device C
# Create Layer 2 dynamic aggregate interface Bridge-Aggregation 2.
<DeviceC> system-view
[DeviceC] interface bridge-aggregation 2
[DeviceC-Bridge-Aggregation2] link-aggregation mode dynamic
[DeviceC-Bridge-Aggregation2] quit
# Assign Twenty-FiveGigE 1/0/1 through Twenty-FiveGigE 1/0/4 to aggregation group 1.
[DeviceC] interface range twenty-fivegige 1/0/1 to twenty-fivegige 1/0/4
[DeviceC-if-range] port link-aggregation group 1
[DeviceC-if-range] quit
# Configure Bridge-Aggregation 2 as a trunk port, and assign it to VLAN 20.
[DeviceC] interface bridge-aggregation 1
[DeviceC-Bridge-Aggregation1] port link-type trunk
[DeviceC-Bridge-Aggregation1] port trunk permit vlan 20
[DeviceC-Bridge-Aggregation1] quit
# Assign Twenty-FiveGigE 1/0/5 to VLAN 20.
[DeviceC] interface twenty-fivegige 1/0/5
[DeviceC-Twenty-FiveGigE1/0/5] port access vlan 20
[DeviceC-Twenty-FiveGigE1/0/5] quit
Configuring Device D
# Assign Twenty-FiveGigE 1/0/1, Twenty-FiveGigE 1/0/2, and Twenty-FiveGigE 1/0/3 to VLAN 10, VLAN 30, and VLAN 40, respectively.
<DeviceD> system-view
[DeviceD] vlan 10
[DeviceD-vlan10] quit
[DeviceD] interface twenty-fivegige1/0/1
[DeviceD-Twenty-FiveGigE1/0/1] port access vlan 10
[DeviceD-Twenty-FiveGigE1/0/1] quit
[DeviceD] vlan 40
[DeviceD-vlan40] quit
[DeviceD] interface twenty-fivegige1/0/3
[DeviceD-Twenty-FiveGigE1/0/3] port access vlan 40
[DeviceD] vlan 30
[DeviceD-vlan30] quit
[DeviceD] interface twenty-fivegige1/0/2
[DeviceD-Twenty-FiveGigE1/0/2] port access vlan 30
# Enable IP multicast routing, and enable PIM-SM on VLAN-interface 10 and VLAN-interface 30.
[DeviceD] multicast routing
[DeviceD-mrib] quit
[DeviceD] interface vlan-interface 10
[DeviceD-Vlan-interface10] pim sm
[DeviceD-Vlan-interface10] quit
[DeviceD] vlan 30
[DeviceD-vlan30] quit
[DeviceD] interface vlan-interface 30
[DeviceD-Vlan-interface10] pim sm
[DeviceD-Vlan-interface10] quit
# Enable IGMPv2 on VLAN-interface 40.
[DeviceD] interface vlan-interface 40
[DeviceD-Vlan-interface40] igmp enable
[DeviceD-Vlan-interface40] igmp version 2
[DeviceD-Vlan-interface40] quit
Verifying the configuration
# Verify that Device B sends and receives keepalive packets correctly.
<DeviceB> display m-lag keepalive
Neighbor keepalive link status (cause): Up
Neighbor is alive for: 176 s 237 ms
Keepalive packet transmission status:
Sent: Successful
Received: Successful
Last received keepalive packet information:
Source IP address: 200.0.0.1
Time: 2021/12/21 15:12:43
Action: Accept
Distributed relay keepalive parameters:
Destination IP address: 200.0.0.1
Source IP address: 200.0.0.2
Keepalive UDP port : 6400
Keepalive VPN name : N/A
Keepalive interval : 1000 ms
Keepalive timeout : 5 sec
Keepalive hold time: 3 sec
# Verify that interfaces used by M-LAG operate correctly on Device B.
<DeviceB> display m-lag summary
Flags: A -- Aggregate interface down, B -- No peer DR interface configured
C -- Configuration consistency check failed
IPP: BAGG1
IPP state (cause): UP
Keepalive link state (cause): UP
DR interface information
DR interface DR group Local state (cause) Peer state Remaining down time(s)
BAGG2 1 UP UP -
# Verify that the M-LAG interface on Device B operates correctly.
<DeviceB> display link-aggregation verbose bridge-aggregation 2
Loadsharing Type: Shar -- Loadsharing, NonS -- Non-Loadsharing
Port Status: S -- Selected, U -- Unselected, I -- Individual
Port: A -- Auto port, M -- Management port, R -- Reference port
Flags: A -- LACP_Activity, B -- LACP_Timeout, C -- Aggregation,
D -- Synchronization, E -- Collecting, F -- Distributing,
G -- Defaulted, H -- Expired
Aggregate Interface: Bridge-Aggregation2
Creation Mode: Manual
Aggregation Mode: Dynamic
Loadsharing Type: Shar
Management VLANs: None
System ID: 0x7b, 0001-0001-0001
Local:
Port Status Priority Index Oper-Key Flag
WGE1/0/5(R) S 32768 32770 40001 {ACDEF}
WGE1/0/6 S 32768 32770 40001 {ACDEF}
Remote:
Actor Priority Index Oper-Key SystemID Flag
WGE1/0/5 32768 2 1 0x8000, 84c4-42e5-0300 {ACDEF}
WGE1/0/6 32768 2 1 0x8000, 84c4-42e5-0300 {ACDEF}
# Verify that the IGMP group information on Device D is correct.
<DeviceD> display igmp group
IGMP groups in total: 1
Vlan-interface40(100.0.0.2):
IGMP groups reported in total: 1
Group address Last reporter Uptime Expires
225.0.0.1 100.0.0.10 00:02:04 00:01:15
# Verify that PIM routing entries have been created on Device B.
<DeviceB> display pim routing-table
Total 1 (*, G) entries; 1 (S, G) entries
(*, 225.0.0.1)
RP: 2.2.2.2 (local)
Protocol: pim-sm, Flag: WC
UpTime: 00:00:20
Upstream interface: Register-Tunnel0
Upstream neighbor: NULL
RPF prime neighbor: NULL
Downstream interface information:
Total number of downstream interfaces: 1
1: Vlan-interface30
Protocol: pim-sm, UpTime: 00:00:20, Expires: -
(20.0.0.2, 225.0.0.1)
RP: 2.2.2.2 (local)
Protocol: pim-sm, Flag: SPT ACT 2MVPN
UpTime: 00:00:19
Upstream interface: Vlan-interface20
Upstream neighbor: NULL
RPF prime neighbor: NULL
Downstream interface information:
Total number of downstream interfaces: 1
1: Vlan-interface30
Protocol: pim-sm, UpTime: 00:00:19, Expires: -
# Verify that multicast forwarding entries have been created on Device B.
<DeviceB> display multicast forwarding-table
Total 1 entries, 1 matched
00001. (20.0.0.2, 225.0.0.1)
Flags: 0x0
Uptime: 00:00:55, Timeout in: 00:03:18
Incoming interface: Vlan-interface20
List of 1 outgoing interfaces:
1: Vlan-interface30
Matched 1293 packets(36204 bytes), Wrong If 0 packets
Forwarded 1291 packets(36148 bytes)
# Verify that Device A does not create PIM routing entries or multicast forwarding entries, which indicates that Device B forwards all multicast traffic to the receiver. (Details not shown.)
Configuration files
· Device A:
#
sysname DeviceA
#
ospf 1
router-id 2.2.2.2
area 0.0.0.0
#
vlan 1
#
vlan 10
#
vlan 20
#
interface Bridge-Aggregation1
port link-type trunk
port trunk permit vlan all
link-aggregation mode dynamic
port m-lag peer-link 1
#
interface Bridge-Aggregation2
port link-type trunk
port trunk permit vlan 1 20
link-aggregation mode dynamic
port m-lag group 1
#
interface LoopBack0
ospf 1 area 0.0.0.0
pim sm
ip address 1.1.1.1 255.255.255.255
#
interface Vlan-interface10
ospf 1 area 0.0.0.0
pim sm
ip address 100.0.0.1 255.255.255.0
#
interface Vlan-interface20
ospf 1 area 0.0.0.0
pim sm
ip address 20.0.0.1 255.255.255.0
vrrp vrid 1 virtual-ip 100.0.0.10
vrrp vrid 1 priority 200
#
interface Twenty-FiveGigE1/0/3
ospf 1 area 0.0.0.0
ip address 200.0.0.1 255.255.255.0
#
interface Twenty-FiveGigE1/0/5
port link-type trunk
port trunk permit vlan 1 20
port link-aggregation group 2
#
interface Twenty-FiveGigE1/0/6
port link-type trunk
port trunk permit vlan 1 20
port link-aggregation group 2
#
interface Twenty-FiveGigE1/0/4
port access vlan 10
#
interface Twenty-FiveGigE1/0/1
port link-type trunk
port trunk permit vlan all
port link-aggregation group 1
#
interface Twenty-FiveGigE1/0/2
port link-type trunk
port trunk permit vlan all
port link-aggregation group 1
#
multicast routing
#
pim
c-bsr 1.1.1.1
c-rp 1.1.1.1
#
m-lag system-mac 0001-0001-0001
m-lag system-number 1
m-lag system-priority 123
m-lag keepalive ip destination 200.0.0.2 source 200.0.0.1
m-lag mad exclude interface Twenty-FiveGigE1/0/3
#
· Device B:
#
sysname DeviceB
#
ospf 1
router-id 3.3.3.3
area 0.0.0.0
area 0.0.0.9
#
vlan 20
#
vlan 30
#
interface Bridge-Aggregation1
port link-type trunk
port trunk permit vlan all
link-aggregation mode dynamic
port m-lag peer-link 1
#
interface Bridge-Aggregation2
port link-type trunk
port trunk permit vlan 1 20
link-aggregation mode dynamic
port m-lag group 1
#
interface LoopBack0
ospf 1 area 0.0.0.0
pim sm
ip address 2.2.2.2/32
#
interface Vlan-interface20
ospf 1 area 0.0.0.0
pim sm
ip address 20.0.0.1 255.255.255.0
vrrp vrid 1 virtual-ip 100.0.0.10
vrrp vrid 1 priority 100
#
interface Vlan-interface30
ospf 1 area 0.0.0.0
pim sm
ip address 300.0.0.1 255.255.255.0
#
interface Twenty-FiveGigE1/0/3
ospf 1 area 0.0.0.0
ip address 200.0.0.2 255.255.255.0
#
interface Twenty-FiveGigE1/0/5
port link-type trunk
port trunk permit vlan 1 20
port link-aggregation group 2
#
interface Twenty-FiveGigE1/0/6
port link-type trunk
port trunk permit vlan 1 20
port link-aggregation group 2
#
interface Twenty-FiveGigE1/0/4
port access vlan 30
#
interface Twenty-FiveGigE1/0/1
port link-type trunk
port trunk permit vlan all
port link-aggregation group 1
#
interface Twenty-FiveGigE1/0/2
port link-type trunk
port trunk permit vlan all
port link-aggregation group 1
#
multicast routing
#
pim
c-bsr 1.1.1.1
c-rp 1.1.1.1
#
m-lag system-mac 0001-0001-0001
m-lag system-number 2
m-lag system-priority 123
m-lag keepalive ipv6 destination 200.0.0.1 source 200.0.0.2
m-lag mad exclude interface Twenty-FiveGigE1/0/3
#
· Device C:
#
sysname DeviceC
#
vlan 1
#
vlan 20
#
interface LoopBack1
ip address 3.3.3.3 255.255.255.255
#
interface Bridge-Aggregation2
port link-type trunk
port trunk permit vlan 1 20
link-aggregation mode dynamic
#
interface Twenty-FiveGigE1/0/5
port access vlan 20
#
interface Twenty-FiveGigE1/0/1
port link-type trunk
port trunk permit vlan 1 20
port link-aggregation group 2
#
interface Twenty-FiveGigE1/0/2
port link-type trunk
port trunk permit vlan 1 20
port link-aggregation group 2
#
interface Twenty-FiveGigE1/0/3
port link-type trunk
port trunk permit vlan 1 20
port link-aggregation group 2
#
interface Twenty-FiveGigE1/0/4
port link-type trunk
port trunk permit vlan 1 20
port link-aggregation group 2
· Device D:
#
sysname DeviceD
#
ospf 1
router-id 4.4.4.4
area 0.0.0.0
#
vlan 10
#
vlan 40
#
vlan 30
#
interface Vlan-interface10
ospf 1 area 0.0.0.0
pim sm
ip address 100.0.0.2 255.255.255.0
#
interface Vlan-interface40
ospf 1 area 0.0.0.0
ip address 200.0.0.2 255.255.255.0
igmp enable
igmp version 2
#
interface Vlan-interface30
ospf 1 area 0.0.0.0
pim sm
ip address 300.0.0.2 255.255.255.0
#
interface Twenty-FiveGigE1/0/3
port access vlan 40
#
interface Twenty-FiveGigE1/0/1
port access vlan 10
#
interface Twenty-FiveGigE1/0/2
port access vlan 30
#
multicast routing
#
Example: Configuring Layer 3 IPv6 multicast on an M-LAG system attached to multicast sources
Network configuration
As shown in Figure 2:
· OSPFv3 runs on the network.
· VOD streams are sent to receiver hosts in multicast. The receivers of different subnets form stub networks, and a minimum of one receiver host exist on each stub network.
· The entire IPv6 PIM-SM domain contains only one BSR.
· Device C is a Layer 2 device attached to the multicast source. Device A and Device B are virtualized into an M-LAG system, which is connected to Device C through a multichassis aggregate link. VLAN-interface 20 interfaces on the M-LAG system are the gateway for the multicast source.
· Host A is a multicast data receiver attached to Device D.
· The Twenty-FiveGigE 1/0/3 interfaces on Device A and Device B are excluded from the shutdown action by M-LAG MAD to set up the keepalive link.
· A VRRP group is configured on VLAN-interface 20 interfaces. In the VRRP group, Device A is the master.
· M-LAG interfaces on Device A and Device B permit packets from VLAN 20 to pass through. PIM is enabled on VLAN-interface 20 of Device A and Device B.
· IPv6 multicast routing is enabled on Device A and Device B.
Device |
Interface |
IP address |
Device |
Interface |
IP address |
Device A |
Vlan-int20 |
2000::1/80 |
Device D |
Vlan-int10 |
2003::2/80 |
|
WGE1/0/3 |
2002::1/80 |
|
Vlan-int30 |
2004::2/80 |
|
Vlan-int10 |
2003::1/80 |
|
Vlan-int40 |
20::1/80 |
|
Loop0 |
1111::1111/128 |
|
|
|
Device B |
Vlan-int20 |
2000::2/80 |
|
|
|
|
WGE1/0/3 |
2002::2/80 |
|
|
|
|
Vlan-int30 |
2004::1/80 |
|
|
|
|
Loop0 |
2222::2222/128 |
|
|
|
Applicable hardware and software versions
The following matrix shows the hardware and software versions to which this configuration example is applicable:
Hardware |
Software version |
S6550X-HI switch series |
Release 1213P51 and later |
S6880 switch series |
Release 1213P51 and later |
S9820-8M switch |
Release 1213P51 and later |
S5580X-HI switch series |
Release 1213P50 and later |
S5580X-EI switch series |
Release 1213P50 and later |
S5580S-EI switch series |
Release 1213P50 and later |
Procedures
Assigning IPv6 addresses and configuring unicast routing
Assign an IPv6 address and prefix to each interface as shown in Figure 2, and configure OSPFv3 on the devices in the IPv6 PIM-SM domain. (Details not shown.)
Configuring Device A
# Configure the M-LAG system settings.
<DeviceA> system-view
[DeviceA] m-lag system-mac 1-1-1
[DeviceA] m-lag system-number 1
[DeviceA] m-lag system-priority 123
# Configure M-LAG keepalive packet parameters.
[DeviceA] m-lag keepalive ipv6 destination 2002::2 source 2002::1
# Exclude the interface used for M-LAG keepalive detection (Twenty-FiveGigE 1/0/3) from the shutdown action by M-LAG MAD.
[DeviceA] m-lag mad exclude interface twenty-fivegige 1/0/3
# Create Layer 2 dynamic aggregate interface Bridge-Aggregation 1.
[DeviceA] interface bridge-aggregation 1
[DeviceA-Bridge-Aggregation1] link-aggregation mode dynamic
[DeviceA-Bridge-Aggregation1] quit
# Assign Twenty-FiveGigE 1/0/1 and Twenty-FiveGigE 1/0/2 to aggregation group 1.
[DeviceA] interface twenty-fivegige 1/0/1
[DeviceA-Twenty-FiveGigE1/0/1] port link-aggregation group 1
[DeviceA-Twenty-FiveGigE1/0/1] quit
[DeviceA] interface twenty-fivegige 1/0/2
[DeviceA-Twenty-FiveGigE1/0/2] port link-aggregation group 1
[DeviceA-Twenty-FiveGigE1/0/2] quit
# Create Layer 2 dynamic aggregate interface Bridge-Aggregation 2.
[DeviceA] interface bridge-aggregation 2
[DeviceA-Bridge-Aggregation2] link-aggregation mode dynamic
[DeviceA-Bridge-Aggregation2] quit
# Assign Twenty-FiveGigE 1/0/5 and Twenty-FiveGigE 1/0/6 to aggregation group 1.
[DeviceA] interface twenty-fivegige 1/0/5
[DeviceA-Twenty-FiveGigE1/0/5] port link-aggregation group 2
[DeviceA-Twenty-FiveGigE1/0/5] quit
[DeviceA] interface twenty-fivegige 1/0/6
[DeviceA-Twenty-FiveGigE1/0/6] port link-aggregation group 2
[DeviceA-Twenty-FiveGigE1/0/6] quit
# Configure Bridge-Aggregation 1 as a trunk port, assign it to all VLANs, and specify it as the IPP.
[DeviceA] interface bridge-aggregation 1
[DeviceA-Bridge-Aggregation1] port link-type trunk
[DeviceA-Bridge-Aggregation1] port trunk permit vlan all
[DeviceA-Bridge-Aggregation1] port m-lag peer-link 1
[DeviceA-Bridge-Aggregation1] quit
# Configure Bridge-Aggregation 2 as a trunk port, assign it to VLAN 20, and assign it to an M-LAG group.
[DeviceA] interface bridge-aggregation 2
[DeviceA-Bridge-Aggregation2] port link-type trunk
[DeviceA-Bridge-Aggregation2] port trunk permit vlan 20
[DeviceA-Bridge-Aggregation2] port m-lag group 1
[DeviceA-Bridge-Aggregation2] quit
# Configure VRRP group 1 on VLAN-interface 20, and set the priority of Device A to 200 for it to become the master in the VRRP group.
[DeviceA] interface vlan-interface 20
[DeviceA-Vlan-interface20] vrrp ipv6 vrid 1 virtual-ip FE80::10 link-local
[DeviceA-Vlan-interface20] vrrp ipv6 vrid 1 virtual-ip 2000::10
[DeviceA-Vlan-interface20] vrrp ipv6 vrid 1 priority 200
[DeviceA-Vlan-interface20] quit
# Enable IPv6 multicast routing, enable IPv6 PIM on VLAN-interface 10, and enable IPv6 PIM-SM on other interfaces as required.
[DeviceA] ipv6 multicast routing
[DeviceA-mrib6] quit
[DeviceA] interface vlan-interface 10
[DeviceA-Vlan-interface10] ipv6 pim sm
[DeviceA-Vlan-interface10] quit
[DeviceA] interface vlan-interface 20
[DeviceA-Vlan-interface20] ipv6 pim sm
[DeviceA-Vlan-interface20] quit
[DeviceA] interface loopback 0
[DeviceA-LoopBack0] ipv6 pim sm
[DeviceA-LoopBack0] quit
# Specify the IPv6 address of Loopback 0 as a C-RP and a C-BSR.
[DeviceA] ipv6 pim
[DeviceA-pim6] c-rp 1111::1111
[DeviceA-pim6] c-bsr 1111::1111
[DeviceA-pim6] quit
Configuring Device B
Configure Device B in the same way you configure Device A. (Details not shown.)
Configuring Device C
# Create Layer 2 dynamic aggregate interface Bridge-Aggregation 2.
<DeviceC> system-view
[DeviceC] interface bridge-aggregation 2
[DeviceC-Bridge-Aggregation2] link-aggregation mode dynamic
[DeviceC-Bridge-Aggregation2] quit
# Assign Twenty-FiveGigE 1/0/1 through Twenty-FiveGigE 1/0/4 to aggregation group 2.
[DeviceC] interface range twenty-fivegige 1/0/1 to twenty-fivegige 1/0/4
[DeviceC-if-range] port link-aggregation group 2
[DeviceC-if-range] quit
# Configure Bridge-Aggregation 2 as a trunk port, and assign it to VLAN 20.
[DeviceC] interface bridge-aggregation 2
[DeviceC-Bridge-Aggregation1] port link-type trunk
[DeviceC-Bridge-Aggregation1] port trunk permit vlan 20
[DeviceC-Bridge-Aggregation1] quit
# Assign Twenty-FiveGigE 1/0/5 to VLAN 20.
[DeviceC] interface twenty-fivegige 1/0/5
[DeviceC-Twenty-FiveGigE1/0/5] port access vlan 20
[DeviceC-Twenty-FiveGigE1/0/5] quit
Configuring Device D
# Assign Twenty-FiveGigE 1/0/1, Twenty-FiveGigE 1/0/2, and Twenty-FiveGigE 1/0/3 to VLAN 10, VLAN 30, and VLAN 40, respectively.
<DeviceD> system-view
[DeviceD] vlan 10
[DeviceD-vlan10] quit
[DeviceD] interface twenty-fivegige1/0/1
[DeviceD-Twenty-FiveGigE1/0/1] port access vlan 10
[DeviceD-Twenty-FiveGigE1/0/1] quit
[DeviceD] vlan 40
[DeviceD-vlan40] quit
[DeviceD] interface twenty-fivegige1/0/3
[DeviceD-Twenty-FiveGigE1/0/3] port access vlan 40
[DeviceD] vlan 30
[DeviceD-vlan30] quit
[DeviceD] interface twenty-fivegige1/0/2
[DeviceD-Twenty-FiveGigE1/0/2] port access vlan 30
# Enable IPv6 multicast routing, and enable IPv6 PIM-SM on VLAN-interface 10 and VLAN-interface 30.
[DeviceD] ipv6 multicast routing
[DeviceD-mrib6] quit
[DeviceD] interface vlan-interface 10
[DeviceD-Vlan-interface10] ipv6 pim sm
[DeviceD-Vlan-interface10] quit
[DeviceD] vlan 30
[DeviceD-vlan30] quit
[DeviceD] interface vlan-interface 30
[DeviceD-Vlan-interface30] ipv6 pim sm
[DeviceD-Vlan-interface30] quit
# Enable MLDv2 on VLAN-interface 40.
[DeviceD] interface vlan-interface 40
[DeviceD-Vlan-interface40] mld enable
[DeviceD-Vlan-interface40] mld version 2
[DeviceD-Vlan-interface40] quit
Verifying the configuration
# Verify that Device B sends and receives keepalive packets correctly.
<DeviceB> display m-lag keepalive
Neighbor keepalive link status (cause): Up
Neighbor is alive for: 2128 s 421 ms
Keepalive packet transmission status:
Sent: Successful
Received: Successful
Last received keepalive packet information:
Source IP address: 2002::1
Time: 2021/12/21 15:45:15
Action: Accept
Distributed relay keepalive parameters:
Destination IP address: 2002::1
Source IP address: 2002::2
Keepalive UDP port : 6400
Keepalive VPN name : N/A
Keepalive interval : 1000 ms
Keepalive timeout : 5 sec
Keepalive hold time: 3 sec
# Verify that interfaces used by M-LAG operate correctly on Device B.
<DeviceB> display m-lag summary
Flags: A -- Aggregate interface down, B -- No peer DR interface configured
C -- Configuration consistency check failed
IPP: BAGG1
IPP state (cause): UP
Keepalive link state (cause): UP
DR interface information
DR interface DR group Local state (cause) Peer state Remaining down time(s)
BAGG2 1 UP UP -
# Verify that the M-LAG interface on Device B operates correctly.
<DeviceB> display link-aggregation verbose bridge-aggregation 2
Loadsharing Type: Shar -- Loadsharing, NonS -- Non-Loadsharing
Port Status: S -- Selected, U -- Unselected, I -- Individual
Port: A -- Auto port, M -- Management port, R -- Reference port
Flags: A -- LACP_Activity, B -- LACP_Timeout, C -- Aggregation,
D -- Synchronization, E -- Collecting, F -- Distributing,
G -- Defaulted, H -- Expired
Aggregate Interface: Bridge-Aggregation2
Creation Mode: Manual
Aggregation Mode: Dynamic
Loadsharing Type: Shar
Management VLANs: None
System ID: 0x7b, 0001-0001-0001
Local:
Port Status Priority Index Oper-Key Flag
WGE1/0/5(R) S 32768 32770 40001 {ACDEF}
WGE1/0/6 S 32768 32770 40001 {ACDEF}
Remote:
Actor Priority Index Oper-Key SystemID Flag
WGE1/0/5 32768 2 1 0x8000, 84c4-42e5-0300 {ACDEF}
WGE1/0/6 32768 2 1 0x8000, 84c4-42e5-0300 {ACDEF}
# Verify that the MLD group information on Device D is correct.
<DeviceD> display mld group
MLD groups in total: 1
Vlan-interface40(20::1):
MLD groups reported in total: 1
Group address: FF08::2
Last reporter: 20::2
Uptime: 01:56:46
Expires: 00:02:43
# Verify that IPv6 PIM routing entries have been created on Device B.
<DeviceB> display ipv6 pim routing-table
Total 1 (*, G) entries; 1 (S, G) entries
(*, FF08::2)
RP: 2222::2222(local)
Protocol: pim-sm, Flag: WC
UpTime: 00:17:51
Upstream interface: Register-Tunnel0
Upstream neighbor: NULL
RPF prime neighbor: NULL
Downstream interface information:
Total number of downstream interfaces: 1
1: Vlan-interface30
Protocol: pim-sm, UpTime: 00:17:51, Expires: 00:02:39
(2000::111, FF3E::1)
RP: 2222::2222(local)
Protocol: pim-sm, Flag: LOC
UpTime: 00:17:54
Upstream interface: Vlan-interface20
Upstream neighbor: NULL
RPF prime neighbor: NULL
Downstream interface information:
Total number of downstream interfaces: 1
1: Vlan-interface30
Protocol: pim-sm, UpTime: 00:17:54, Expires: 00:02:36
# Verify that IPv6 multicast forwarding entries have been created on Device B.
<DeviceB> display ipv6 multicast forwarding-table
Total 1 entries, 1 matched
00001. (2000::111, FF3E::1)
Flags: 0x0
Uptime: 00:08:27, Timeout in: 00:03:27
Incoming interface: Vlan-interface20
List of 1 outgoing interfaces:
1: Vlan-interface30
Matched 23531 packets(194368 bytes), Wrong If 0 packets
Forwarded 21194 packets(171592 bytes)
# Verify that Device A does not create IPv6 PIM routing entries or multicast forwarding entries, which indicates that Device B forwards all multicast traffic to the receiver. (Details not shown.)
Configuration files
· Device A:
#
sysname DeviceA
#
ospfv3 1
router-id 2.2.2.2
area 0.0.0.0
#
vlan 10
#
vlan 20
#
interface Bridge-Aggregation1
port link-type trunk
port trunk permit vlan all
link-aggregation mode dynamic
port m-lag peer-link 1
#
interface Bridge-Aggregation2
port link-type trunk
port trunk permit vlan 1 20
link-aggregation mode dynamic
port m-lag group 1
#
interface LoopBack0
ospfv3 1 area 0.0.0.0
ipv6 pim sm
ipv6 address 1111::1111/128
#
interface Vlan-interface10
ospfv3 1 area 0.0.0.0
ipv6 pim sm
ipv6 address 2003::1/80
#
interface Vlan-interface20
ospfv3 1 area 0.0.0.0
ipv6 pim sm
ipv6 address 2000::1/80
vrrp ipv6 vrid 1 virtual-ip FE80::10 link-local
vrrp ipv6 vrid 1 virtual-ip 2000::10
vrrp ipv6 vrid 1 priority 200
#
interface Twenty-FiveGigE1/0/3
ipv6 address 2002::1/80
#
interface Twenty-FiveGigE1/0/5
port link-type trunk
port trunk permit vlan 1 20
port link-aggregation group 2
#
interface Twenty-FiveGigE1/0/6
port link-type trunk
port trunk permit vlan 1 20
port link-aggregation group 2
#
interface Twenty-FiveGigE1/0/4
port access vlan 10
#
interface Twenty-FiveGigE1/0/1
port link-type trunk
port trunk permit vlan all
port link-aggregation group 1
#
interface Twenty-FiveGigE1/0/2
port link-type trunk
port trunk permit vlan all
port link-aggregation group 1
#
ipv6 multicast routing
#
ipv6 pim
c-bsr 1111::1111
c-rp 1111::1111
#
m-lag system-mac 0001-0001-0001
m-lag system-number 1
m-lag system-priority 123
m-lag keepalive ipv6 destination 2002::2 source 2002::1
m-lag mad exclude interface Twenty-FiveGigE1/0/3
#
· Device B:
#
sysname DeviceB
#
ospfv3 1
router-id 3.3.3.3
area 0.0.0.0
#
vlan 20
#
vlan 30
#
interface Bridge-Aggregation1
port link-type trunk
port trunk permit vlan all
link-aggregation mode dynamic
port m-lag peer-link 1
#
interface Bridge-Aggregation2
port link-type trunk
port trunk permit vlan 1 20
link-aggregation mode dynamic
port m-lag group 1
#
interface LoopBack0
ospfv3 1 area 0.0.0.0
ipv6 pim sm
ipv6 address 2222::2222/128
#
interface Vlan-interface20
ospfv3 1 area 0.0.0.0
ipv6 pim sm
ipv6 address 2000::2/80
vrrp ipv6 vrid 1 virtual-ip FE80::10 link-local
vrrp ipv6 vrid 1 virtual-ip 2000::10
vrrp ipv6 vrid 1 priority 100
#
interface Vlan-interface30
ospfv3 1 area 0.0.0.0
ipv6 pim sm
ipv6 address 2004::1/80
#
interface Twenty-FiveGigE1/0/3
ospfv3 1 area 0.0.0.0
ipv6 address 2002::2/80
#
interface Twenty-FiveGigE1/0/5
port link-type trunk
port trunk permit vlan 1 20
port link-aggregation group 2
#
interface Twenty-FiveGigE1/0/6
port link-type trunk
port trunk permit vlan 1 20
port link-aggregation group 2
#
interface Twenty-FiveGigE1/0/4
port access vlan 30
#
interface Twenty-FiveGigE1/0/1
port link-type trunk
port trunk permit vlan all
port link-aggregation group 1
#
interface Twenty-FiveGigE1/0/2
port link-type trunk
port trunk permit vlan all
port link-aggregation group 1
#
ipv6 multicast routing
#
ipv6 pim
c-bsr 2222::2222
c-rp 2222::2222
#
m-lag system-mac 0001-0001-0001
m-lag system-number 2
m-lag system-priority 123
m-lag keepalive ipv6 destination 2002::1 source 2002::2
m-lag mad exclude interface Twenty-FiveGigE1/0/3
#
· Device C:
#
sysname DeviceC
#
vlan 20
#
interface Bridge-Aggregation2
port link-type trunk
port trunk permit vlan 1 20
link-aggregation mode dynamic
#
interface LoopBack1
ipv6 address FE80::2 link-local
#
interface Twenty-FiveGigE1/0/5
port access vlan 20
#
interface Twenty-FiveGigE1/0/1
port link-type trunk
port trunk permit vlan 1 20
port link-aggregation group 2
#
interface Twenty-FiveGigE1/0/2
port link-type trunk
port trunk permit vlan 1 20
port link-aggregation group 2
#
interface Twenty-FiveGigE1/0/3
port link-type trunk
port trunk permit vlan 1 20
port link-aggregation group 2
#
interface Twenty-FiveGigE1/0/4
port link-type trunk
port trunk permit vlan 1 20
port link-aggregation group 2
#
· Device D:
#
sysname DeviceD
#
ospfv3 1
router-id 4.4.4.4
area 0.0.0.0
#
vlan 10
#
vlan 40
#
vlan 30
#
interface Vlan-interface10
ospfv3 1 area 0.0.0.0
ipv6 pim sm
ipv6 address 2003::2/80
#
interface Vlan-interface40
ospfv3 1 area 0.0.0.0
ipv6 address 20::1/80
mld enable
mld version 2
#
interface Vlan-interface30
ospfv3 1 area 0.0.0.0
ipv6 pim sm
ipv6 address 2004::2/80
#
interface Twenty-FiveGigE1/0/3
port access vlan 40
#
interface Twenty-FiveGigE1/0/1
port access vlan 10
#
interface Twenty-FiveGigE1/0/2
port access vlan 30
#
ipv6 multicast routing
#
pim
#