跳转到内容
Ask AI

System Boot Configuration

此内容尚不支持你的语言。

[Command] show running-config

[Purpose] Display the currently running configuration information

[View] System view

[Use Cases]

sonic# show running-config
!
interface ethernet 1
mtu 9210
!
!
ip protocol static route-map RM_SET_SRC
!
line vty
!
end

[Command] reboot

[Purpose] Reboot system

[View] System view

[Use Cases]

sonic# reboot

[Command] write

[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# write
save running-config...

[Command] delete startup-config

[Purpose] Delete saved configuration

[View] System view

[Notes] Saved configurations related to the management interface will not be deleted.

[Use Cases]

sonic# delete startup-config