• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 19247
  • Last Modified:

VLAN configuration on Cisco SG300/SG500

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.
  • 4
  • 2
2 Solutions
Sandeep GuptaConsultantCommented:
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:


proteus-IVAuthor Commented:
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.
The SG series do not run IOS so the command syntax is going to be a little different.
Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

proteus-IVAuthor Commented:
Ok, can you give me the IOS commands and I will find out how I need to modify them?
proteus-IVAuthor Commented:
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?
proteus-IVAuthor Commented:
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

Get your Disaster Recovery as a Service basics

Disaster Recovery as a Service is one go-to solution that revolutionizes DR planning. Implementing DRaaS could be an efficient process, easily accessible to non-DR experts. Learn about monitoring, testing, executing failovers and failbacks to ensure a "healthy" DR environment.

  • 4
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now