display current-configuration interface

Function

The display current-configuration interface command displays the set parameters that take effect on the device.

Format

display current-configuration interface [ interface-type [ interface-number ] | interface-number ] [ include-default ]

display current-configuration controller [ interface-type [ interface-number ] | interface-number ] [ include-default ]

Parameters

Parameter Description Value
include-default

Displays both the configurations that users have performed and default configurations.

-

interface interface-type interface-number

Specifies the interface name and type.

-

controller

Displays the configuration information about a controller interface.

-

Views

All views

Default Level

3: Management level

Task Name and Operations

Task Name Operations
cli debug

Usage Guidelines

Usage Scenario

  • After a set of configurations are complete, you can run the display current-configuration command to check the parameters that take effects. The parameters that do not take effect are not displayed. If some running configuration parameters are the same as the default parameters, they are not displayed.
  • If include-default is not specified, the display current-configuration command displays only configurations that users have performed.
  • If include-default is specified, the display current-configuration command displays both default configurations and configurations that users have performed.

Configuration Impact

You can filter the output using regular expressions in the case of a large amount of configuration information. For usage of regular expressions, see "Command Line Interface Configuration" in Configuration Guide - Basic Configurations.

Precautions

The following configurations are not displayed in the command output.

  • Configurations that are the same as default ones
  • Configurations that have not been committed
  • Configurations on a VS that is managed separately

Example

The actual command output varies according to the device. The command output here is only an example.

# Display the configuration parameters that take effect on a specified interface.
<HUAWEI> display current-configuration interface GigabitEthernet0/1/0
#
interface GigabitEthernet0/1/0
 undo shutdown
 ip address  ip address 192.168.1.1 255.255.255.0
#
return
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >