This section provides an example for configuring dual-device IGMP hot backup in a master/backup E-Trunk scenario. After dual-device IGMP hot backup is configured, multicast services are not interrupted during a master/backup E-Trunk switchover.
On the network shown in Figure 1, an E-Trunk backup group is configured on Device A and Device B. Device A is the master device, and Device B is the backup device. In normal situations, the link between Device A and Device C is up, and the link between Device B and Device C is down. Device C sends IGMP packets to Device A through the up link. After receiving the packets, Device A backs up the packets to Device B through the RBS channel.
If Device A or the link between Device A and Device C fails, a master/backup E-Trunk switchover is performed and the link between Device B and Device C goes up. Device C sends packets to Device B through the up link, ensuring IGMP service continuity.
Interfaces 1 through 3 in this example represent GE 0/1/1, GE 0/1/2, and GE 0/1/3, respectively.
To ensure that IGMP services are not interrupted during a master/backup E-Trunk switchover, configure dual-device IGMP hot backup on Device A and Device B. After the configuration is complete, Device B synchronizes IGMP entries from Device A in real time.
The configuration roadmap is as follows:
Assign IP addresses to loopback interfaces on the master and backup devices, and configure a routing protocol.
Configure an E-Trunk on Device A and Device B.
Establish a dual-device backup platform on Device A and Device B.
Create BFD sessions and bind them to E-Trunk on Device A and Device B.
Enable remote backup for IGMP services on Device A and Device B.
To complete the configuration, you need the following data:
Eth-Trunk ID on Device A, Device B, and Device C: 1. LACP system priority of Device A: 100.
E-Trunk ID on Device A and Device B: 1.
Device A's Loopback0 interface IP address is: 1.1.1.1/32; Device B's Loopback0 interface IP address: 3.3.3.3/32; TCP port number: 1025.
Device A's IP address: 10.0.13.1/24; Device B's IP address: 10.0.13.3/24.
RBS name: service1; RBP name: profile1; backup ID: 10.
<HUAWEI> system-view [~HUAWEI] sysname DeviceA [*DeviceA] remote-backup-service service1 [*DeviceA-rm-backup-srv-service1] peer 3.3.3.3 source 1.1.1.1 port 1025 [*DeviceA-rm-backup-srv-service1] commit [~DeviceA-rm-backup-srv-service1] quit
<HUAWEI> system-view [~HUAWEI] sysname DeviceB [*DeviceB] remote-backup-service service1 [*DeviceB-rm-backup-srv-service1] peer 1.1.1.1 source 3.3.3.3 port 1025 [*DeviceB-rm-backup-srv-service1] commit [~DeviceB-rm-backup-srv-service1] quit
[~DeviceA] remote-backup-profile profile1 [*DeviceA-rm-backup-prf-profile1] backup-id 10 remote-backup-service service1 [*DeviceA-rm-backup-prf-profile1] commit [~DeviceA-rm-backup-prf-profile1] quit
[~DeviceB] remote-backup-profile profile1 [*DeviceB-rm-backup-prf-profile1] backup-id 10 remote-backup-service service1 [*DeviceB-rm-backup-prf-profile1] commit [~DeviceB-rm-backup-prf-profile1] quit
# Configure a dual-device E-Trunk 1 backup platform on Device A.
[~DeviceA] e-trunk 1 [*DeviceA-e-trunk-1] peer-address 3.3.3.3 source-address 1.1.1.1 [*DeviceA-e-trunk-1] commit [~DeviceA-e-trunk-1] quit [~DeviceA] lacp e-trunk system-id 00e0-fc12-3455 [~DeviceA] commit
[~DeviceA] remote-backup-profile profile1 [*DeviceA-rm-backup-prf-profile1] e-trunk 1 eth-trunk 1 [*DeviceA-rm-backup-prf-profile1] commit [~DeviceA-rm-backup-prf-profile1] quit
[~DeviceA] interface Eth-Trunk 1 [*DeviceA-Eth-Trunk1] remote-backup-profile profile1 [*DeviceA-Eth-Trunk1] commit [~DeviceA-Eth-Trunk1] quit
[~DeviceA] multicast routing-enable [*DeviceA] interface Eth-Trunk 1 [*DeviceA-Eth-Trunk1] pim sm [*DeviceA-Eth-Trunk1] igmp enable [*DeviceA-Eth-Trunk1] mode lacp-static [*DeviceA-Eth-Trunk1] commit [~DeviceA-Eth-Trunk1] quit
# Configure a dual-device E-Trunk 1 backup platform on Device B.
[~DeviceB] e-trunk 1 [*DeviceB-e-trunk-1] peer-address 1.1.1.1 source-address 3.3.3.3 [*DeviceB-e-trunk-1] commit [~DeviceB-e-trunk-1] quit [~DeviceB] lacp e-trunk system-id 00e0-fc12-3456 [*DeviceB] commit
[~DeviceB] remote-backup-profile profile1 [*DeviceB-rm-backup-prf-profile1] e-trunk 1 eth-trunk 1 [*DeviceB-rm-backup-prf-profile1] commit [~DeviceB-rm-backup-prf-profile1] quit
[~DeviceB] interface Eth-Trunk 1 [*DeviceB-Eth-Trunk1] remote-backup-profile profile1 [*DeviceB-Eth-Trunk1] commit [~DeviceB-Eth-Trunk1] quit
[~DeviceB] multicast routing-enable [*DeviceB] interface Eth-Trunk 1 [*DeviceB-Eth-Trunk1] pim sm [*DeviceB-Eth-Trunk1] igmp enable [*DeviceB-Eth-Trunk1] mode lacp-static [*DeviceB-Eth-Trunk1] commit [~DeviceB-Eth-Trunk1] quit
[~DeviceA] remote-backup-profile profile1 [*DeviceA-rm-backup-prf-profile1] service-type igmp [*DeviceA-rm-backup-prf-profile1] commit [~DeviceA-rm-backup-prf-profile1] quit
[~DeviceB] remote-backup-profile profile1 [*DeviceB-rm-backup-prf-profile1] service-type igmp [*DeviceB-rm-backup-prf-profile1] commit [~DeviceB-rm-backup-prf-profile1] quit
<DeviceA> display remote-backup-profile profile1
-----------------------------------------------
Profile-Index : 0x1000
Profile-Name : profile1
Service : igmp
Remote-backup-service: service1
Backup-ID : 10
track protocol : E-TRUNK
E-Trunk ID : 1
Eth-trunk ID : 1
Interface :
Eth-Trunk1
Forwarding Configured: Slave Forwarding
Backup mode : hot
Slot-Number : --
Card-Number : --
Port-Number : --
<DeviceB> display remote-backup-profile profile1
-----------------------------------------------
Profile-Index : 0x1000
Profile-Name : profile1
Service : igmp
Remote-backup-service: service1
Backup-ID : 10
track protocol : E-TRUNK
E-Trunk ID : 1
Eth-trunk ID : 1
Interface :
Eth-Trunk1
Forwarding Configured: Slave Forwarding
Backup mode : hot
Slot-Number : --
Card-Number : --
Port-Number : --
<DeviceA> display remote-backup-service service1
----------------------------------------------------------
Service-Index : 1
Service-Name : service1
TCP-State : connected
Peer-ip : 3.3.3.3
Source-ip : 1.1.1.1
TCP-Port : 1025
Track-BFD : --
SSL-Policy-Name : --
SSL-State : --
Last up time : 2018-05-29 03:21:36
----------------------------------------------------------
<DeviceB> display remote-backup-service service1
----------------------------------------------------------
Service-Index : 1
Service-Name : service1
TCP-State : connected
Peer-ip : 1.1.1.1
Source-ip : 3.3.3.3
TCP-Port : 1025
Track-BFD : --
SSL-Policy-Name : --
SSL-State : --
Last up time : 2018-05-29 03:21:36
----------------------------------------------------------
<DeviceA> display eth-trunk Eth-Trunk1's state information is: (h): high priority (r): reference port Local: LAG ID: 1 WorkingMode: STATIC Preempt Delay: Disabled Hash arithmetic: According to flow System Priority: 32768 System ID: 00e0-fc12-3455(Local) Least Active-linknumber: 1 Max Active-linknumber: 16 Operate status: up Number Of Up Ports In Trunk: 1 Timeout Period: Slow PortKeyMode: Auto -------------------------------------------------------------------------------- ActorPortName Status PortType PortPri PortNo PortKey PortState Weight GigabitEthernet0/1/2 (hr) Selected 1GE 32768 1 305 10111100 1 Partner: -------------------------------------------------------------------------------- ActorPortName SysPri SystemID PortPri PortNo PortKey PortState GigabitEthernet0/1/2 32768 00e0-fc12-3455 32768 1 305 10111100Run the display eth-trunk command on Device B. The command output shows the status of Eth-Trunk interface.
<DeviceB> display eth-trunk Eth-Trunk1's state information is: (h): high priority (r): reference port Local: LAG ID: 1 WorkingMode: STATIC Preempt Delay: Disabled Hash arithmetic: According to flow System Priority: 32768 System ID: 00e0-fc12-3456(Local) Least Active-linknumber: 1 Max Active-linknumber: 16 Operate status: down Number Of Up Ports In Trunk: 0 Timeout Period: Slow PortKeyMode: Auto -------------------------------------------------------------------------------- ActorPortName Status PortType PortPri PortNo PortKey PortState Weight GigabitEthernet0/1/3(hr) Unselect 1GE 32768 32769 305 10110000 1 Partner: -------------------------------------------------------------------------------- ActorPortName SysPri SystemID PortPri PortNo PortKey PortState GigabitEthernet0/1/3 32768 00e0-fc12-3456 32768 2 305 10100000
Device A configuration file
# sysname DeviceA # multicast routing-enable # e-trunk 1 peer-address 3.3.3.3 source-address 1.1.1.1 # lacp priority 100 lacp e-trunk system-id 00e0-fc12-3455 # remote-backup-service service1 peer 3.3.3.3 source 1.1.1.1 port 1025 # remote-backup-profile profile1 service-type igmp backup-id 10 remote-backup-service service1 peer-backup hot e-trunk 1 eth-trunk 1 # interface Eth-Trunk1 ip address 10.0.15.1 255.255.255.0 pim sm igmp enable mode lacp-static e-trunk 1 remote-backup-profile profile1 # interface GigabitEthernet0/1/1 undo shutdown ip address 10.0.13.1 255.255.255.0 pim sm # interface GigabitEthernet0/1/2 undo shutdown eth-trunk 1 # interface GigabitEthernet0/1/3 undo shutdown ip address 10.0.12.1 255.255.255.0 pim sm # interface Loopback0 ip address 1.1.1.1 255.255.255.255 # interface NULL0 # ospf 1 area 0.0.0.0 network 1.1.1.1 0.0.0.0 network 10.0.12.0 0.0.0.255 network 10.0.13.0 0.0.0.255 network 10.0.15.0 0.0.0.255 # pim static-rp 2.2.2.2 # return
Device B configuration file
# sysname DeviceB # multicast routing-enable # e-trunk 1 peer-address 1.1.1.1 source-address 3.3.3.3 # lacp e-trunk system-id 00e0-fc12-3456 # remote-backup-service service1 peer 1.1.1.1 source 3.3.3.3 port 1025 # remote-backup-profile profile1 service-type igmp backup-id 10 remote-backup-service service1 peer-backup hot e-trunk 1 eth-trunk 1 # interface Eth-Trunk1 ip address 10.0.35.3 255.255.255.0 pim sm igmp enable mode lacp-static e-trunk 1 remote-backup-profile profile1 # interface GigabitEthernet0/1/1 undo shutdown ip address 10.0.13.3 255.255.255.0 pim sm # interface GigabitEthernet0/1/2 undo shutdown ip address 10.0.23.3 255.255.255.0 pim sm # interface GigabitEthernet0/1/3 undo shutdown eth-trunk 1 # interface Loopback0 ip address 3.3.3.3 255.255.255.255 # interface NULL0 # ospf 1 area 0.0.0.0 network 3.3.3.3 0.0.0.0 network 10.0.13.0 0.0.0.255 network 10.0.23.0 0.0.0.255 network 10.0.35.0 0.0.0.255 # pim static-rp 2.2.2.2 # return
Device C configuration file
# sysname DeviceC # vlan batch 100 # multicast routing-enable # interface Eth-Trunk1 portswitch port link-type access port default vlan 100 mode lacp-static # interface GigabitEthernet0/1/1 portswitch undo shutdown port link-type access port default vlan 100 # interface GigabitEthernet0/1/2 undo shutdown eth-trunk 1 # interface GigabitEthernet0/1/3 undo shutdown eth-trunk 1 # interface Loopback0 ip address 5.5.5.5 255.255.255.255 # interface NULL0 # ospf 1 area 0.0.0.0 network 5.5.5.5 0.0.0.0 # return
Device D configuration file
# sysname DeviceD # multicast routing-enable # interface GigabitEthernet0/1/1 undo shutdown ip address 10.0.5.2 255.255.255.0 pim sm # interface GigabitEthernet0/1/2 undo shutdown ip address 10.0.23.2 255.255.255.0 pim sm # interface GigabitEthernet0/1/3 undo shutdown ip address 10.0.12.2 255.255.255.0 pim sm # interface Loopback0 ip address 2.2.2.2 255.255.255.255 # interface NULL0 # ospf 1 area 0.0.0.0 network 2.2.2.2 0.0.0.0 network 10.0.5.0 0.0.0.255 network 10.0.12.0 0.0.0.255 network 10.0.23.0 0.0.0.255 # pim static-rp 2.2.2.2 # return