cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
700
Views
0
Helpful
5
Replies

switch routing between layer 2 and layer 3 router

pcfreak49
Level 1
Level 1

Question how I can switch routing between layer 2 and layer 3 switches?

5 Replies 5

Antonio Knox
Level 7
Level 7

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.

No it is between a layer 2 switches and layer 3 router

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.

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.

Review Cisco Networking products for a $25 gift card