No relevant resource is found in the selected language.

This site uses cookies. By continuing to browse the site you are agreeing to our use of cookies. Read our privacy policy>Search

Reminder

To have a better experience, please upgrade your IE browser.

upgrade

Configuration Guide - IP Multicast

CloudEngine 8800, 7800, 6800, and 5800 V200R005C00

This document describes the configurations of IP multicast, including IP multicast basics, IGMP, MLD, PIM (IPv4), PIM (IPv6), MSDP, multicast VPN, multicast route management (IPv4), multicast route management (IPv6), IGMP snooping, MLD snooping, static multicast MAC address, multicast VLAN, multicast network management.
Rate and give feedback:
Huawei uses machine translation combined with human proofreading to translate this document to different languages in order to help you better understand the content of this document. Note: Even the most advanced machine translation cannot match the quality of professional translators. Huawei shall not bear any responsibility for translation accuracy and it is recommended that you refer to the English document (a link for which has been provided).
Configuring Basic IGMP Snooping Over VXLAN Functions

Configuring Basic IGMP Snooping Over VXLAN Functions

Pre-configuration Tasks

Before configuring basic IGMP snooping over VXLAN functions, create a BD and configure the VXLAN network. For details about VXLAN configuration, see VXLAN Configuration Guide.

Configuration Procedure

Enabling IGMP Snooping and Configuring the IGMP Snooping Version are mandatory and other tasks are optional.

Enabling IGMP Snooping

Context

Other IGMP snooping functions can be configured only after IGMP snooping is enabled globally. These functions take effect in a BD only after IGMP snooping is enabled in the BD.

By default, IGMP snooping is disabled globally on the switch.

Procedure

  1. Run system-view

    The system view is displayed.

  2. Run igmp snooping enable

    IGMP snooping is enabled globally.

  3. Run bridge-domain bd-id

    The BD view is displayed.

  4. Run igmp snooping enable

    IGMP snooping is enabled in the BD.

    NOTE:

    Because the device forwards multicast data packets in a BD based on MAC addresses, do not use a group address on the network if the group address maps to the same multicast MAC address as a multicast IP address reserved for a protocol. Otherwise, the protocol that uses the multicast IP address cannot run normally. For example, Open Shortest Path First (OSPF) uses 224.0.0.5 to send protocol packets. This multicast IP address maps to multicast MAC address 01-00-5E-00-00-05. If multicast data packets are forwarded based on MAC addresses and use multicast IP address 225.0.0.5 (also mapping to 01-00-5E-00-00-05), the OSPF protocol cannot run normally.

  5. (Optional) Run assign forward nvo3 multicast protocol enable

    Protocol packet broadcast is enabled in the BD.

    By default, protocol packet broadcast is disabled in a BD.

    Protocol packet broadcast can ensure normal operations of protocols that use reserved group addresses to send protocol packets in a BD.

    NOTE:

    The CE6870EI and CE6875EI do not support this function.

  6. Run commit

    The configuration is committed.

Configuring the IGMP Snooping Version

Context

Internet Group Management Protocol (IGMP) manages multicast group members and runs on the network segments where Layer 3 multicast devices connect to user hosts. IGMP has three protocol versions V1, V2, and V3. You can specify the IGMP snooping version on a Layer 2 device to enable the device to process IGMP messages of the specified version. Generally, the version specified on the Layer 2 device is the same as that configured on the Layer 3 multicast device. If IGMP is disabled on the Layer 3 multicast device, configure the same IGMP version as member hosts or a higher IGMP version.

Devices in the same BD must run IGMP of the same version. When hosts in a BD run different IGMP versions, configure an appropriate IGMP snooping version in the BD to enable the switch to process IGMP messages from all hosts.

Procedure

  1. Run system-view

    The system view is displayed.

  2. Run bridge-domain bd-id

    The BD view is displayed.

  3. Run igmp snooping version version

    The version of IGMP messages that the device can process is set.

    By default, the switch can process IGMPv1 and IGMPv2 messages.

    NOTE:

    The IGMP snooping version cannot be set to 3 in a BD. That is, IGMPv3 messages cannot be processed.

  4. Run commit

    The configuration is committed.

(Optional) Configuring a Static Router Port

Context

A router port is located on a Layer 2 device and connects to an upstream Layer 3 device (a multicast router or Layer 3 switch). When IGMP snooping is enabled in a BD, all Layer 2 sub-interfaces in this BD learn forwarding entries from multicast protocol packets. When a Layer 2 sub-interface receives IGMP Query messages or Protocol Independent Multicast (PIM) Hello messages, the Layer 2 device sets it as a dynamic router port. A router port provides the following functions:

  • Receives multicast data from the upstream device.
  • Forwards IGMP Report/Leave messages. IGMP Report/Leave messages received in a BD are forwarded only to router ports in the BD.

A dynamic router port has an aging time. If a dynamic router port does not receive an IGMP Query or a PIM Hello message before the aging time expires, the device deletes the port from the router port list. To enable Layer 2 sub-interface to forward IGMP Report/Leave messages to the upstream querier for a long time, configure it as a static router port.

