l2-multicast egress statistics

Function

The l2-multicast egress statistics command enables a device to collect statistics about downstream Layer 2 IPv4 multicast packets based on a multicast group.

The undo l2-multicast egress statistics command disables a device from collecting statistics about downstream Layer 2 IPv4 multicast packets based on a multicast group.

By default, a device is disabled from collecting statistics about downstream Layer 2 IPv4 multicast packets based on a multicast group.

Format

l2-multicast egress statistics { vlan vlan-id | vsi vsi-name | bd bd-id } [ source-address ] group-address slot slot-id

undo l2-multicast egress statistics { vlan vlan-id | vsi vsi-name | bd bd-id } [ source-address ] group-address slot slot-id

Parameters

Parameter Description Value
vlan vlan-id

Specifies the VLAN ID.

The value is an integer that ranges from 1~4094.

vsi vsi-name

Specifies a VSI name.

The value is a string of 1 to 31 case-sensitive characters, spaces not supported.

bd bd-id

Specifies a bridge-domain instance ID.

The value is an integer ranging from 1 to 16777215.

source-address

Specifies a multicast source address.

The value is in dotted decimal notation.

group-address

Specifies a multicast group address.

The value ranges from 224.0.1.0 to 239.255.255.255, in dotted decimal notation.

slot slot-id

Specifies a slot ID. The value range varies with the hardware of the device.

The value is a string of 1 to 15 characters, spaces not supported.

Views

System view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
forwarding write

Usage Guidelines

Usage Scenario

To enable a device to collect statistics about downstream Layer 2 IPv4 multicast packets based on a multicast group or router ports, run the l2-multicast egress statistics command. After the function is enabled, you can run the display l2-multicast egress statistics command to check statistics about downstream Layer 2 IPv4 multicast packets. The l2-multicast egress statistics enable slot command takes precedence over the l2-multicast egress statistics command. That is, if the l2-multicast egress statistics enable slot command has been run on a device, the device is enabled to collect statistics about downstream Layer 2 IPv4 multicast packets regardless of whether the l2-multicast egress statistics command is run. The l2-multicast egress statistics command takes effect only if the l2-multicast egress statistics enable slot command is not run.

Prerequisites

The igmp-snooping enable command has been configured.

Follow-up Procedure

Run the display l2-multicast egress statistics command to check statistics about downstream Layer 2 IPv4 multicast packets.

Example

# Enable a device to collect statistics about downstream Layer 2 IPv4 multicast packets based on a specified multicast group.
<HUAWEI> system-view
[~HUAWEI] l2-multicast egress statistics vlan 100 10.10.10.10 225.0.0.1 slot 1
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >