import-channel

Function

The import-channel command specifies a multicast channel for a Layer 2 multicast instance.

The undo import-channel command deletes a multicast channel specified for a Layer 2 multicast instance.

By default, no multicast channels are specified for a Layer 2 multicast instance.

Format

import-channel group-address { mask | mask-length }

undo import-channel group-address { mask | mask-length }

Parameters

Parameter Description Value
group-address

Specifies a multicast channel IP address.

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

mask

Specifies the mask of a multicast group address.

The address is in dotted decimal notation and ranges from 240.0.0.0 to 255.255.255.255.

mask-length

Specifies the mask length of a multicast group address.

The value is an integer ranging from 5 to 32.

Views

Layer 2 multicast instance view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
l2mc write

Usage Guidelines

Usage Scenario

To facilitate service management, multicast content providers generally operate different types of channels in different Layer 2 multicast instances. Therefore, multicast channels need to be configured for Layer 2 multicast instances. To specify a multicast channel (multicast group address segment) for a Layer 2 multicast instance, run the import-channel command. After a multicast channel is specified, the Layer 2 multicast instance forwards only multicast flows within the specified address segment range.

Prerequisites

IGMP snooping has been enabled globally using the igmp-snooping enable command, and a Layer 2 multicast instance has been created using the l2-multicast instance command.

Example

# Specify a channel for a Layer 2 multicast instance.
<HUAWEI> system-view
[~HUAWEI] igmp-snooping enable
[*HUAWEI] l2-multicast instance 1
[*HUAWEI-l2-minst1] import-channel 225.0.0.0 24
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >