I have a Cisco SG300-28 switch with the latest firmware which is colocated.

My colocation facility has hooked up a KVM like device to the serial console, so I can ssh into the switch to configure it.

I'd like to do the following.

  • Reset the switch to factory defaults

  • Convert it to Layer 3 mode

  • Make it so that it the web interface answers on the ip address the facility has given me can be logged into via a web browser.

(For the sake of examples please assume the web address is and it's a /28. The actual ip address is a real routable ip).

I've tried many permutations on snippets I've seen on the web, but haven't gotten the switch to serve its web interface.

If someone could provide me with an example of what to type, so I can get the switch working that would be great.

  • If your question was answered, you should accept the answer so that the question doesn't keep popping up forever, looking for an answer.
    – Ron Maupin
    Dec 26, 2016 at 16:22
  • Did any answer help you? If so, you should accept the answer so that the question doesn't keep popping up forever, looking for an answer. Alternatively, you can provide your own answer and accept it.
    – Ron Maupin
    Aug 7, 2017 at 16:55

1 Answer 1


You can erase the startup-config and reload to get the factory configuration.

I think you mean Layer-3, not Level 3, and it is a Layer-3 switch.

A best practice for security is to disable the HTTP server and HTTP secure-server in Cisco devices, but you can enable it with the ip http server command. You will need to have a configured IP address on the switch which you can reach for the web interface to work.

Without a complete network design, we can't begin to guess how you have it connected or your needs, and we would just be guessing on a proper configuration.


This is all very simple stuff for a switch, and I would strongly recommend you get someone who knows how to do this to configure it for you. It is not a simple thing like a home router, and it sounds like you don't have a firewall protecting it, which seems a very foolish idea.

  • What would you recommend for a firewall? Jan 1, 2016 at 10:04
  • 1
    Unfortunately, product and resource recommendations are off-topic.
    – Ron Maupin
    Jan 1, 2016 at 17:48

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.