show running-config

This topic explains the command that displays the running configuration, either for the whole switch or for one interface.

Syntax

show running-config [interfaces id]

Parameter

id: As an option, show the content of the running configuration for a specific interface. The id parameter represents the interface number, allows a partial port name, and is not case-sensitive.

Default

No default value.

Mode

Privileged EXEC

Usage

Use the show running-config command to show the running configuration for the switch.

Use the show running-config interfaces command to show the running configuration for a specific interface.

Note: The configuration file is text based.

Example

This example shows how to display the running configuration for the switch:

CODE
Switch# show running-config
! Model: GS728TPv2
! System Description: NETGEAR 24-Port Gigabit PoE+ Smart Managed Pro Switch with 4 SFP Ports (GS728TPv2)
!

...
This example shows how to display the running configuration for interface g1:
CODE
Switch# show running-config interfaces g1
interface g1
 speed 1000

...