VLAN configuration on Cisco SG300/SG500

Posted on 2013-01-28
Last Modified: 2014-04-14
I have 5 Cisco SG-300 and 1 Cisco SG-500 switches.
I want to configure VLANs on each switch and set up inter-VLAN routing.
All switches operate in Layer-3 mode.

The SG-300 switches will have 172.16.[3-7].0/24 subnets for VLAN, SG-500 will have subnet.

Each switch is phisically located on a different floor/different building.
The SG-500 is located in the Server room and all SG-300 switches are connected to it.

How should I configure the switches?
I need exact CLI commands for setting up VLANs, assigning them to ports and setting up routing between VLANs.
Question by:proteus-IV
  • 4
  • 2

Assisted Solution

by:Sandeep Gupta
Sandeep Gupta earned 250 total points
Comment Utility
before starting..check

switch# show system mode

Feature                 State
-------------------     ---------
Mode:                   Switch

then proceed:

switch# configure terminal
switch(config)# interface vlan 1
switch(config-if)# ip address
switch(config-if)# exit
switch(config)# interface vlan 2
switch(config-if)# name Voice-VLAN
switch(config-if)# ip address
switch(config-if)# exit
switch(config)# vlan 5
switch(config)# interface vlan 5
switch(config-if)# name Guest-VLAN
switch(config-if)# ip address
switch(config-if)# exit

informative links:,d.d2k

Author Comment

Comment Utility
switch# show system mode
% Wrong number of parameters or invalid range, size or characters entered

I have only these autofill comands for "show system":
#show system    
  id                   Display system identity information
  languages            show supported languages
  resources            show System level resource configuration
  tcam                 tcam
  unit                 Unit number (relevant for stackable systems only)

Also, how do I assign or remove ports from VLAN?
Do I have to set port mode to general, access, trunk, tagged, untagged on SG-500?
Do I have to configure VLANs on both SG-500 and SG-300 switches?

I forgot to mention, I need to setup DHCP relay, so that clients from each subnet on VLAN can get an appropriate address from respective scope on DHCP server.
DHCP server is located on 192.168.0/24 subnet and clients will be on 172.16.[3-7].0/24 subnets.

Expert Comment

Comment Utility
The SG series do not run IOS so the command syntax is going to be a little different.
Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.


Author Comment

Comment Utility
Ok, can you give me the IOS commands and I will find out how I need to modify them?

Accepted Solution

Leeeee earned 250 total points
Comment Utility

Author Comment

Comment Utility
For test I set up one port on SG-300 as a tagged member of VLAN2=
If i choose Interface VLAN mode as General I cannot set default VLAN1 as excluded.
I can only set the PVID to VLAN2 and then set it as tagged.

To what mode do I need to set the ports on SG-300 and SG-500 (Access, General, Trunk, Customer, Forbidden, Tagged, Untagged or Multicast TV VLAN)?

When I set a port on SG-500 as VLAN2 member and tagged, connected SG-300 to that port.
Set a port to which a PC connects on SG-300 to mode Access and VLAN2 tagged member, when I try to get an IP via DHCP on the PC i do not get anything.
I set up DHCP relaying on the SG-500 interface connecting to SG-300.

Also, I cannot change VLAN membership when port is in Access mode without changing the PVID. What is PVID actually and what do I need to set it to?

Why do DHCP requests do not get passed through my DHCP server on subnet?

I set VLAN1 to subnet. VLAN1 is the default VLAN. Should I be using this VLAN in my configuration or not? For what is this default VLAN used?

How do I go on about this?

Author Comment

Comment Utility
I have setup a test configuration.
I have 2 SG300 and 1 SG500 switch.
I am trying to setup inter-VLAN routing and DHCP relay.
They are connected thusly:
On switch1 I have set up VLAN3 with subnet and on switch3 I have VLAN2 with subnet
I need these VLANs to be able to communicate between each other.
I can ping from APC connected to switch1 to VLAN2 and VLAN3 IPs on switch2, but I cannot ping to those VLANs on switch2 from a PC connected to switch3.
Also, when I connect to managment interface on switch3 I cannot ping VLAN2 and VLAN3 interface IPs on switch2.
Traffic on default VLAN1 is passing through, though.
I tried changing the cable that connects switch 2 and switch3, but it didn't help.
What could be the issue here?

Featured Post

Give your grad a cloud of their own!

With up to 8TB of storage, give your favorite graduate their own personal cloud to centralize all their photos, videos and music in one safe place. They can save, sync and share all their stuff, and automatic photo backup helps free up space on their smartphone and tablet.

Join & Write a Comment

AWS has developed and created its highly available global infrastructure allowing users to deploy and manage their estates all across the world through the use of the following geographical components   RegionsAvailability ZonesEdge Locations  Wh…
In the world of WAN, QoS is a pretty important topic for most, if not all, networks. Some WAN technologies have QoS mechanisms built in, but others, such as some L2 WAN's, don't have QoS control in the provider cloud.
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
Here's a very brief overview of the methods PRTG Network Monitor ( offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…

728 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now