Routing VLANs

Let s say  I have 10  Layer 2 Switches with 2 VLans on each switch, then connect those 10 Switches to a Core/Distribution Layer 3 Switch.  Then Route all Vlans from Core Switch to Router R1

If I am not wrong I will need to Configure a Trunk port on each L2 Switch and connect them (all Trunk ports)to Core/Distribution Layer 3 Switch ports. Then configure IP Routing command within Core/Distribution Layer 3 Switch so that VLANs can communicate between themselve. At this point PCs on L2 Switch will be able to communicate between themselves...

Now if I need to route the VLANs from Core/Distribution Layer 3 Switch to Router R1 , what should I configure on Core/Distribution Layer 3 Switch and R1 ?

Thank you
jskfanAsked:
Who is Participating?
 
JustInCaseConnect With a Mentor Commented:
if you have network for example network 192.168.0.0/24 in your network - core switch need to have route:
R1(config)# ip route 192.168.0.0 255.255.255.0 <next-hop>
Next hop in this case is ip address interface of core switch that is directly attached to R1.
You need routes for all networks that you need to reach from R1 that core router "knows" how to reach, of course you can use summary addresses.
if you have networks
192.168.0.0/24
192.168.1.0/24
192.168.2.0/24
192.168.3.0/24
summary address 192.168.0.0/22 can replace those 4 individual routes.
1
 
JustInCaseCommented:
Now if I need to route the VLANs from Core/Distribution Layer 3 Switch to Router R1 , what should I configure on Core/Distribution Layer 3 Switch and R1 ?
Dynamic routing (OSPF, EIGRP or IS-IS) or static routes. If you need to route every traffic that is not local traffic - default route to R1 is enough. On R1 you need to configure route(s) (static or dynamic) that will point to core as next hop to reach you networks from R1. Dynamic routing is preferred.
0
 
jskfanAuthor Commented:
OK , for instance

Core# IP route 0.0.0.0 0.0.0.0  IP address of the Router Interface

How do you do it from R1 back to the Core switch ?
0
 
jskfanAuthor Commented:
Thank you
0
 
JustInCaseCommented:
You're welcome.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.