Wuggles
2 posts

As a fresh young newblet I was wondering if there were any recommendations for a sort of basic set of "cleanup" commands to use at the end of a session in order to prepare the system for the next user.

joshlowe
94 posts

I would suggest:

Router# erase startup-config
and:
Router# reload

on all devices. If prompted to save your configuration, say no. Also, if it is a switch, do this as well (before you reload):

Switch# del vlan.dat

HTH,
Josh

Wuggles
2 posts

Isn't erase one of the commands we aren't supposed to use?

stretch
258 posts

erase startup-config is fine; it just erases the saved config, if one exists. Don't use erase flash:, as that will format the Flash filesystem (a bad thing). The console manager should boot you out if you try to issue this command. The lab FAQ has more info on disallowed commands.

joshlowe
94 posts

I've never used the lab, but I'm curious to know if del vlan.dat works since delete is disallowed. Is it one of the exceptions as well?

skydiver
3 posts

I do agree with joshlowe suggestions, I always use 'erase start', and 'reload'. And for the 'del vlan.dat' command, it works too but could give some surprising output for a newbie. A simple 'no' for any vlan or ip address configured could suffice.

Especially when you haven't seen a setup mode before you could unintentionnally configure a enable secret password on the switches. This would create a password recovery procedure for Jeremy, and that is something we should avoid.

For more info on the setup mode I would like to refer to "Erasing Configurations On Routers And Switches" on http://www.thebryantadvantage.com.

And just to be polite for the next users I like to configure frame-relay on the S0/0/0 ports.

Router(config-if)#encap frame ietf Router(config-if)#frame lmi-type cisco

But I'm not sure this is necessary, because of the software implementations on the access server.

Darko
3 posts

Whenever i am leaving a lab i am using following command and all of them works :

D# write erase

D# delete flash:vlan.dat

D# reload

Those commands completely clears device for next student who will be using a lab.

stretch
258 posts

joshlowe: I fixed the wiki page to show that the delete command can be used to delete files other than OS images. Thanks for catching that.

Viewing 1 - 8 of 8

  • 1