How to connect two Vlans to communicate with the Database server
I have a Cisco SG200-50 50-port Gigabit Smart Switch
The sg200-50 Smart switch is layer two.
First vlan ip address range
Second vlan ip address range

  • You have specified IP address while you've mentioned range
    – SuB
    Apr 4, 2017 at 12:42

3 Answers 3


In order to cross from one subnet (layer 3 boundary) to another, you need a router. The SG200 is a layer 2 only switch.

You might also consider putting all your devices into one VLAN, although with the limited information you've provided, I can't recommend that for sure.


If the server has two NIC card, you can connect one NIC to vlan related to subnet and second NIC to vlan I have seen the environment where server can support trunk with one NIC card, and from the switch side, enable trunk and allowed vlan list, not sure for your server it support or not. Let me know if that helps you.

  • my server doesn't support it.
    – Noob
    Apr 8, 2017 at 19:52

There are 4 mandatory steps:

1) Create the vlans

Vlan 10
Vlan 20

2) Create vlan interfaces

int vlan 10
ip add 
int vlan 20

3) Assign relevant interfaces to correct vlan. E.g. lets imagine fa0/1 is pointing to PC0 ( vlan 1).

int fa0/1 
switchport mode access 
switchport access vlan 10

4) Enable ip routing on the switch.

NOTE: Do not forget to put a default GW on the PCs pointing to the address of the switch in the respective vlan.

E.g. If PC0 is in vlan 10 following setting will be fine:

GW ( IP of the SW in VLAN 10)
  • 1
    SG200 is a layer 2 only switch
    – Ron Trunk
    Apr 4, 2017 at 12:30

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.