Procedure

  1. Run system-view

    The system view is displayed.

  2. (Optional) Configure disabling of dynamic learning of router ports.
    1. Run bridge-domain bd-id

      The BD view is displayed.

    2. Run igmp snooping router-learning disable

      Dynamic router port learning is disabled.

      By default, dynamic router port learning is enabled in a BD.

    3. Run quit

      Exit from the BD view.

  3. Run interface interface-type interface-number.subnum mode l2

    The Layer 2 sub-interface view is displayed.

  4. Run igmp snooping static-router-port [ dot1q vid vid | qinq pe-vid pe-vid ce-vid ce-vid ]

    The Layer 2 sub-interface is configured as a static router port.

  5. Run commit

    The configuration is committed.

(Optional) Configuring a Static Member Port

Context

A member port is on a Layer 2 device and connects to receiver hosts which are multicast group members. The member port can be configured manually or learned dynamically by multicast protocols. When IGMP snooping is enabled in a BD, all Layer 2 sub-interfaces in this BD learn forwarding entries from multicast packets. When a Layer 2 sub-interface receives IGMP Report messages, the Layer 2 device sets it as a dynamic member port. A dynamic member port has the aging time.

If the hosts connected to a Layer 2 sub-interface need to receive the multicast data of a specific multicast group or multicast source group for a long time, add the Layer 2 sub-interface statically to the multicast group or source-group. The sub-interface then becomes a static member port. Static member ports do not age.

Procedure

  1. Run system-view

    The system view is displayed.

  2. Run interface interface-type interface-number.subnum mode l2

    The Layer 2 sub-interface view is displayed.

  3. (Optional) Run igmp snooping learning disable

    Dynamic learning of member ports is disabled.

    By default, dynamic learning of member ports is enabled. To forward multicast data, the interfaces must be statically added to a multicast group after disabling dynamic learning of member ports.

  4. Run igmp snooping static-group [ source-address source-ip-address ] group-address group-ip-address [ dot1q vid vid | qinq pe-vid pe-vid ce-vid ce-vid ]

    The Layer 2 sub-interface is manually added to a multicast group and becomes a static member port.

  5. Run commit

    The configuration is committed.

(Optional) Configuring an IGMP Snooping Querier

Context

When IGMP snooping is enabled on a Layer 2 device, the Layer 2 device can listen to IGMP protocol packets exchanged between an IGMP querier and user hosts to dynamically create Layer 2 multicast forwarding entries and provide Layer 2 multicast functions.

A Layer 2 device cannot create Layer 2 multicast forwarding entries by listening to IGMP protocol packets in the following conditions, even when IGMP snooping is enabled on the device:

  • The interfaces on the upstream Layer 3 multicast device have static multicast groups configured and do not run the IGMP protocol.

  • The multicast source is located on the same Layer 2 network as user hosts, and therefore no Layer 3 multicast device is required.

In either of the preceding conditions, you can configure the IGMP snooping querier on the Layer 2 multicast device. Then the Layer 2 multicast device substitutes for a Layer 3 multicast device to send IGMP Query messages to user hosts.

Procedure

  1. Run system-view

    The system view is displayed.

  2. Run bridge-domain bd-id

    The BD view is displayed.

  3. Run igmp snooping querier enable

    The IGMP snooping querier function is enabled.

    NOTE:
    • After an IGMP snooping querier is enabled, the switch periodically broadcasts IGMP Query messages to all the interfaces in a BD, including the router ports in the BD. This may result in IGMP querier reelection if an IGMP querier already exists on the multicast network. If an IGMP querier already exists on the multicast network, configuring IGMP snooping querier is not recommended. If you configure an IGMP snooping querier on a switch, ensure that the source IP address of the General Query messages sent from the switch is larger than the IP address of the upstream IGMP querier.

    • IGMP snooping querier and IGMP snooping proxy cannot be enabled in the same BD.

  4. (Optional) Run igmp snooping querier-election

    The querier election function is enabled.

    If the querier function is enabled on multiple devices in the BD, one of these devices must be elected as the querier to send Query messages to user hosts.

  5. (Optional) Set the querier parameters.

    NOTE:

    When setting the querier parameters, ensure that the interval for sending IGMP General Query messages is larger than the maximum response time for IGMP Query messages.

    Querier Parameter

    Configuration Command

    Description

    Default Setting

    Version

    Interval for sending IGMP General Query messages

    igmp snooping query interval query-interval

    The querier sends IGMP General Query messages at the specified interval to maintain memberships of interfaces in a BD.

    60 seconds

    The default general query interval is 60 seconds, which is different than the default value 125 seconds defined by RFC documents. A Huawei querier and a non-Huawei querier must send IGMP general query messages at the same interval.

    IGMPv1, IGMPv2, and IGMPv3

    IGMP robustness variable

    igmp snooping robust-count robust-count

    The robustness variable defines the following values:
    • Number of times the querier sends General Query messages after startup. The packet sending interval is 1/4 of the configured interval for sending General Query messages.
    • Number of times the querier sends Group-Specific Query messages after receiving a Leave message. The packet sending interval is the same as the configured interval for sending Group-Specific Query messages.

    2

    IGMPv1, IGMPv2, and IGMPv3

    Maximum response time for IGMP Query messages

    igmp snooping query max-response-time max-response-time

    When receiving IGMP Report messages from hosts, the switch sets the aging time of member ports by using the following formula: Aging time = IGMP robustness variable x Interval for sending IGMP General Query messages + Maximum response time.

    After a multicast member receives an IGMP Query message, it must send a Report message within the maximum response time.

    10 seconds

    IGMPv2 and IGMPv3

    Interval for sending IGMP Group-Specific Query messages

    igmp snooping query lastmember-queryinterval last-member-interval

    When receiving IGMP Leave messages from a host, the switch calculates the aging time of the member port by using the following formula: Aging time = Interval for sending Group-Specific Query messages x IGMP robustness variable. The switch sends a Group-Specific Query message certain times (specified by the IGMP robustness variable) to check whether this group has any other members.

    1 second

    IGMPv2 and IGMPv3

  6. Run quit

    Return to the system view.

  7. (Optional) Run igmp snooping send-query source-address ip-address

    The source IP address of an IGMP General Query message is configured.

    By default, the source IP address of an IGMP General Query message sent by the IGMP snooping querier is 192.168.0.1. If this IP address is used by other devices on the network, you can use this command to set another IP address.

  8. Run commit

    The configuration is committed.

(Optional) Suppressing Report and Leave Messages

Context

IGMP periodically sends Query and Response messages to maintain memberships. When multiple multicast members join the same multicast group, they send a large number of the same Report message to the IGMP router. When IGMPv2 or IGMPv3 hosts leave a multicast group, they send a large number of the same Leave message. To conserve bandwidth, configure suppression for Report and Leave messages on the Layer 2 device.

After message suppression is configured, the switch forwards a Report message only when the first member joins a multicast group or when it receives an IGMP Query message. The switch sends a Leave message only when the last member leaves the multicast group.

Procedure

  1. Run system-view

    The system view is displayed.

  2. Run bridge-domain bd-id

    The BD view is displayed.

  3. Run igmp snooping report-suppress

    The Report and Leave messages are suppressed.

    NOTE:

    IGMP snooping proxy and message suppression cannot be configured in the same BD.

  4. Run commit

    The configuration is committed.

(Optional) Configuring the IPv4 Router-Alert Option

Context

By default, the switch does not check whether IGMP messages contain the Router-Alert option and sends all the IGMP messages to the upper-layer routing protocol. To improve device performance, reduce transmission cost, and enhance protocol security, configure the switch to discard IGMP messages without the Router-Alert option.

By default, the switch sends IGMP messages with the Router-Alert option.

Procedure

  1. Run system-view

    The system view is displayed.

  2. Run bridge-domain bd-id

    The BD view is displayed.

  3. Run igmp snooping require-router-alert

    The device is configured to check whether IGMP messages contain the Router-Alert option.

  4. Run undo igmp snooping send-router-alert disable

    The device is configured to send only IGMP messages with the Router-Alert option.

  5. Run commit

    The configuration is committed.

(Optional) Disabling Users from Dynamically Joining Multicast Groups

Context

If an upstream Layer 3 multicast device is a non-Huawei device and has static multicast groups configured on the user-side interface, multicast users are not allowed to dynamically join or leave the multicast groups. In this case, disable the switch from sending IGMP Report and Leave messages carrying static group addresses to the upstream device.

Procedure

  1. Run system-view

    The system view is displayed.

  2. Run bridge-domain bd-id

    The BD view is displayed.

  3. Run igmp snooping static-group suppress-dynamic-join

    The switch is disabled from sending IGMP Report and Leave messages that contain static group addresses to the upstream device.

    By default, the device forwards IGMP Report and Leave messages that contain static group addresses to the router port.

  4. Run commit

    The configuration is committed.

Verifying the Basic IGMP Snooping Over VXLAN Function Configuration

Context

After the configurations are complete, run the following commands in any view to check IGMP spooning over VXLAN configurations and the forwarding entries.

Procedure

  • Run the display igmp snooping [ bridge-domain [ bd-id ] ] configuration command to check the IGMP snooping configuration in a BD.
  • Run the display igmp snooping [ bridge-domain [ bd-id ] ] command to check all the IGMP snooping running parameters in a BD.
  • Run the display igmp snooping port-info bridge-domain bd-id [ group-address group-address ] [ verbose ] command to check member ports of the multicast group.
  • Run the display igmp snooping router-port bridge-domain bd-id command to check router ports.
  • Run the display multicast layer-2 ip fib [ bridge-domain bd-id [ group group-address ] ] command to check the multicast forwarding table in a BD.
  • Run the display igmp snooping querier bridge-domain [ bd-id ] command to check the IGMP snooping querier configuration.
Translation
Download
Updated: 2019-04-20

Document ID: EDOC1100039595

Views: 49280

Downloads: 87

Average rating:
This Document Applies to these Products
Related Documents
Related Version
Share
Previous Next