< Home

display port-forwarding

Function

The display port-forwarding command displays the configuration of port-forwarding.

Format

display port-forwarding [ resource [ resource-alias ] ]

Parameters

Parameter Description Value

resource

Displays the configuration of port-forwarding resources.

-

resource-alias

Specifies the alias of port-forwarding resources.

It is a string of 1 to 31 case-sensitive characters.

Views

Function service view

Default Level

0: Visit level

Usage Guidelines

None

Example

# Display the configuration of the port-forwarding function.

<sysname> system-view
[sysname] v-gateway abc
[sysname-abc] service
[sysname-abc-service] display port-forwarding
  VG Port Forwarding Information
  -------------------------
  Port Forwarding State:   enable
  Keep Alive State:        disable
  Auto Start State:        disable

  ----End
Table 1 Description of the display port-forwarding command output

Item

Description

Port Forwarding State

Whether the port forwarding function is enabled:
  • enable: indicates that the function is enabled.
  • disable: indicates that the function is disabled.

Keep Alive State

The status of the keepalive function for network extension.

Auto Start State

The status of the auto-start function for network extension.

# Display the configuration of port-forwarding resources.

[sysname-abc-service] display port-forwarding resource
                         VG Port Forwarding Resource List
                         --------------------------------

   No.    ResourceAlias   Resource         Port  ResourceDescription
------------------------------------------------------------------------------
  1       a               www.example.com        21
------------------------------------------------------------------------------

  ----End
Table 2 Description of the display port-forwarding resource command output

Item

Description

ResourceAlias

The alias of resources.

Resource

Port forwarding resources.

Port

The number of the port through which the host provides resources.

ResourceDescription

Detailed description of the resource.

Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
Next topic >