show running-config

Retrieves current running configuration from the system.
Syntax
show running-config [ interface [ ethernet unit/slot/port [ to unit/slot/port | [ ethernet unit/slot/port to unit/slot/port |ethernet unit/slot/port ] [ lag lag-idto lag-id | lag lag-id ]... ] | loopback loopback-port-num | management mgmt-port-num | tunnel tunnel-port-num | ve ve-port-num ] ]
show running-config [ interface [ lag lag-d [ to lag-id | [ lag lag-id to lag-id | lag lag-id ] [ ethernet unit/slot/port to unit/slot/port | ethernet unit/slot/port ]... ]
show running-config [ vlan vlan-id ]
show running-config [ vrf ]
Parameters
interface
Displays the running configuration for the specified interface type.
ethernet unit/slot/port
Displays the running configuration on the specified Ethernet interface.
to unit/slot/port
Specifies the range of the Ethernet interface for which to display the running configuration.
lag lag-id
Specifies the LAG virtual interface.
to lag-id
Specifies a range of LAG virtual interface IDs.
loopback loopback-port-num
Displays the running configuration information for the specified loopback interface.
management mgmt-port-num
Displays the running configuration information for the specified management interface.
tunnel tunnel-port-num
Displays the running configuration information for the specified tunnel interface.
ve ve-port-num
Displays the running configuration information for the specified VE port.
vlan vlan-id
Displays the running-configuration for the specified VLAN.
vrf
Displays the VRF-Lite running configuration.
Modes

User EXEC mode

Usage Guidelines

Use this command to display the configuration that is currently active on the local switch but which is not saved persistently.

Examples

The following example displays sample output of the show running-config command when the vlan keyword is used.

device(config)# show running-config vlan 100
vlan 502 by port 
 tagged lag 1 ethe 1/2/5 
 router-interface ve 502 

The following example of the show running-config command displays information on configured LAGs in sequential order by LAG ID.

device(config)# show running-config
Current configuration:
!
!
lag lag1 dynamic id 1
!
lag lag2 dynamic id 2
!
lag lag3 dynamic id 3
!
lag lag14 dynamic id 14
!
lag lag25 dynamic id 25
!
lag lag100 dynamic id 100
!
lag dyn-MgM-MCT dynamic id 112
 ports ethe 1/2/1 to 1/2/2 ethe 1/2/5 to 1/2/6
!
Note: By default, telnet server is disabled and its disabled status is not displayed in the show running-config command.
History
Release version Command history
08.0.61 This command was modified to add lag lag-id options. This command was modified to include information about dynamically obtained DHCP options.
08.0.92 This command was modified to display LAG information ordered sequentially by LAG ID, rather than alphabetically by name.
08.0.95 The command was modified so that information is displayed for router advertisement (RA) route information configurations.
09.0.00 This command was modified so that information is displayed for RESTCONF configurations.
10.0.10 Added note about Telnet disabled by default.