map

Function

The map command associates a maintenance association (MA) with a service.

The undo map command deletes the association.

By default, an MA is not associated with any services.

Format

map { vsi vsi-name | mpls { l2vpn l2vpn-name ce ce-id ce-offset ce-offset-id | l2vc [ peer-ip-value ] l2vc-id { raw | tagged } } | vlan vlan-id | l2tpv3 pw pwname | l2tpv3 local connection l2tp-connection-name | ccc ccc-connection-name | evpn vpn-instance evpn-instance-name | bridge-domain bd-id }

undo map { vsi | mpls { l2vc | l2vpn l2vpn-name } | vlan | l2tpv3 pw pwname | l2tpv3 local connection l2tp-connection-name | ccc | evpn [ vpn-instance evpn-instance-name ] | bridge-domain [ bd-id ] }

Parameters

Parameter Description Value
vsi vsi-name

Specifies the name of a virtual switching instance (VSI).

The value is a string of 1 to 31 case-sensitive characters without spaces. If the character string is quoted by double quotation marks, the character string can contain spaces.

mpls

Specifies the MPLS service.

-

l2vpn l2vpn-name

Specifies the name of an L2VPN.

The value is a string of 1 to 31 case-sensitive characters. If the character string is quoted by double quotation marks, the character string can contain spaces.

ce ce-id

Specifies a local CE ID.

The value is an integer that ranges from 0 to 65534.

ce-offset ce-offset-id

Specifies the remote CE ID of an L2VPN connection.

The value is an integer that ranges from 0 to 65534.

l2vc l2vc-id

Specifies the ID of a Layer 2 virtual circuit (L2VC).

The value is an integer ranging from 1 to 4294967295.

peer-ip-value

Specifies the IPv4 address of a peer.

The value is in dotted decimal notation.

raw

Indicates that the interface type is raw.

-

tagged

Indicates that the interface type is tagged.

-

vlan vlan-id

Specifies the ID of a VLAN.

The value is an integer in the range from 1 to 4094.

l2tpv3

Specifies the name of an L2TPv3 local connection.

Only the NetEngine 8000 F1A supports this parameter.

-

pw pwname

Specifies the PW service.

Only the NetEngine 8000 F1A supports this parameter.

The value is a string of 1 to 19 characters.

local

Specifies the name of an L2TPv3 local connection.

Only the NetEngine 8000 F1A supports this parameter.

-

connection l2tp-connection-name

Specifies the name of an L2TPv3 local connection.

Only the NetEngine 8000 F1A supports this parameter.

The value is a string of 1 to 31 case-sensitive characters without spaces, question mark, and |. It must start with a letter.

ccc ccc-connection-name

Specifies a CCC connection name that uniquely identifies a CCC connection on a PE.

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

If spaces are used, the string must start and end with double quotation marks (").

evpn

Specifies the EVPN instance.

-

vpn-instance evpn-instance-name

Specifies the name of an EVPN instance.

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

bridge-domain bd-id

Specifies the ID of a BD.

The value is an integer ranging from 1 to 16777215.

Views

MA view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
y1731 write

Usage Guidelines

Usage Scenario

Before you use Y.1731 to collect link performance statistics or detect faults in VSI, virtual leased line (VLL), L2TPv3, EVPN or VLAN networking, you must run the map command to associate an MA with a service.

LDP VLLs are associated with VC IDs on AC interfaces. On a device's AC interfaces, LDP VLLs cannot be associated with the same VC ID. Therefore, for LDP VLLs, a VC ID can be used to uniquely determine one PW. For BGP VLLs, the CE-associated label advertised by BGP can be used to uniquely determine one PW. Therefore, for BGP VLLs, a PW must be determined through a VPN name, CE ID, and CE offset.

Only the NetEngine 8000 F1A supports L2TPv3.

Prerequisites

A maintenance domain (MD) has been created using the cfm md command, and an MA has been configured using the ma command.

Precautions

You can set up or delete the association between an MA and a service only when neither a MEP nor an RMEP is configured on the local device in the MA.

To modify the association between an MA and a service, delete the preceding association using the undo map command. Then you can run the map command to associate the MA with another service.

Example

# Associate an MA with a VSI named vsi1 in LDP and BGP modes.
<HUAWEI> system-view
[~HUAWEI] mpls
[*HUAWEI-mpls] quit
[*HUAWEI] mpls l2vpn
[*HUAWEI-l2vpn] quit
[*HUAWEI] vsi vsi1
[*HUAWEI-vsi-vsi1] pwsignal ldp
[*HUAWEI-vsi-vsi1-ldp] vsi-id 10
[*HUAWEI-vsi-vsi1-ldp] peer 2.2.2.2
[*HUAWEI-vsi-vsi1-ldp] quit
[*HUAWEI-vsi-vsi1] quit
[*HUAWEI] cfm enable
[*HUAWEI] cfm md md1
[*HUAWEI-md-md1] ma ma1
[*HUAWEI-md-md1-ma-ma1] map vsi vsi1
# Associate an MA with a VLL with an L2VC ID of 2.
<HUAWEI> system-view
[~HUAWEI] mpls
[*HUAWEI-mpls] quit
[*HUAWEI] mpls l2vpn
[*HUAWEI-l2vpn] quit
[*HUAWEI] interface GigabitEthernet 0/1/1
[*HUAWEI-GigabitEthernet0/1/1] mpls l2vc 2.2.2.2 100
[*HUAWEI-GigabitEthernet0/1/1] quit
[*HUAWEI] cfm enable
[*HUAWEI] cfm md md1
[*HUAWEI-md-md1] ma ma1
[*HUAWEI-md-md1-ma-ma1] map mpls l2vc 2.2.2.2 100 raw
# Associate an MA with a BD.
<HUAWEI> system-view
[~HUAWEI] bridge-domain 10
[*HUAWEI] quit
[*HUAWEI-bd10] cfm enable
[*HUAWEI] cfm md md1
[*HUAWEI-md-md1] ma ma1
[*HUAWEI-md-md1-ma-ma1] map bridge-domain 10
# Associate an MA with VLAN ID 2.
<HUAWEI> system-view
[~HUAWEI] vlan 2
[*HUAWEI-vlan2] quit
[*HUAWEI] cfm enable
[*HUAWEI] cfm md md1
[*HUAWEI-md-md1] ma ma1
[*HUAWEI-md-md1-ma-ma1] map vlan 2
# Associate an MA with an EVPN instance.
<HUAWEI> system-view
[~HUAWEI] evpn
[*HUAWEI-evpn] quit
[*HUAWEI] evpn vpn-instance evrf
[*HUAWEI-evpn-instance-evrf] quit
[*HUAWEI] cfm enable
[*HUAWEI] cfm md md1
[*HUAWEI-md-md1] ma ma1
[*HUAWEI-md-md1-ma-ma1] map evpn vpn-instance evrf
# Associate an MA with a CCC connection.
<HUAWEI> system-view
[~HUAWEI] interface GigabitEthernet 0/1/1
[*HUAWEI-GigabitEthernet0/1/1] quit
[*HUAWEI] interface GigabitEthernet 0/1/2
[*HUAWEI-GigabitEthernet0/1/2] quit
[*HUAWEI] mpls
[*HUAWEI-mpls] quit
[*HUAWEI] mpls l2vpn
[*HUAWEI-l2vpn] quit
[*HUAWEI] ccc 1 interface GigabitEthernet 0/1/1 out-interface GigabitEthernet 0/1/2
[*HUAWEI] cfm enable
[*HUAWEI] cfm md md1
[*HUAWEI-md-md1] ma ma1
[*HUAWEI-md-md1-ma-ma1] map ccc 1
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >