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
ID: 38826890
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

ID: 38827009
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

ID: 38827846
The SG series do not run IOS so the command syntax is going to be a little different.
Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.


Author Comment

ID: 38830043
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
ID: 38832236

Author Comment

ID: 38834206
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

ID: 38901126
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

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Let’s list some of the technologies that enable smooth teleworking. 
If you're not part of the solution, you're part of the problem.   Tips on how to secure IoT devices, even the dumbest ones, so they can't be used as part of a DDoS botnet.  Use PRTG Network Monitor as one of the building blocks, to detect unusual…
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor ( If you're looking for how to monitor bandwidth using netflow or packet s…
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor ( If you're interested in additional methods for monitoring bandwidt…

856 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