04-25-2011 08:24 AM - edited 03-06-2019 04:46 PM
Question how I can switch routing between layer 2 and layer 3 switches?
04-25-2011 08:33 AM
I'm not clear on your question, but here goes.....
If by switch routing you mean multilayer switch, to enable switching and routing between the two simply enable routing on the switches (I'm assuming you have vlan interfaces with ip addresses already configured in this example:
Example
Switch A
Switch(config)# ip routing
Switch(config)# int gig0/25
Switch(config)#sw mode trunk
Switch(config)#no shut
Switch(config)#end
Switch B
Switch(config)# ip routing
Switch(config)# int gig0/25
Switch(config)#sw mode trunk
Switch(config)#no shut
Switch(config)#end
If you want to connect multiple routed vlans between two switches, you will need either a router (which you don't have apparently) or you will need to make the layer 3 switch a router and trunk Vlans configured on that switch.
Example
Switch A
Switch(config)#vlan 10
Switch(config)#int vlan 10
Switch(config)#ip address 10.10.10.1 255.255.255.0
Switch(config)#no shut
Switch(config)#vlan 20
Switch(config)#int vlan 20
Switch(config)#ip address 10.20.20.1 255.255.255.0
Switch(config)#no shut
Switch(config)# int gig0/25
Switch(config)#sw mode trunk
Switch(config)#no shut
Switch B
Switch(config)# int gig0/25
Switch(config)#sw mode trunk
Switch(config)#no shut
Please rate helpful posts.
04-25-2011 08:52 AM
No it is between a layer 2 switches and layer 3 router
04-25-2011 08:59 AM
In that case what you need to do is configure the VLANs on the switch, set the port on the switch that communicates to the router as trunk and define an encapsulation type for the trunk link... On the router interface you configure subinterfaces, one per each vlan you need to route, with their proper IP addressing and on each sub interface you would define the same encapsulation type you configured on the trunk link of the switch.
04-25-2011 09:02 AM
Here is a link about that:
http://www.cisco.com/en/US/tech/tk389/tk815/technologies_configuration_example09186a00800949fd.shtml
04-25-2011 09:06 AM
Here's a tutuorial (1st post attched pdf)
https://learningnetwork.cisco.com/thread/2401
Here's a cisco link (for older equipment, but works the same:
http://www.cisco.com/en/US/tech/tk389/tk815/technologies_configuration_example09186a00800949fd.shtml
Rate helpful posts.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide