Why?


Search This Blog

Wednesday, February 17, 2016

Cisco SG300-10 Initial setup and Firmware Upgrade

Cisco SG300-10 Initial setup and Firmware Upgrade

Serial into switch.
Used cable provided, straight 9 pin serial with double female ends, plus my USB to serial cable, USB and male serial ends.
At C:\ type "mode" to see what serial port the USB to serial cable is using.
Use Putty. Serial, 115200 speed, 8 data, 1 stop, and no parity or flow control.
Login with username cisco and password cisco.

User Name:cisco
Password:cisco

Please change your password from the default settings. Please change the password for better protection of your network. Do you want to change the password (Y/N)[Y] ? Y
Enter old password  : cisco
Enter new password  : password
Confirm new password: password

switch742bd5#set system mode router
Changing the switch working mode will *delete* the startup configuration file
and reset the device right after that. It is highly recommended that you will
backup it before changing the mode, continue ? (Y/N)[N] Y
switch742bd5#21-Dec-2015 17:00:25 %FILE-I-DELETE: File Delete - file URL flash://startup-config
Resetting local unit

**************************************************
*****************  SYSTEM RESET  *****************
**************************************************


Lots of other info included here before we get to prompt below.

User Name:cisco
Password:cisco

Please change your password from the default settings. Please change the password for better protection of your network. Do you want to change the password (Y/N)[Y] ?Y
Enter old password  : cisco
Enter new password  : password
Confirm new password: password

switch742bd5#


My network I want VLAN1 on is 192.168.10.0/24 with route out 192.168.10.1, DNS of 192.168.10.1, and I will use IP 192.168.10.254 for the switch IP address.

switch742bd5# conf t
switch742bd5(config)#interface vlan 1
switch742bd5(config-if)#ip address 192.168.10.254 /24
switch742bd5(config-if)#exit
switch742bd5(config)#ip default-gateway 192.168.10.1
switch742bd5(config)#ip name-server 192.168.10.1
switch742bd5(config)#exit
switch742bd5#write mem
Overwrite file [startup-config].... (Y/N)[N] ?Y
21-Dec-2015 16:57:33 %COPY-I-FILECPY: Files Copy - source URL running-config destination URL flash://startup-config
21-Dec-2015 16:57:36 %COPY-N-TRAP: The copy operation was completed successfully
Copy succeeded



Now reboot the switch and make sure the changes stuck.

switch742bd5#reload
This command will reset the whole system and disconnect your current session. Do you want to continue ? (Y/N)[N] Y
Shutting down ...


From Windows desktop I pinged the address 192.168.10.254, after the switch has rebooted.

C:\Users\glenw>ping 192.168.10.254

Pinging 192.168.10.254 with 32 bytes of data:
Reply from 192.168.10.254: bytes=32 time=1ms TTL=64
Reply from 192.168.10.254: bytes=32 time=1ms TTL=64
Reply from 192.168.10.254: bytes=32 time=1ms TTL=64
Reply from 192.168.10.254: bytes=32 time=1ms TTL=64

Ping statistics for 192.168.10.254:
    Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
    Minimum = 1ms, Maximum = 1ms, Average = 1ms


At this point I updated firmware to 1.4.2.4
I downloaded this on PC from the Cisco website and saved to my desktop.
I then logged into the web ui using username and password set prior.
Navigated to Administration -> File Management -> Upgrade/Backup Firmware/Language.
I selected Transfer Method: via HTTP/HTTPS, Save Action: Upgrade, File Type: Firmware Image.
File Name: (Browse to my desktop) sx300_fw-1424.ros
Clicked on Apply.
When finished click Done.
Now set the new firmware active under Administration -> File Management -> Active Image, Select image in drop down, and click Apply.
Now save changes under Administration -> File Management -> Copy/Save Configuration, using Source File Name: Running configuration Destination File Name: Startup configuration.
Click Apply.


Back to your Putty serial connection. Login if not already.

switch742bd5#reload
This command will reset the whole system and disconnect your current session. Do you want to continue ? (Y/N)[N] Y
Shutting down ...


After the restart verify some of your info so far.

