< Home

service-id (VPN instance view)

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 service-id

undo service-id

Parameters

Parameter Description Value
service-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

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.

Configuration Impact

If the service-id command is run repeatedly, the last configuration overrides the previous ones.

Example

# Set a service ID for a VPN instance.

<HUAWEI> system-view
[HUAWEI] ip vpn-instance vrf1
[HUAWEI-vpn-instance-vrf1] service-id 123
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >