Solved

Routing in switch

Posted on 2014-04-02
4
255 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

 Watch the Recording: Learning MySQL 5.7

MySQL 5.7 has a lot of new features. If you've dabbled with an older version of MySQL, it is definitely worth learning.

Question has a verified solution.

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

This article will inform Clients about common and important expectations from the freelancers (Experts) who are looking at your Gig.
This article is a collection of issues that people face from time to time and possible solutions to those issues. I hope you enjoy reading it.
Internet Business Fax to Email Made Easy - With  eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, f…
Michael from AdRem Software outlines event notifications and Automatic Corrective Actions in network monitoring. Automatic Corrective Actions are scripts, which can automatically run upon discovery of a certain undesirable condition in your network.…
Suggested Courses
Course of the Month6 days, 15 hours left to enroll

623 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