switch742bd5#show ver
SW version    1.4.2.4 ( date  21-Dec-2015 time  16:45:33 )
Boot version    1.3.5.06 ( date  21-Jul-2013 time  15:12:10 )
HW version    V04
switch742bd5#show ip interface vlan 1


    IP Address        I/F    I/F Status  Type   Directed  Prec Redirect Status
                             admin/oper         Broadcast
------------------ --------- ---------- ------- --------- ---- -------- ------
192.168.10.254/24  vlan 1    UP/UP      Static  disable   No   enable   Valid

switch742bd5#ping 8.8.8.8
Pinging 8.8.8.8 with 18 bytes of data:

18 bytes from 8.8.8.8: icmp_seq=1. time=20 ms
18 bytes from 8.8.8.8: icmp_seq=2. time=20 ms
18 bytes from 8.8.8.8: icmp_seq=3. time=40 ms
18 bytes from 8.8.8.8: icmp_seq=4. time=20 ms

----8.8.8.8 PING Statistics----
4 packets transmitted, 4 packets received, 0% packet loss
round-trip (ms) min/avg/max = 20/25/40


switch742bd5#ping www.google.com
Pinging www.google.com (74.125.28.99) with 18 bytes of data:

18 bytes from 74.125.28.99: icmp_seq=1. time=60 ms
18 bytes from 74.125.28.99: icmp_seq=2. time=60 ms
18 bytes from 74.125.28.99: icmp_seq=3. time=60 ms
18 bytes from 74.125.28.99: icmp_seq=4. time=60 ms

----74.125.28.99 PING Statistics----
4 packets transmitted, 4 packets received, 0% packet loss
round-trip (ms) min/avg/max = 60/60/60



Now I setup a user name admin, with password password, with full rights, and will use this to SSH into the switch in the future.

switch742bd5#conf t
switch742bd5(config)#username admin password password privilege 15
switch742bd5(config)#exit
switch742bd5#write mem
Overwrite file [startup-config].... (Y/N)[N] ?Y
21-Dec-2015 16:52:11 %COPY-I-FILECPY: Files Copy - source URL running-config destination URL flash://startup-config
21-Dec-2015 16:52:14 %COPY-N-TRAP: The copy operation was completed successfully
Copy succeeded
switch742bd5#


Now turn on the SSH server

switch742bd5#conf t
switch742bd5(config)#ip ssh server
switch742bd5(config)#exit
switch742bd5#write mem
Overwrite file [startup-config].... (Y/N)[N] ?Y
Copy succeeded
switch742bd5#
switch742bd5#


You should now be able to SSH into the switch with IP 192.168.10.254 using the username admin with password password.

After you have SSH into the switch lets set a hostname. Since this is a SG300-10, it is located on a street called Jasper, and it is my first one of these..

switch742bd5#conf t
switch742bd5(config)#hostname SG300-10-JASPER1
SG300-10-JASPER1(config)#exit
SG300-10-JASPER1#write mem
Overwrite file [startup-config].... (Y/N)[N] ?Y
Copy succeeded
SG300-10-JASPER1#
SG300-10-JASPER1#


You can also turn off password aging now if you like.

SG300-10-JASPER1(config)#passwords aging 0SG300-10-JASPER1(config)#exit
SG300-10-JASPER1#show passwords configuration

Passwords aging is disabled.
Passwords complexity is enabled with the following attributes:
Minimal length: 8 characters
Minimal classes: 3
New password must be different than the current: Enabled
Maximum consecutive same characters: 3
New password must be different than the user name: Enabled
New password must be different than the manufacturer name: Enabled
switch742bd5#write mem
Overwrite file [startup-config].... (Y/N)[N] ?Y
Copy succeeded
SG300-10-JASPER1#
SG300-10-JASPER1#



If you want Jumbo frame support on your network then:

SG300-10-JASPER1(config)#port jumbo-frame 

SG300-10-JASPER1(config)#exitSG300-10-JASPER1#write mem
Overwrite file [startup-config].... (Y/N)[N] ?Y
Copy succeeded
SG300-10-JASPER1#SG300-10-JASPER1#

That's it for now. In a later post I will cover setting up VLANs. Enjoy!



No comments:

Post a Comment