cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1709
Views
0
Helpful
13
Replies

Connect 2 different switches

manishpchawda
Level 1
Level 1

Hi,

 

Switch L3 - Route Mode

I have one Network with VLANs 

Network as 172.16.1.0 to 172.16.8.0

==================================

Switch L3 - Route ModeRouting

I have another Network with VLANs

Network as 192.168.1.0 to 192.168.5.0

 

I want to communicate between both networks. Kindly advise how can it be done.

 

Regards,

 

Manish

 

13 Replies 13

Martin L
VIP
VIP


in order to comunicate 2 devices must share a same subnet (network) , so u need to add trunk link with x.x.x.x /30 between 2 switches .
since u have L3 switches, they can do routing. so u can enable RIP or EIGRP or any other protocol and advertise networks u have on each switch.

add interface vlan x on both and add vlan x into database.  set ip address on interface vlan x in /30 like 10.0.0.x 255.255.255.252

other option is to disable switching on interface that will connect 2 switches together and set ip there.

 

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

you should get PT from Net Academy and go to CLN to find labs and practice files.

also latest version of PT comes with some samples, jsut find one u want by opening samples from file menu

see

https://learningnetwork.cisco.com/docs/DOC-24391

 

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

 

Hi,

 

Thanks for the reply.

I have changed the mode of the switch to router, then also I am not able to get the command <ip routing> 

 

Your advise I am not getting it, kindly can you explain me by example. 

 

 

 

get PT from CLN (free packet tracer software to practice cisco CLI_)

!

hostname SW2

interface FastEthernet0/1

switchport trunk encapsulation dot1q

switchport mode trunk

 

interface Vlan10

mac-address 0001.6314.6401

ip address 10.0.0.1 255.255.255.252

!

interface Vlan20

mac-address 0001.6314.6402

ip address 10.10.0.1 255.255.255.0

!

interface Vlan30

mac-address 0001.6314.6403

ip address 10.30.0.1 255.255.255.0

!

interface Vlan40

mac-address 0001.6314.6404

ip address 10.40.0.1 255.255.255.0

 

interface Vlan1

no ip address

shutdown

!

interface Vlan10

mac-address 0090.2b9d.ba01

ip address 10.0.0.2 255.255.255.252

 

Switch 1

interface FastEthernet0/1

switchport trunk encapsulation dot1q

switchport mode trunk

 

 

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

balaji.bandi
Hall of Fame
Hall of Fame

Create an port-channel/Trunk  between these switches and allow VLAN in the  port-channel / Trunk.

 

Either you can create a same VLAN SVI on both the switches, or do static route poing to each other gateways.

 

BB

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

How to Ask The Cisco Community for Help

Hi,

 

Thanks for the reply

Can you guide me with examples of commands for both the options. Since one network is a production environment and the other is testing so if anything goes wrong, production will be halted. Please help!

 

Also I came across that by ip routing it can be done. For that I have changed the mode of the switch to router, then also I am not able to use the command <ip routing>

I need to have some more information, what is the model of the switch ? when you mention switch to router mode (here we need to see your Running config to suggest better)

 

if it is acting as router mode, we need to create a Point to point interface between these device and exchange route.

we can provide sample config once you provide both the switch configs for reference.

 

BB

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

How to Ask The Cisco Community for Help

Hi,

 

One with Network 192.168.1.0 to 192.168.5.0 is Cisco SG-300

The config is attached

 

Other with Network 172.16.1.0 to 172.16.8.0 is HPE 5510

 

The config is attached 

 

Please guide. 

 

 

Also I am not able to understand one thing. Please make me understand.

I am accessing the Cisco switch from my PC which is remotely connecting another PC which is connected to Cisco switch.

My main PC is connected to HPE 5510 - i.e. 172.16.1.x

While the PC to whom I have remotely connected which is connected to Cisco SG-300 is having one NIC with 172.16.x.x

while another NIC is having 192.168.x.x

Based on the above I am able to access both Cisco SG-300 switches but for testing purpose I have connected one PC to Cisco-SG300 with 192.168.4.2 IP. This PC can access my PC which is connected to HPE 5510, but my PC which is connected to Cissco SG-300 is not able to connect the 192.168.4.2 PC.

 

I am attaching network diagram.

 

Please help.

Kindly advise.

 

 

Will you help me ?

Leo Laohoo
Hall of Fame
Hall of Fame
Manish,
Please go and speak to the instructor of this course. The role of the instructor is to point you to the correct direction on how to accomplish your school work.
If anyone of us provide you with the answer, no matter how relevant it is, the instructor may not like it (and may ultimately give you a bad score).

 I agree; if u doing homework, u may need to go back to books and school notes

 

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

Review Cisco Networking products for a $25 gift card