cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
4266
Views
0
Helpful
19
Replies

combine two switches

blue4ciscome
Level 1
Level 1

Hi, I want to connect my both 3560 switch togather.

1stswitch:

3 vlans but all server are attached to only one vlan8(ip 192.168.5.1/27

2ndswitch:3 Vlans but server are conneted to one vlan8(192.168.4.1/32

only 1st switch is connected to internet:

Requirement:

I want server with diff. subnet connected on both switches can ping each other n 192.168.4.0 series server can access internet too.

Pls. suggest a method with commands.

19 Replies 19

Jon Marshall
Hall of Fame
Hall of Fame

Hi

You can connect your two switches together with either

1) a L2 trunk

2) a routed P2P link.

Deciding which one to use depends on the existing setup.

You have 3 vlans on each switch. How is the routing between the vlans on each switch done ?

Jon

I will go for L2 trunk, out of 3 vlans my production vlan is only one that's vlan 8 on both switches.

I need guidance in depth as how to trunk n any specify commands since I do not want to disturb both switch functionality

Okay

If you trunk these switches there will be a blip while STP reconverges so you should not do this in production hours.

A L3 connection should have less effect than a L2 trunk.

Assuming we go with a L2 trunk - what are the VTP settings on the switches at the moment ? If the 3 vlans on switch1 and the 3 vlans on switch2 are different then we need to be careful otherwise we could end up deleting the vlans off one switch. So

1) Can you post a "sh vtp status" off each switch

2) Can you confirm whether yur 3560 switches are acting as purely L2 or do they route between their vlans.

Jon

1st2S04L3CS354SD02#sh vtp status

VTP Version : 2

Configuration Revision : 2

Maximum VLANs supported locally : 1005

Number of existing VLANs : 7

VTP Operating Mode : Server

VTP Domain Name :

VTP Pruning Mode : Disabled

VTP V2 Mode : Disabled

VTP Traps Generation : Disabled

MD5 digest : 0x38 0x5C 0x38 0x49 0xE3 0x72 0x6F 0xFF

Configuration last modified by 192.168.5.19 at 3-22-93 23:46:56

Local updater ID is 97.208.97.33 on interface Vl8 (lowest numbered VLAN interface found)

2nd2S04L3CS354SD01#sh vtp status

VTP Version : 2

Configuration Revision : 2

Maximum VLANs supported locally : 1005

Number of existing VLANs : 7

VTP Operating Mode : Server

VTP Domain Name :

VTP Pruning Mode : Disabled

VTP V2 Mode : Disabled

VTP Traps Generation : Disabled

MD5 digest : 0x9D 0x72 0x08 0x56 0xE8 0x0D 0xC4 0x13

Configuration last modified by 197.208.16.27 at 6-30-93 22:52:08

Local updater ID is 197.208.16.27 on interface Vl8 (lowest numbered VLAN interface found)

let me tell you currently I am using routing(internet cloud) between both switch to connect each other .

Thanks for this.

Apologies for all the questions but are the vlans on these 2 switches the same. The VTP shows the same configuration revision number as well.

I just want to make sure we don't break your network.

Jon

yes vlans are same on both switches

To create a trunk

sw1

int gi0/1

switchport trunk encapsulation dot1q

switchport mode trunk

sw2

int gi0/1

switchport trunk encapsulation dot1q

switchport mode trunk

Connect using cross-over cable or fibre.

BUT - still not sure we have the full picture here. You have the same vlan number on both switches using different subnets - not really sure how you envision this routing.

And i'm still not clear on whether you want to use one of your 3560's to route between vlans or not.

Jon

good, but I want to access vlan8(implemented) on both switches but with different ip

Hi blue4ciscome, quick question for you. Is there a reason you want VLAN 8 on different networks? If there is i think your best bet will be to use a p2p link and have a directly connected router between the two switches. Otherwise if you use a trunk I believe any broadcast traffic will transverse the switch and try to talk to any connection on VLAN 8 even if both switches have them defined as independent networks.

Someone please correct me if i'm wrong

Yes thr is a reason for different subnets. currently I have been connected thru a router(cloud) in mid of both switch, but it increases latency since we can't afford > 0.300 MS latency between both side servers connected on both switches.

ok, so is your current setup, switch - router - router - switch between these two sites? I'm kind of confused where the trunking would come in if their are routers between the two switches

setup is switch--router----cloud--router--switch. but thr is bandwidth limitation on router ports .. that's y I am looking to combine both switch without any router as direct trunking so that I can utilize all 1000 mbps port speed instead going thru routers.

If you have the same vlan numbers but using different IP's then forget about a trunk. Use a L3 routed link between your 2 switches ie.

sw1

int gi0/1

no switchport

ip address 192.168.5.1 255.255.255.252

sw2

int gi0/1

no switchport

ip address 192.168.5.2 255.255.255.252

You need to make sure that the 2 switches are either running a routing protocol or you can use static routes on each switch.

Jon

Good Jon,

one question Do I need to connect both switch phycially first for your solution to work like switch1--gi01---cross cable---gi01--switch2 ?

pls guide

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community:

Innovations in Cisco Full Stack Observability - A new webinar from Cisco