10-11-2023 09:11 AM
Hi,
I've have 2 SD cards for an IE4000. One which came with the switch which has the IOS bin on it as well as my config. The second card was ordered as a spare/brand new SD card and came blank/empty.
Both cards have had the exact same configuration run and saved on the SD cards. Both SD cards have the enr_var file which includes config-file sdflash:/config.text.
If I boot the switch without an SD card the switch starts with no configuration as expected.
If I boot the switch up with the SD card which has the IOS configuration on it, the switch starts with my configuration as expected.
If I start the switch with the SD card which was blank but now has my configuration stored on it, the switch starts with no configuration and I don't understand why.
Any help would be greatly appreciated.
Thanks
10-11-2023 03:38 PM
Post the complete output to the following commands:
sh bootvar
dir sdflash:
dir
10-23-2023 08:18 AM
Hi @Leo Laohoo
Please see the output from the switch, the sh bootvar command doesn't work on the IE4K
Directory of sdflash:/
3 -rw- 181 Jan 1 2000 22:03:10 +00:00 env_vars
4 -rw- 1096 Mar 30 2011 01:30:20 +00:00 config.text
5 -rw- 46604 Mar 30 2011 01:28:14 +00:00 pnap.dat
Directory of flash:/
2 drwx 512 Mar 30 2011 01:27:59 +00:00 managed
10 drwx 512 Mar 30 2011 01:27:59 +00:00 eem
11 drwx 512 Mar 30 2011 01:28:00 +00:00 pnp-info
12 drwx 1024 Nov 3 2022 13:20:50 +00:00 ie4000-universalk9-mz.152-8.E1
1910 drwx 512 Nov 3 2022 13:20:52 +00:00 dc_profile_dir
1912 drwx 512 Mar 30 2011 01:28:58 +00:00 pnp-tech
1915 -rwx 556 Mar 30 2011 01:27:58 +00:00 vlan.dat
1916 -rwx 46604 Mar 30 2011 01:28:13 +00:00 pnap.dat
1917 -rwx 2072 Mar 30 2011 01:28:04 +00:00 multiple-fs
I've tried this basic configuration on a "blank" switch with an SD card
Switch>en
Switch#config t
Switch(config)# boot config-file sdflash:/config.text
Switch(config)# hostname Test
Test(config)# exit
Test# exit copy run sdflash:/config.text
Thanks
10-23-2023 03:05 PM
The option "bootvar" is not valid. Try "sh boot".
10-24-2023 12:23 AM - edited 10-24-2023 01:29 AM
When the SD card is inserted, I can run boot config-file sdflash:/config.text and show boot reports that Config File: is set to start from SDFlash, however when I reboot the switch starts up blank.
This is the configuration we're running:
en
config t
hostname Test
boot config-file sdflash:/config.text
exit
copy run sdflash:/config.text
If I power off the switch, remove the SD card and plug the SD card into my PC I can see that env_vars and config.text get created on, env_var states CONFIG_FILE=sdflash:/config.text and config.text has hostname Test.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide