assign instance

Function

The assign instance command adds a multicast NAT instance to a multicast NAT instance group.

The undo assign instance command deletes a multicast NAT instance from a multicast NAT instance group.

By default, no multicast NAT instance is configured in a multicast NAT instance group.

This command is supported only on the NetEngine 8000 F1A.

Format

assign instance id instance-id [ name instance-name ] part part-id [ type { video-stream | audio-stream | ancillary-data } ]

undo assign instance id instance-id [ name instance-name ] part part-id [ type { video-stream | audio-stream | ancillary-data } ]

Parameters

Parameter Description Value
name instance-name

Specifies the name of a multicast NAT instance.

The value is a string of 1 to 127 case-sensitive characters. It cannot contain spaces.

part part-id

Specifies the number of a multicast NAT instance in a multicast NAT instance group.

The value is an integer ranging from 1 to 16.

type

Indicates a media stream type. Set this parameter if a multicast NAT instance is added to a multicast NAT instance group.

-

video-stream

Sets the type to video-stream.

-

audio-stream

Sets the type to audio-stream.

-

ancillary-data

Sets the type to ancillary-data.

-

id instance-id

Specifies the ID of a multicast NAT instance.

The value is an integer ranging from 1 to 16000.

Views

multicast-nat-instance-group

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
forwarding write

Usage Guidelines

Usage Scenario

In multicast NAT, to translate an input multicast stream into output multicast streams, create a multicast NAT instance and then associate the input multicast stream with the multicast NAT instance. If there are multiple input multicast streams (that is, multiple multicast NAT instances exist) and you want to place the streams together based on unified rules, you can create a multicast NAT instance group and add those multicast NAT instances to the group. To add a multicast NAT instance to a multicast NAT instance group, run the assign instance command.

Prerequisites

Multicast NAT has been globally enabled using the multicast-nat enable command.

A multicast NAT instance has been created using the multicast-nat instance command.

A multicast NAT instance group has been created using the multicast-nat instance group command.

Precautions

In VS mode, this command is supported only by the admin VS.

If none of video-stream, audio-stream, and ancillary-data is specified, the default stream type is retained when a multicast NAT instance is added to a multicast NAT instance group.

Before adding multicast NAT instances to a multicast NAT instance group, you must either specify the type of media streams or retain the default stream type for the multicast NAT instance group.

Example

# Create a multicast NAT instance group, add multicast NAT instances 1 and 2 to the multicast NAT instance group, and retain the default stream type for the multicast NAT instance group.
<HUAWEI> system-view
[~HUAWEI] multicast-nat enable
[*HUAWEI] multicast-nat instance id 1 name stream1
[*HUAWEI-multicast-nat-instance-1] multicast-nat instance id 2 name stream2
[*HUAWEI-multicast-nat-instance-2] quit
[*HUAWEI] multicast-nat instance-group id 1 name group1
[*HUAWEI-multicast-nat-instance-group-1] assign instance id 1 part 1
[*HUAWEI-multicast-nat-instance-group-1] assign instance id 2 part 2
# Create a multicast NAT instance group, add multicast NAT instances 1 and 2 to the multicast NAT instance group, and specify the type of media streams for the multicast NAT instance group.
<HUAWEI> system-view
[~HUAWEI] multicast-nat enable
[*HUAWEI] multicast-nat instance id 1 name stream1
[*HUAWEI-multicast-nat-instance-1] multicast-nat instance id 2 name stream2
[*HUAWEI-multicast-nat-instance-2] quit
[*HUAWEI] multicast-nat instance-group id 1 name group1
[*HUAWEI-multicast-nat-instance-group-1] assign instance id 1 part 1 type video-stream
[*HUAWEI-multicast-nat-instance-group-1] assign instance id 2 part 2 type audio-stream
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
Next topic >