19-Service Chain Command Reference

HomeSupportResource CenterNFVH3C VSRH3C VSRTechnical DocumentsCommandCommand ReferencesH3C VSR Series Virtual Services Routers Command References(V7)-R0621-6W30019-Service Chain Command Reference
01-Service chain commands
Title Size Download
01-Service chain commands 55.50 KB

Service chain commands

display service-chain path

Use display service-chain path to display service chain information.

Syntax

display service-chain path { path-id | all }

Views

Any view

Predefined user roles

network-admin

network-operator

Parameters

path-id: Specifies a service chain by its path ID in the range of 1 to 8388606.

all: Displays information for all service chains.

Examples

# Display information for all service chains.

<Sysname> display service-chain path all

PathID: 22

  Next service node: 4.4.4.4

  Previous service node: 5.5.5.5

  Function: 1

    Service-list: fw

Table 1 Command output

Field

Description

PathID

Path ID of the service chain.

Next service node

IP address of the next service node.

Previous service node

IP address of the previous service node.

Function

ID of the service node.

Service-list

Services in the service list.

display service-chain statistics

Use display service-chain statistics to display service chain statistics.

Syntax

display service-chain statistics

Views

Any view

Predefined user roles

network-admin

network-operator

Examples

# Display all service chain statistics.

<Sysname> display service-chain statistics

 Service-chain statistics

 Board : all

  Total receive : 0          Total send : 0

  Service drop  : 0          Error drop : 0

Table 2 Command output

Field

Description

Board

ID of a card.

This field displays all in the current software version.

Total receive

Number of received packets.

Total send

Number of sent packets.

Service drop

Number of dropped packets.

Error drop

Number of dropped error packets.

next-service-node

Use next-service-node to specify the IP address of the next service node in a service chain.

Use undo next-service-node to restore the default.

Syntax

next-service-node ip-address

undo next-service-node

Default

The IP address of the next service node in a service chain is not specified.

Views

Service chain view

Predefined user roles

network-admin

Parameters

ip-address: Specifies the IP address of the next service node.

Usage guidelines

If the service node is the end node, you do not need to specify the IP address of the next service node.

Examples

# Specify the IP address of the next service node as 2.2.2.2 for service chain 1.

<Sysname> system-view

[Sysname] service-chain path 1

[Sysname-spath1] next-service-node 2.2.2.2

Related commands

display service-chain path

previous-service-node

Use previous-service-node to specify the IP address of the previous service node in a service chain.

Use undo previous-service-node to restore the default.

Syntax

previous-service-node ip-address

undo previous-service-node

Default

The IP address of the previous service node in a service chain is not specified.

Views

Service chain view

Predefined user roles

network-admin

Parameters

ip-address: Specifies the IP address of the previous service node.

Usage guidelines

If the service node is the head node, you do not need to specify the IP address of the previous service node.

Examples

# Specify the IP address of the previous service node as 3.3.3.3 for service chain 1.

<Sysname> system-view

[Sysname] service-chain path 1

[Sysname-spath1] previous-service-node 3.3.3.3

Related commands

display service-chain path

service-chain path

Use service-chain path to create a service chain and enter its view, or enter the view of an existing service chain.

Use undo service-chain path to delete a service chain or all service chains on a device.

Syntax

service-chain path path-id

undo service-chain path { path-id | all }

Default

No service chains exist.

Views

System view

Predefined user roles

network-admin

Parameters

path-id: Specifies the path ID of a service chain, in the range of 1 to 8388606. A path ID uniquely identifies a service chain.

all: Deletes all service chains on the device.

Examples

# Create service chain 1 and enter its view.

<Sysname> system-view

[Sysname] service-chain path 1

[Sysname-spath1]

Related commands

display service-chain path

service function

Use service function to create a service node and enter its view, or enter the view of an existing service node.

Use undo service function to delete a service node or all service nodes on the service chain.

Syntax

service function function-number

undo service function { function-number | all }

Default

No service nodes exist.

Views

Service chain view

Predefined user roles

network-admin

Parameters

function-number: Assigns an ID to the service node. The value for the function-number argument is fixed at 1.

all: Deletes all service nodes on the service chain.

Usage guidelines

You can configure only one service node for a service chain.

Examples

# Create service node 1 and enter its view.

<Sysname> system-view

[Sysname] service-chain path 1

[Sysname-spath1] service function 1

[Sysname-spath1-func1]

Related commands

display service-chain path

service list

Use service list to create a service list.

Use undo service list to restore the default.

Syntax

service list { acg | atk | connect-limit | dpi | fw | ips | ipsec | lb | nat }*

undo service list

Default

No service list exists.

Views

Service node view

Predefined user roles

network-admin

Parameters

acg: Specifies the application control gateway (ACG) service.

atk: Specifies the attack detection and prevention service.

connect-limit: Specifies the connection limit service.

dpi: Specifies the deep packet inspection (DPI) service.

fw: Specifies the firewall (FW) service.

ips: Specifies the intelligent protection switching (IPS) service.

ipsec: Specifies the IP security (IPsec) service.

lb: Specifies the load balancing (LB) service.

nat: Specifies the network address translation (NAT) service.

Usage guidelines

You can configure only one service list for each service node. All services in a service chain must be different from each other.

The services in a service list are applied to the traffic in the order they are specified in a service list.

Examples

# Create a service list that contains the FW and LB services for service node 1.

<Sysname> system-view

[Sysname] service-chain path 1

[Sysname-spath1] service function 1

[Sysname-spath1-func1] service list fw lb

Related commands

display service-chain path