Command Line Reference
Basic Configuration
System Boot Configuration
6 min
show running config show running config \[command] show running config \[purpose] display the currently running configuration information \[view] system view \[use cases] sonic# show running config! interface ethernet 1 dot1x accounting realtime 1000 dot1x reauthenticate period 1000 mtu 9210 no storm suppress broadcast storm suppress broadcast packets 10 ! ! ip protocol static route map rm set src ! line vty ! end show startup config show startup config \[command] show startup config \[purpose] display configuration information for startup \[view system view \[use cases] sonic# show startup config ! interface ethernet 1 dot1x accounting realtime 1000 dot1x reauthenticate period 1000 mtu 9210 no storm suppress broadcast storm suppress broadcast packets 10 ! ! ip protocol static route map rm set src ! ip protocol bgp route map rm set src ! ipv6 protocol bgp route map rm set src6 ! line vty ! end reboot reboot \[command] reboot \[ y] \[purpose] reboot system \[view] system view \[use cases] sonic# reboot write write \[command] write running config \[ y] \[purpose] configuration saving \[view] system view \[usage scenario] users modify the device's current configuration via the command line, and these configurations are temporary to ensure that the current configuration remains effective after the device is rebooted, it's necessary to save the current configuration to a configuration file before restarting the device \[notes] the configurations will be saved in json format in the system's /etc/sonic directory, with the filename as config db json the file saved during the previous 'write' command execution will be renamed in the format config db date for record keeping and rollback purposes \[use cases] sonic# wite running config save running config delete startup config delete startup config \[command] delete startup config \[all] \[ y] \[purpose] delete saved configuration \[view] system view \[notes] saved configurations related to the management interface will not be deleted if the "all" parameter is used, all configurations will be deleted \[use cases] sonic# delete startup config
