No relevant resource is found in the selected language.

This site uses cookies. By continuing to browse the site you are agreeing to our use of cookies. Read our privacy policy>Search

Reminder

To have a better experience, please upgrade your IE browser.

upgrade

Command Reference

CloudEngine 8800, 7800, 6800, and 5800 V200R002C50

This document describes all the configuration commands of the device, including the command function, syntax, parameters, views, default level, usage guidelines, examples, and related commands.
Rate and give feedback :
Huawei uses machine translation combined with human proofreading to translate this document to different languages in order to help you better understand the content of this document. Note: Even the most advanced machine translation cannot match the quality of professional translators. Huawei shall not bear any responsibility for translation accuracy and it is recommended that you refer to the English document (a link for which has been provided).
SFC Commands

SFC Commands

NOTE:

Only CE6880EI supports this function.

service-chain enable

Function

The service-chain enable command enables the SFC function.

The undo service-chain enable command disables the SFC function.

By default, the SFC function is disabled.

Format

service-chain enable

undo service-chain enable

Parameters

None

Views

System view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

Before deploying a service chain, you need to enable SFC on all devices supporting SFC in an SFC domain. In this way, the devices can properly process received SFC-encapsulated packets and encapsulate packets to be sent using SFC.

Precautions

The SFC function can be enabled only when a license is available on the device.

Disabling the SFC function will cancel all SFC services. Therefore, exercise caution when running the undo service-chain enable command.

Example

# Enable the SFC function.
<HUAWEI> system-view
[~HUAWEI] service-chain enable

service-chain service-path

Function

The service-chain service-path command creates a service function path (SFP) and displays the service chain view.

The undo service-chain service-path command deletes an SFP.

By default, no SFP is created.

Format

service-chain service-path path-id

undo service-chain service-path path-id

Parameters

Parameter Description Value
path-id

Specifies the ID of an SFP.

The value is an integer that ranges from 1 to 16777215.

Views

System view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

An SFP is a path where each SF location is precisely defined so that packets matching classification rules are forwarded passing all SFs on the SFP. The last SF on the SFP decapsulates the network service header (NSH) of the packets and sends the packets back to the network for transmission.

After an SFP is created using the service-chain service-path command, an SFP ID tag is added to packets matching classification rules upon NSH encapsulation. The SFP ID uniquely identifies an SFP.

Precautions

The SFC function has been enabled using the service-chain enable command.

Example

# Create SFP 2.
<HUAWEI> system-view
[~HUAWEI] service-chain service-path 2

service-index next-hop

Function

The service-index next-hop command configures an SFP.

The undo service-index cancels the configuration of an SFP.

By default, no SFP is configured.

Format

service-index si-id next-hop { sff | sf [ nsh-proxy ] } { vtep vtep-ip-address vni vni-id | remote-ip remote-ip-address [ vpn-instance vpn-instance-name ] }

undo service-index si-id [ next-hop { sff | sf [ nsh-proxy ] } { vtep vtep-ip-address vni vni-id | remote-ip remote-ip-address [ vpn-instance vpn-instance-name ] } ]

Parameters

Parameter Description Value
si-id

Specifies the SI of a next hop.

The value is an integer that ranges from 1 to 255. The SI value decreases by 1 every time packets pass through an SF or the next hop of an SFF is an SFF.

sff

Specifies the type of a next hop as SFF.

-

sf [ nsh-proxy ]

Specifies the type of a next hop as SF.

If a next hop SF is of the SFC-unaware type, configure the nsh-proxy parameter.

-

vtep vtep-ip-address

Specifies the IP address of the next-hop Network Virtualization Edge (NVE) for the distributed VXLAN gateway.

The value is in dotted decimal notation.

vni vni-id

Specifies the VNI ID for the next-hop VTEP node in the tenant VPN domain.

The value is an integer that ranges from 1 to 16000000.

remote-ip remote-ip-address

Specifies the interface IP address of a next-hop SF.

The value is in dotted decimal notation.

vpn-instance vpn-instance-name

Specifies a next-hop VPN instance.

The value is a string of 1 to 31 case-sensitive characters without spaces. The value must be the name of an existing VPN instance.

Views

Service chain view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

After entering an SFC domain, packets are transmitted along the specified SFP, passing through SFs. You can run the service-index next-hop command on SFFs for multiple times to configure a complete SFP.

Precautions

If the service-index next-hop and service-index path-terminal commands are both executed for the same SI, the last configuration takes effect.

Example

# Configure an SF as the next-hop of SFP 3, and set the SI to 5 and IP address to 10.1.1.1.
<HUAWEI> system-view
[~HUAWEI] service-chain service-path 3
[*HUAWEI-service-chain-3] service-index 5 next-hop sf remote-ip 10.1.1.1

service-index path-terminal

Function

The service-index path-terminal command configures an SFF as the last hop of an SFP.

The undo service-index command cancels the next-hop configuration of an SFP.

By default, no last hop is not configured for an SFP.

Format

service-index si-id path-terminal [ vpn-instance vpn-instance-name ]

undo service-index si-id [ path-terminal [ vpn-instance vpn-instance-name ] ]

