posted on 2016-08-13 17:52
These are the notes for setting up a cisco sg300 10 port switch with vlans via the cli. It's the best cheap switch with managing that happens to have a CLI that is similar to the ones on the bigger switches from cisco, and it comes with a serial interface.
Use this IP for acessing SSH or the webgui in your browser:
user: cisco pass: cisco
In case you need it because you cannot access the switch via IP any longer (scanning 10.0.0.0/8, 172.16.0.0/12 and 192.168.0.0/16 sure takes too much time to be feasible...), use its serial interface.
baud: 115200 (if not set otherwise) bits: 8 parity: N stopbits: 1 no flow control
To use it, connect a USB-to-Serial computer with your laptop and use putty/screen/minicom, depending on the OS you use.
First, all commands are abbreviated here.
? in the CLI if you want to know what you type here, use it alone, after some characters or as a parameter on its own after a command.
cisco devices have different modes, and you edit the configuration in RAM after you logged in.
To change all possible settings, you have to go into configure mode (
conf), and to save it, the volatile configuration has to be copied back to the flash memory (
copy run start or
In normal mode there just are not so many options.
To jump back,
More on the modes later on.
ctrl+d doesn't work, but
ctrl-z is its substitute.
ctrl + h
ctrl + u ctrl + k
screen's copy mode via
terminal datadump terminal no datadump
terminal history terminal no history terminal history size 206
# choose 'yes', of course, when being prompted copy run start # this also works but is deprecated wr t
For ease of use, when configure mode is needed, all the steps are shown. You can stay in configure mode if you want and perform several steps at once if you please.
conf t hostname <my_new_hostname> ctrl-z copy run start
conf t ip domain name <your_search_domain> ctrl-z copy run start
conf t username <new_user> privilege 15 password <new_password> username cisco privilege 1 password <doesnt_matter_you_dont_need_it_anymore> ctrl-z copy run start
What this was actually about was using the different privilege modes present on cisco switches.
privilege level 1 = user mode, '>' prompt privilege level 2 - 15 = privileged EXEC mode, '#' prompt configure = configure mode, '(config)' prompt
You can do fine-grained access-levelling, with commands available only at different privilege modes (i.e. 3, 6, 10, 14, 15, however you see it fitting), but we want to disable the basic account and create a new one.
Level 15 can do everything. Regular workflow is logging in, and using the enable password to elevate to administrator levels if need be.
enable <number> and
disable <number> you can enter higher or lower privilege modes, compared to your current one that can be looked up via
While in configure mode, you can enter sub-modes for some of the commands,
ctrl-z will work there, too.
conf t ip default-gateway <your_gw_ip> do copy run start
do keyword lets you run EXEC keywords from within configure mode.
posted on 2015-11-23 01:26:43
Resetting a SG300 is rather easy. Hold reset pressed until after like 10 seconds all port leds flash.
Login afterards is
posted on 2015-09-19 10:35:33
Factory resetting for a 2960G switch is rather easy:
Hold the button on the front panel, after like 3 seconds blinking, most lights should turn off. Keep the button pressed, after seven to ten more seconds, all lights will flash. Then switch is factory-resetted and will reboot.
Booting can take a while. Afterwards you are prompted for the initial installation.
This can either be done while being connected via a serial line (see next post here), or by using a pc connected via ethernet cable. Set the interface to DHCP and you should be able to access the switch in your browser via 10.0.0.1 through the web interface.
View posts from 2017-07, 2017-05, 2017-04, 2017-03, 2017-02, 2017-01, 2016-12, 2016-11, 2016-10, 2016-09, 2016-08, 2016-07, 2016-06, 2016-05, 2016-04, 2016-03, 2016-02, 2016-01, 2015-12, 2015-11, 2015-10, 2015-09, 2015-08, 2015-07, 2015-06, 2015-05, 2015-04, 2015-03, 2015-02, 2015-01, 2014-12, 2014-11, 2014-10, 2014-09, 2014-08, 2014-07, 2014-06, 2014-05, 2014-04, 2014-03, 2014-01, 2013-12, 2013-11, 2013-10