cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
474
Views
0
Helpful
6
Replies

Routing to and from VLAN

I have Cisco SG550XG switch-

Switch network overview - I have assigned IP address of the switch as 192.168.64.21 and have created a VLAN for some ports IP 192.168.65.21. 

Now currently I have 64 and 65 subnet to use, but the issue is How to allow routing between VMs on 64 and 65 subnet.

Ex I have a VM 65.22 and 64.22, they are not able to ping one another. 

I found this settings on my switch - IPv4 static routing. Will this work and what to write in its field.

mayanksrivastava_0-1711477414297.png

Really appreciate any help

1 Accepted Solution

Accepted Solutions

I understood your question, and your reply confirms that I understood it correct.

The SG550XG is a Layer 3 switch which is part of Cisco Small Business portfolio. Being a Layer 3 switch, the two Vlans you created on the SG550XG, each with it's own IP subnet, will appear to the switch as two connected interfaces. A Layer 3 device, router or L3 switch, natively routes packets between connected interfaces because the two IP subnets corresponding to the two Vlans will appear in the routing table of the L3 switch and thus enabling it to forward packets.

All you need to do is set the default gateway for hosts in Vlan 64 to the corresponding IP configured on the switch for Vlan 64 and for hosts in Vlan 65 to the corresponding IP configured on the switch for Vlan 65.

Give it a try. If vlans are configured correct on the switch, it will work.

Regards, LG
*** Please Rate All Helpful Responses ***

View solution in original post

6 Replies 6

liviu.gheorghe
Spotlight
Spotlight

Hello @mayank srivastava ,

your switch should route natively between connected subnets. 

You should configure VM 65.22 with default gateway 192.168.65.21 and VM 64.22 with default gateway 192.168.64.21

Hope this helps.

Regards, LG
*** Please Rate All Helpful Responses ***

I have a gateway as 65.1 and 64.1. 

mayanksrivastava_0-1711478794442.png

 

Please provide step by step commands to achieve this.

It depends on the operating system you are using, but for Windows 10 you have:

  1. Select Start , then select Settings  > Network & Internet .

  2. Do one of the following:

    • For a Wi-Fi network, select Wi-Fi  > Manage known networks. Choose the network you want to change the settings for, then select Properties.

    • For an Ethernet network, select Ethernet, then select the Ethernet network you’re connected to.

  3. Under IP assignment, select Edit.

  4. Under Edit IP settings, select Automatic (DHCP) or Manual.

    1. To specify IPv4 settings manually

      1. Under Edit IP settings, choose Manual, then turn on IPv4.

      2. To specify an IP address, in the IP address, Subnet prefix length, and Gateway boxes, type the IP address settings.

Regards, LG
*** Please Rate All Helpful Responses ***

Don't know whether you can understand my question or reply.

We are using the Debian systems and know how to set up static IP addresses. The concern here is How to ping VMs on different subnet?

The 2 subnets (64 & 65) VLAN are created on same switch Cisco SG550XG. I want steps to allow packets routing between VLANs. I read that this is possible in Layer 3 switch. 

I hope you will be able to understand this better now.

I understood your question, and your reply confirms that I understood it correct.

The SG550XG is a Layer 3 switch which is part of Cisco Small Business portfolio. Being a Layer 3 switch, the two Vlans you created on the SG550XG, each with it's own IP subnet, will appear to the switch as two connected interfaces. A Layer 3 device, router or L3 switch, natively routes packets between connected interfaces because the two IP subnets corresponding to the two Vlans will appear in the routing table of the L3 switch and thus enabling it to forward packets.

All you need to do is set the default gateway for hosts in Vlan 64 to the corresponding IP configured on the switch for Vlan 64 and for hosts in Vlan 65 to the corresponding IP configured on the switch for Vlan 65.

Give it a try. If vlans are configured correct on the switch, it will work.

Regards, LG
*** Please Rate All Helpful Responses ***