show running-config current-context
Syntax
show running-config current-context
Description
显示当前非默认配置逃跑g on the switch in the current command context.
Command context
config
or a child ofconfig
. See Usage.
Authority
Administrators or local user group members with execution rights for this command.
Usage
You can enter this command from the following configuration contexts:
Any child of the global configuration (
config
) context. If the child context has instances—such as interfaces—you can enter the command in the context of a specific instance.Support for this command is provided for one level below the
config
context. For example, entering this command for a child of a child of theconfig
context not supported.If you enter the command on a child of the
config
context, the current configuration of that context and the children of that context are displayed.The global configuration (
config
) context.If you enter this command in the global configuration (
config
) context, it shows the running configuration of the entire switch. Use theshow running-configuration
command instead.
Examples
Showing the running configuration for the current interface:
switch(config-if)#show running-config current-contextinterface 1/1/1 no shutdown description Example interface vlan access 1 exit
Showing the current running configuration for thein-bandmanagement interface:
switch(config-if-mgmt)#show running-config current-contextinterface mgmt no shutdown ip static 10.0.0.1/24 default-gateway 10.0.0.8 nameserver 10.0.0.1
switch(config)#interface vlan 1Switch(config-if-vlan)#description IN-BAND Management Interface Switch(config-if-vlan)#ip dhcp Switch(config-if-vlan)#no shutdown Switch(config-if-vlan)#end Switch#
Showing the current running configuration for the in-band management interface without DHCP:
switch(config)#interface vlan 1Switch(config-if-vlan)#description IN-BAND Management Interface Switch(config-if-vlan)#no ip dhcp Switch(config-if-vlan)#ip address 192.168.10.1/24 Switch(config-if-vlan)#no shutdown Switch(config-if-vlan)#end Switch#
Showing the running configuration for the external storage share namednasfiles
:
switch(config-external-storage-nasfiles)#show running-config current-contextexternal-storage nasfiles address 192.168.0.1 vrf default username nasuser password ciphertext AQBapalKj+XMsZumHEwIc9OR6YcOw5Z6Bh9rV+9ZtKDKzvbaBAAAAB1CTrM= type scp directory /home/nas enable switch(config-external-storage-nasfiles)#