Parameters

Parameter Description Value
si-id

Specifies the SI of a next hop.

The value is an integer that ranges from 1 to 255. The SI value decreases by 1 every time packets pass through an SF.

vpn-instance vpn-instance-name

Specifies a next-hop VPN instance.

The value is a string of 1 to 31 case-sensitive characters without spaces. The value must be the name of an existing VPN instance.

Views

Service chain view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

Packets transmitted in an SFC domain carry SFP information including the SPI and SI. The SI value decreases by 1 every time a packet passes through an SF, marking SFs through which the packet has passed. When the SI value decreases to the specified value, the SFF decapsulates the NSH and sends the packet back to the network for transmission. When the SI value is 0, the device considers that a loop occurs and discards the packet.

Precautions

If the service-index path-terminal and service-index next-hop commands are both executed for the same SI, the last configuration takes effect.

Example

# Set the SI to 2 at the last hop of SFP 3.
<HUAWEI> system-view
[~HUAWEI] service-chain service-path 3
[*HUAWEI-service-chain-3] service-index 2 path-terminal

description (service chain view)

Function

The description command configures the description for an SFP.

The undo description command restores the default description for an SFP.

By default, no description is configured for an SFP.

Format

description description-content

undo description [ description-content ]

Parameters

Parameter Description Value
description-content

Specifies the description for an SFP.

The value is a string of 1 to 49 case-sensitive characters without spaces. When double quotation marks are used around the string, spaces are allowed in the string.

Views

Service chain view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

To manage SFPs conveniently, use the description command in the service chain view to configure SFP descriptions. The description of an SFP helps you identify the SFP and know its functions.

Precautions

Descriptions for SFPs must be meaningful and vary for different SFPs.

If you run the description command multiple times in the same service chain view, only the latest configuration takes effect.

Example

# Configure the description for SFP 2.
<HUAWEI> system-view
[~HUAWEI] service-chain service-path 2
[*HUAWEI-service-chain-2] description sfp_for_company_1

display service-chain service-path

Function

The display service-chain service-path command displays information about an SFP.

Format

display service-chain service-path [ path-id ]

Parameters

Parameter Description Value
path-id

Specifies the ID of an SFP.

The value is an integer that ranges from 1 to 16777215.

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

You can run this command to view information about an SFP with a specified SPI or all SFPs in the system.

Example

# Display information about SFP 1
<HUAWEI> display service-chain service-path 1
SPI: ServicePathIndex    SI: ServiceIndex
ServiceType: NA - NSH-aware, NUA - NSH-unaware
NodeType: SF - Service Function, SFF - Service Function Forward, PS - Post Service
Detailed ServicePath Information:
---------------------------------------------------------------------------------------------------------------------

     SPI     SI     RouteStatus     ServiceType     NodeType     NextHop              Vni     VpnInstance
---------------------------------------------------------------------------------------------------------------------
       1      1     Reachable       NA              SFF          1.1.1.1                0     vpna
       1      2     Reachable       NA              SFF          1.1.1.2                0     vpna
       1      3     Reachable       NA              SFF          1.1.1.3                0     vpna
Table 19-1  Description of the display service-chain service-path command output

Item

Description

SPI

Index of an SFP.

SI

Index of an SF.

RouteStatus

Route status.
  • Reachable: The route is reachable.
  • Unreachable: The route is unreachable.

ServiceType

NSH type.
  • NA: NSH is supported.
  • NUA: NSH is not supported.

NodeType

Next hop type.
  • SF: Service Function
  • SFF: Service Function Forwarder
  • PS: Post Service

NextHop

Next hop IP address. If a next hop is a PS, this parameter is displayed as --.

Vni

VNI ID mapping the tenant VPN instance.

VpnInstance

VPN domain.

redirect service-path

Function

The redirect service-path command redirects traffic to an SFP.

The undo redirect service-path command cancels traffic redirection to an SFP.

By default, traffic is not redirected to any SFPs.

Format

redirect service-path path-id service-index si-id

undo redirect service-path path-id service-index si-id

Parameters

Parameter Description Value
path-id

Specifies the ID of an SFP.

The value is an integer that ranges from 1 to 16777215.

service-index si-id

Specifies the SI of a next hop.

The value is an integer that ranges from 1 to 255.

Views

Traffic behavior view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

A Service Classifier (SC) is located on the edge of an SFC and classifies received traffic based on a specified matching rule. Packets matching the rule are redirected to an SFP and sent to the specified SFF. To redirect traffic to a specified SFP, run the redirect service-path command.

Precautions

The specified path-id and si-id must exist on a device.

Configure si-id based on the networking requirements.

Example

# Redirect traffic to SFP 3 in the traffic behavior b1.
<HUAWEI> system-view
[~HUAWEI] traffic behavior b1
[*HUAWEI-behavior-b1] redirect service-path 3 service-index 5
Translation
Download
Updated: 2019-03-21

Document ID: EDOC1000166501

Views: 49879

Downloads: 336

Average rating:
This Document Applies to these Products
Related Documents
Related Version
Share
Previous Next