Does anyone who is familiar with the Cisco SG300 series switches no a way to reset an interface back to default (empty config) settings? The standard Cisco "default interface" command is not available in the CLI and the best I seem to be able to accomplish is be removing most of the configuration with "no" commands but you can't remove everything.
I don't know if it works on these (it is a classic IOS trick), but if you save it on a remote system, edit it there, and then copy it back with "config overwrite" and reload, you'll ge the desired result.
Sometimes the defaults are non-obvious. Removing "speed nonegotiate" is "no speed nonegotiate", not "speed negotiate"*. Even worse are the commands that are more than on / off, and/or depend on other commands. The trunking commands are like that. If you have an interface you've never modified, you can see both what the config looks like and what "show interface" reports its settings are. If you're lucky, you'll have a command like "show derived-config" that shows you everything, including defaulted options.
* Funny anecdote: In the 80's, the DEC RSTS/E operating system implemented the same CLI (DCL) as DEC VMS. For those unfamilar, commands went like this: command-verb/option1/option2 target. Options could be either /foo or /NOfoo, depending on whether they were a default or not. The RSTS/E folks found an oddball corner case - one of the options to the batch and printing commands SUBMIT and PRINT was the /NOTIFY option to inform the user when the job completed. Since it wasn't a default option, it never needed to be negated. Which is good, as the negation was
not /NONOTIFY. Are you seeing where this is going yet?
/NOTIFY already had a "/NO" in it. So the negated form was /TIFY.