The configuration of device stored in the NVRAM is that executed when the device is startup.
On devices that do not support the boot config command, startup-config indicates the
configuration stored in the default configuration file “/config.text” in built-in flash of devices.
On devices that use the boot config command to specify the startup configuration file, the
configuration indicated by startup-config complies with the following rules:
If the name of the startup configuration file is configured by the boot config command and
the file exists, startup-config indicates the configuration stored in the configuration file that
specified by the boot config command.
If the configuration file specified by the boot config command does not exist or the name of
the startup configuration file is not configured by the boot config command, startup-config
indicates the configuration stored in the default configuration file “/config.text” in built-in
flash of devices.