cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
2514
Views
5
Helpful
8
Replies

layer 3 switches inter-vlan

hello guys , i just got into layer 3 switches and i wish if someone can explain to me how do they work and all the ways to configure them for inter-vlan switching , i don't get them , also what's there relationship with the spinning tree protocole 

thanks 

8 Replies 8

Dennis Mink
VIP Alumni
VIP Alumni

I think you will need to reach out to a Cisco partner to do this,  otherwise, if you want to do it yourself, start by checking the product documentation on the various cisco pages, that best fit your model

Please remember to rate useful posts, by clicking on the stars below.

Sam Smiley
Level 3
Level 3

Here is a good guide...

http://www.cisco.com/c/en/us/support/docs/switches/catalyst-3750-series-switches/45002-intervlan3750-45002.html

Regards,
Sam

Hi

If you want to use inter vlan routing on your layer 3 switch, you need to execute: ip routing command globally. It is used to enable the routing capability on the switch. The layer 3 switches work like routers, allowing to use routing protocols like RIP, EIGRP, OSPF, etc. Usually this devices are called as Multilayer switches. 

Now spanning tree is used to avoid layer 2 loops. STP and inter-vlan routing can work together. STP ensure for the proper layer 2 performance and Inter-vlan is in charge of the communication between the vlans. On the layer 3 switch you will create the interface vlan <vlan> where the gateway for each subnet associated to the vlan. Example:

interface vlan 10
ip add 192.168.10.1 255.255.255.0
no shutdown

Hope it is useful

:-)




>> Marcar como útil o contestado, si la respuesta resolvió la duda, esto ayuda a futuras consultas de otros miembros de la comunidad. <<

well i could use more clarifications , for exemple how does spinning tree avoid loops ? also i could use a good tutorial for all types of configurations and labs on a layer 3 switch still don't get it 

Hi

Good question, well STP is used to avoid layer 2 loops, it is done disabling some interfaces that could create a loop. 

The switches can communicate between each other using the BPDU (Bridge Protocol Data Unit) it is the language between switches, now the BPDU includes 2 important information: priority and MAC address. If we merge these value we will get the Bridge ID, it basically is the identifier of the switches, Spanning Tree Protocol (STP) uses the Bridge ID to select a STP root bridge

The root bridge (or called root switch) is the top of the tree, it is like the Sauron eye (Lord of the ring), the root bridge can see all the traffic, it receives topology notifications and inform to the switches if a change has occurred. 

Now you can select the root bridge manually or it can be elected dynamically, the last way is not the recommended because it could select the a slowest or oldest switch. How to select the root bridge: Lowest bridge ID, lowest MAC address.

Once the root bridge elected the other switches must find the shortest path to the root bridge, STP assign value to Interfaces base on speeds for example:

10 Mb = 100
100 Mb = 19
1000 Mb = 4
10000 Mb = 2

So the ports to the root bridge are called root ports and the ports from the root bridge to the switches are called designed ports. Now the non root ports and non designated interfaces are blocked, usually these ports have higher costs to the root bridge, they are blocked to avoid loops but if in a situation the best path is down, these ports could be moved from blocked to forward to be used. 

There are several STP types: like PVST+, RSTP, Rapid PVST, MST, the target is the same but they have differences.

I would like to recommend these books:

http://www.ciscopress.com/store/lan-switching-first-step-9781587201004

http://www.ciscopress.com/store/routing-first-step-9781587201226

This was a brief explanation, there are more information but hope it is useful  

:-)




>> Marcar como útil o contestado, si la respuesta resolvió la duda, esto ayuda a futuras consultas de otros miembros de la comunidad. <<

Ganesh Hariharan
VIP Alumni
VIP Alumni
hello guys , i just got into layer 3 switches and i wish if someone can explain to me how do they work and all the ways to configure them for inter-vlan switching , i don't get them , also what's there relationship with the spinning tree protocole 
thanks 

Hi,

To add on Julio Comments, As you know VLAN-enabled switches cannot, by themselves, forward traffic across VLAN segments. So you need to have routing between these VLANs which is called interVLAN routing. 

As suggested IP routing command do that magic in switches , As soon as you enable lan on switches STP for those VLAN also comes in picture with default behaviour of PVST in switches.

SO you routing between subnets happens at Gateway level where you have enabled IP routing.

Hope it Helps..

-GI

the thing that i don't get is that , to use  a switch port as it was a router port i just need to tape no switcher on it right , after that i can configure it as it was a router , but but as long as i don't tape it on a all ports does it means that the switch is at the same time a layer 2 and 3 switch ? because i'm quite lost here , i remember that i configured it once without the ip routing command and it still work ,hope that you understand that it's not that i don't understand it it's that i have many informations that i don't know how to link between them 

Joseph W. Doherty
Hall of Fame
Hall of Fame

To your last question, first, STP works at L2 on a L3 switch just as it does with a L2 switch.  The only thing special with using a L3 switch, you can interconnect at L3 rather than L2, and if L3, you don't use STP across the L3 links.

At to understanding L3 switches, it sometimes helps to think of them as both a L2 switch and a router (which happens to function within the same physical device).

If you're not familiar with the topology, you might read up on "one-arm routing" or "routing-on-a-stick".

Then, assuming you can still find it, read Cisco's documentation on the Catalyst 5500 which supported MLS using a physically separate router or with a routing module.

Lastly, this kind of question is probably better posted on Cisco's Learning Network (https://learningnetwork.cisco.com/welcome).

Review Cisco Networking for a $25 gift card