< Home

mtrace query-policy

Function

The mtrace query-policy command enables a device to filter IGMP-Tracert-Query packets in unicast mode based on the source address of these packets.

The undo mtrace query-policy command cancels the filtering of IGMP-Tracert-Query packets.

By default, the switch does not filter IGMP-Tracert-Query packets.

Format

mtrace query-policy [ basic-acl-number ]

undo mtrace query-policy

Parameters

Parameter Description Value
basic-acl-number Specifies the number of the basic ACL. This ACL defines the address range of a trusted querier. According to this ACL, the last hop switch rejects the IGMP-Tracert-Query packets sent by an invalid querier. The value is an integer ranging from 2000 to 2999.

Views

System view

Default Level

2: Configuration level

Usage Guidelines

The source address of IGMP-Tracert-Query packets in unicast mode is the local interface address. Before you create an ACL rule, create an ACL.

Run this command on the switch that is connected to the host.

  • This command takes effect only on the last hop switch, which is not the querier.

  • This command filters only the IGMP-Tracert-Query packets encapsulated in unicast IP packets.

  • This command is not applicable to the tracking initiated from the querier.

When you run the mtrace query-policy command on the last hop switch, note the following points:

  • If basic-acl-number is not specified, the last hop switch does not reject IGMP-Tracert-Query packets in unicast mode.

  • If basic-acl-number is specified but the ACL is not defined on the switch, the last hop switch rejects any IGMP-Tracert-Query packet in unicast mode.

  • If basic-acl-number is specified and this ACL is defined on the switch, only the IGMP-Tracert-Query packets allowed by the ACL can be received.

Example

# Apply the querier filtering rules to the last hop switch.

<HUAWEI> system-view
[HUAWEI] mtrace query-policy 2000
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >