local-service-id remote-service-id

Function

The local-service-id remote-service-id command enables a device to send protocol packets with local and remote service IDs.

The undo local-service-id remote-service-id command disables a device to send protocol packets with local and remote service IDs.

By default, local and remote service IDs are not assigned.

Format

local-service-id service-id remote-service-id service-id

undo local-service-id service-id remote-service-id service-id

Parameters

Parameter Description Value
remote-service-id service-id

Specifies a remote service ID.

The value is an integer ranging from 1 to 16777215.

local-service-id service-id

Specifies a local service ID.

The value is an integer ranging from 1 to 16777215.

Views

EVPL view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
bgp write

Usage Guidelines

Usage Scenario

EVPN VPWS is a P2P L2VPN solution. CEs access PEs through AC interfaces. An MPLS tunnel between the PEs traverses the backbone network. Each AC interface is bound to an EVPL instance, and each EVPL instance is assigned a service ID. The EVPL instance on the local PE maps that on the remote PE. To enable the PEs to exchange protocol packets with local and remote service IDs, run the local-service-id command. This configuration differentiates CE-accessed traffic and allows P2P interworking.

The service ID must be unique based on an EVPN instance. It is recommended that you set different local-service-id and remote-service-id values for the EVPN instance.

Example

# Enable packets to carry local and remote service IDs.
<HUAWEI> system-view
[~HUAWEI] evpn vpn-instance evrf1 vpws
[*HUAWEI-vpws-evpn-instance-evrf1] route-distinguisher 100:1
[*HUAWEI-vpws-evpn-instance-evrf1] vpn-target 1:1
[*HUAWEI-vpws-evpn-instance-evrf1] quit
[*HUAWEI] evpl instance 1
[*HUAWEI-evpl1] evpn binding vpn-instance evrf1
[*HUAWEI-evpl1] local-service-id 1 remote-service-id 2
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >