Solved

Connecting 2 Cisco Switches together

Posted on 2011-09-11
7
779 Views
Last Modified: 2012-05-12
I have 2 cisco 3560 and I want to connect these together with a single network cable.

Switch A has 3 Vlans (1 - Company A,2 - Company B,3 - Public) and I want to connect this to Switch B. The problem is Switch B belongs to company B and all I want to go over the link is Vlan 2. If I put the port on Switch A into switchport mode access & switchport access vlan 2 all I get is an orange light on Switch A but a Green on Switch B. If I change the port to trunk mode the light on switch A changes to green.

What I really want to do is treat Switch B like a dumb switch.

Thanks
0
Comment
Question by:jrgcomputing
7 Comments
 
LVL 10

Expert Comment

by:SuperTaco
Comment Utility
since you already have VLANs, the "dumb switch" is out of the question.  All you should have to do is connect a port on Switch A that is a VLAN member to a Port on switch b that is a VLAN member.

there the config

config t
int gi/0/1 (or whatever interface)
switchport access VLAN 2

this will dedicate that port to the VLAN.
0
 
LVL 2

Expert Comment

by:bgilsing
Comment Utility
Treating it as a dumb switch is not out of the question. On switch A set a port to be a member of VLAN 2 as if you were going to connect a workstation to it. Clear all VLAN config information on switch B and set it up as a dumb switch. Connect any port on switch B to the port you configured on switch A and your done. If you are not "trunking" vlans you don't have to change the mode of the ports to trunk mode. I think what you are missing is the cable type. If you are connecting two switches together you need a crossover cable. It flips the transmit and receive pairs so the switches can talk to each other. That's why you are getting an orange port. Lookup crossover cable on google if you need a pinout, or just go buy one if your not comfortable making cables.
0
 
LVL 11

Expert Comment

by:gmbaxter
Comment Utility
You'll need to set up a trunk between the switches, but limit the traffic which is allowed through the trunk. From memory, the 3560 has two separate gigabit ports, assuming you have a 48 port switch. Connect a crossover cable from switch A to B into the gigabit ports, and use the following config.

on switch A:
configure terminal
int gigabit Ethernet 0/1
no shutdown
description Trunk to switch B
switchport trunk encapsulation dot 1q
switchport mode trunk
switchport trunk allow vlan 2
exit
exit
wr

on switch B:
configure terminal
int gigabit Ethernet 0/1
no shutdown
description Trunk to switch A
switchport trunk encapsulation dot 1q
switchport mode trunk
switchport trunk allow vlan 2
exit
exit
wr

You'll now have a trunk between the two switches which will only pass vlan 2 traffic. You can then set all access ports on the switch to vlan 2.
0
What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

 
LVL 45

Accepted Solution

by:
Craig Beck earned 500 total points
Comment Utility
I would do this with an access port, as it isn't guaranteed that VLAN2 already exists on switch B, and if it does you might not want to link VLAN2 on switch A to VLAN2 on switch B.

In any event you will need to edit the configuration on both switches, so do this on switch A...

conf t
interface gi0/1
switchport mode access
switchport access vlan 2
end


And on switch B, configure the port you're connecting to the same, but set the VLAN to whatever you need it to be in.
0
 
LVL 3

Author Closing Comment

by:jrgcomputing
Comment Utility
The only thing I needed that wasn't mentioned is a crossover cable.
0
 
LVL 45

Expert Comment

by:Craig Beck
Comment Utility
You don't strictly need a crossover to link two 3560's together - they do Auto MDI-X!
0
 
LVL 3

Author Comment

by:jrgcomputing
Comment Utility
Yeah I thought that, but with a straight through cable I got orange light on one of the switches and green on the other. as soon as I tried a crossover cable it worked. I don't know if it mattered that one was a 3560g and the othe 3560.
0

Featured Post

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

Transferring data across the virtual world became simpler but protecting it is becoming a real security challenge.  How to approach cyber security  in today's business world!
Envision that you are chipping away at another e-business site with a team of pundit developers and designers. Everything seems, by all accounts, to be going easily.
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…

728 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now