Solved

Connecting 2 Cisco Switches together

Posted on 2011-09-11
7
780 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
ID: 36518892
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
ID: 36518920
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
ID: 36518989
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
PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

 
LVL 45

Accepted Solution

by:
Craig Beck earned 500 total points
ID: 36519015
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
ID: 36530370
The only thing I needed that wasn't mentioned is a crossover cable.
0
 
LVL 45

Expert Comment

by:Craig Beck
ID: 36531052
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
ID: 36531335
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

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

It’s 2016. Password authentication should be dead — or at least close to dying. But, unfortunately, it has not traversed Quagga stage yet. Using password authentication is like laundering hotel guest linens with a washboard — it’s Passé.
David Varnum recently wrote up his impressions of PRTG, based on a presentation by my colleague Christian at Tech Field Day at VMworld in Barcelona. Thanks David, for your detailed and honest evaluation!
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…
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…

777 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