cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
6565
Views
5
Helpful
3
Replies

connect two subnets via switch

techgyu
Level 1
Level 1

Hi there,

I am a electronics engineer, not a network engineer. but I have done some basic cisco course, so I can understand some of the terminology. 

At work I was asked to connect the following two different subnet using cisco 2960x switch.  all the switches we have are cisco catalyst 2960x running version 15.2. 

 

switch layout.PNG

After bit of google I found that I need to enable static routes in "Switch 3" 

 

Things I've tried to enable static route in "Switch 3":

1. enabled lanbase-routing

2. enabled ip-routing

3. created two vlans and assigned ip address 

 

then I tried pinging 192.168.28.5 from 192.168.0.11, it was unsuccessful. 

from "switch 3" console tried pinging all the devices and its was successful.

 

Question:

what should I do to get communication between the above two subnet? am I in the right track?

 

thank you

3 Replies 3

Reza Sharifi
Hall of Fame
Hall of Fame

am I in the right track?

Yes, you are on the right track. Make you the device on the right side of the pictures has the correct default gateway. The same for the left side. Now, if all working correctly, you should be able to ping the devices on the left side from the devices on the right side and vice versa

Are you able to ping end-to-end? if not please post the output of "sh run"

 

HTH

 

balaji.bandi
Hall of Fame
Hall of Fame

Switch 3 should have a layer 3 interface as a gateway, is that configured in switch 3? 

 

make sure other switches are configured as Trunk ports between switches.

 

Pc with 192.168.28.X what is the gateway?

Pc 192.168.0.X what is the gateway and are you able to ping the gateway?

 

check the below video to help you :

https://www.youtube.com/watch?v=EM-etxhNjnY

https://www.youtube.com/watch?v=1gsE_tUfwHo

 

BB

***** Rate All Helpful Responses *****

How to Ask The Cisco Community for Help

Download Packet Tracer's source files: https://drive.google.com/file/d/1WWcB8ZFCJ8Hw9pDSGy3KV4lWzw4v57gC/view?usp=sharing Download the lab walk through docs: https://drive.google.com/file/d/13sw5JdwmwT0HVmPn9_En2HrBtejcm4mv/view?usp=sharing

Martin L
VIP
VIP

 

Your Sw 3 is not L3 switch but L2 which does not support routing; replace sw3 with L3 one (c3560 or c3650 that is more square box in PT) or a router. Then enable ip routing, make ports as trunk ports, add vlans to be same with other switches. Add  2 SVI in range of your 2 subnets.  That is interface vlan x , then add ip address 192.168.28.x , then  interface vlan y , ip address 192.168.0.y 

you do not need static routes if subnets are local;  L3 switch or a router knows about its directly connected routes.

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

Review Cisco Networking for a $25 gift card