service-id

Function

The service-id command sets a service ID for a VPN instance.

The undo service-id command deletes the service ID of a VPN instance.

By default, no service ID is set for a VPN instance.

Format

service-id id

undo service-id id

Parameters

Parameter Description Value
id

Specifies the service ID of a VPN instance.

An integer ranging from 1 to 4294967295.

Views

VPN instance view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
l3vpn write

Usage Guidelines

Usage Scenario

A service ID set in the view of a VPN instance identifies the service of the VPN instance, which facilitates later service query using the NMS.

A service ID is unique on a device. It distinguishes a VPN service from other VPN services on the network. A service ID used by a VPN instance cannot be allocated to other VPN instances.

Example

# Set the service ID to 100 for vpn100.
<HUAWEI> system-view
[~HUAWEI] ip vpn-instance vpn100
[*HUAWEI-vpn-instance-vpn100] service-id 100
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >