Solved

Routing in switch

Posted on 2014-04-02
4
249 Views
Last Modified: 2014-04-10
Hi,
I have server vlans in a switch and ip routing is enabled
when i do sh ip route it gives me one specific route is going from 1 vlan
but that Vlan has many interface , who can i find which interface the traffic is going from ?
specifically when we have many trunk links in that vlan.

Regards
Nitin Mohan
0
Comment
Question by:mohannitin
  • 2
  • 2
4 Comments
 
LVL 57

Expert Comment

by:giltjr
ID: 39972038
Do you understand how routing works?

Each IP host has a default route.  They may also have other routes for specific IP subnets.  Typically all hosts within the same subnet have the same routeing table.

Each IP host will look at its route table to see what router to forward traffic to.
0
 

Author Comment

by:mohannitin
ID: 39985556
if i am correct , the traffic from switch vlan would be forwarded from root port of that vlan.
as soon as it reaches the root switch will forward the traffic to specific subnet using routing table
0
 
LVL 57

Accepted Solution

by:
giltjr earned 500 total points
ID: 39986125
Not really.  When you are talking VLAN's and root port, that is layer 2, switching, not layer 3 routing.

For routing the sending host looks at its routing table to find out what IP route to take to send to the target host.

If the sending and target are on the same subnet, the sending host issues a ARP to find the target host's MAC address and then sends the packet within a layer 2 frame.  That is where the VLAN/layer 2 path comes into play.  You only have a "root path" if  you have multiple layer 2 connections between layer 2 devices and you are using spanning tree to prevent loops.

If the sending host and the target host are not in the same subnet, the sending host finds the IP address of the next hop, that is the router it should use to forward the packet to the target host.  The router and the sending host will be on the same subnet, so the sending host will send a ARP to the router to get its MAC address.  It then sends the packet to the MAC address of the router.  The router will then look at the target host's IP address and look at its routing table to see how to get to the target host.
0
 

Author Closing Comment

by:mohannitin
ID: 39991433
awesome answer , thanks for the clarification
0

Featured Post

Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

Question has a verified solution.

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

For many of us, the  holiday season kindles the natural urge to give back to our friends, family members and communities. While it's easy for friends to notice the impact of such deeds, understanding the contributions of businesses and enterprises i…
Most of the applications these days are on Cloud. Cloud is ubiquitous with many service providers in the market. Since it has many benefits such as cost reduction, software updates, remote access, disaster recovery and much more.
After creating this article (http://www.experts-exchange.com/articles/23699/Setup-Mikrotik-routers-with-OSPF.html), I decided to make a video (no audio) to show you how to configure the routers and run some trace routes and pings between the 7 sites…
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…

821 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