Networking

Cisco SG300-20 basic configuration for VMware Lab

Learn the Cisco SG300-20 basic configuration for VMware Lab

Cisco’s line of small business fully managed switches I think are really great for learning Cisco networking as well as having everything you need to create a really functional VMware lab at the layer 2 and 3 network level. ย The small business switches allow you to do many of the crucial functions for setting up a VMware lab such as VLANS, lagging, layer 3 routing, and others. ย Many have probably noticed the Cisco small business switches are being used more and more for labs as it is proving itself as a really great inexpensive switch option for those configuring their first lab or upgrading an older virtualization lab. ย The SG300-10 is even the switch in the lab giveaway by VMTurbo.ย  I will take a deeper dive into more advancedย switch configuration (VLANS, LAG, etc) in a later post, however, for those of you out there who may have this switch or thinking about purchasing, I want to go through some of the basic “get up and going” steps that you will want to tackle when getting the switch up and running to start passing traffic.

Getting up and running

By default, my switch when I unboxed and plugged into my network, simply grabbed an IP address from my DHCP server for VLAN1 which allows you to open a web browser and hit the device. ย So you will need to look in your DHCP scope wherever this resides and find your Cisco device. ย It is helpful to have the MAC address handy as this will allow you to more quickly pinpoint the device in the address leases. ย Once you have the address, open a web browser and point to the IP via HTTP and you will come to the login page.

Default credentials:

  • user: cisco
  • pass:ย cisco

You will be prompted to change the password. ย Once you have your set password, you can proceed.

Updating Firmware

Download the latest SG300-20 firmware here: ย https://software.cisco.com/download/release.html?mdfid=283019616&softwareid=282463181&release=1.3.7.18&flowid=18904

Updating the firmware will be one of the first things you will want to tackle. ย The process isn’t difficult at all, just a littleย non intuitive. ย For most of you out there who have worked with TFTP and Cisco routers, this will be easy as falling off a log. ย However, for those who may not be so familiar, you will need to download a simple TFTP program. ย I highly recommend the free TFTP server from Solarwinds as it is easy to use, simple interface, and best of all FREE.

The process is pretty straightforward and normally involves updating both theย boot andย image portions of the system. ย However, in my case, theย boot image was already at the latest version which my systemย image was behind. ย So, for purposes of the update on my switch, I simply updated the system image and left the boot alone.

This may be a little bit confusing – why the two images? ย Theย boot imageย is a subset of the Cisco IOS software that is used when network booting when loading IOS images onto a device or when the system image has been corrupted, while theย system image is the full IOS that usually runs the switch

After setting up the TFTP server, you can now use it as a source for pulling the boot and system images for your switch. ย First things first though, let’s check the versions of images on our Cisco switch.

  • To do this, you issue theย show version command

ciscoupdate01

  • In my case, the system image was the portion that needed to be updated. ย So the command for updating the boot image:
copy tftp://192.X.X.X/sx300_fw-14088.ros image

If you need to update the boot image the syntax for that is:

copy tftp://192.X.X.X/sx300_boot-13506.rfb boot

ciscoupdate02

Now that we have the system image uploaded, we can look at the system images available by the command:ย show bootv

ciscoupdate03

 

To change the system image to the one we just uploaded, issue the commandย boot system image-1 which image-1 being the slot that your new firmware resides in.

ciscoupdate04

Now we need to reset the system…issue theย reloadย command.


ciscoupdate05

Changing the mode

In order to take advantage of VLAN routing and other nice features we want to use, we need to change the mode of the switch toย Layer 3. ย This is done under theย system settings portion of the management interface in the Web view.


ciscoupdate06

You get the warning that changing the system mode will cause the system to be rebooted, so be ready for the disconnection. ย You can initiate a continuous ping at this point to see when the device comes back up.


ciscoupdate07

Change Password Again

One interesting caveat to changing the switch mode is that your password is now changed back to the default:

user:ย cisco
pass:ย cisco

Once you hit the IP with the web interface, change your password again. ย One thing I wanted to do was enable SSH and telnet for connecting. ย To do this, you go to theย Securityย menu and thenย TCP/UDP Services and you will see the below screen over in the top right panel.


ciscoupdate08

 

You will also need to copy the running configuration over to the startup configuration which it will nag you to do.

ciscoupdate09

Setting a Static IP address

The best way to set a static IP on the SG300-20 is to use the CLI interface. ย In fact in the web view you can’t change the static IP address you want – you can simple change it to static, but it will use the IP that it has already grabbed from DHCP. ย To change to a static address, issue the commands:

show ip interface
config t
int vlan1
ip address 192.X.X.X 255.255.255.0


ciscoupdate10

ciscoupdate11

Well there you have it. ย Once you have followed the above steps, you will have an up to date switch firmware, password set, IP address assigned, and network services enabled that you may want to use for connecting.

Subscribe to VirtualizationHowto via Email ๐Ÿ””

Enter your email address to subscribe to this blog and receive notifications of new posts by email.



Brandon Lee

Brandon Lee is the Senior Writer, Engineer and owner at Virtualizationhowto.com, and a 7-time VMware vExpert, with over two decades of experience in Information Technology. Having worked for numerous Fortune 500 companies as well as in various industries, He has extensive experience in various IT segments and is a strong advocate for open source technologies. Brandon holds many industry certifications, loves the outdoors and spending time with family. Also, he goes through the effort of testing and troubleshooting issues, so you don't have to.

Related Articles

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.