Solved

Routing in switch

Posted on 2014-04-02
4
251 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

Portable, direct connect server access

The ATEN CV211 connects a laptop directly to any server allowing you instant access to perform data maintenance and local operations, for quick troubleshooting, updating, service and repair.

Question has a verified solution.

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

Suggested Solutions

This is an article about my experiences with remote access to my clients (so that I may serve them) and eventually to my home office system via Radmin Remote Control. I have been using remote access for over 10 years and have been improving my metho…
When it comes to security, there are always trade-offs between security and convenience/ease of administration. This article examines some of the main pros and cons of using key authentication vs password authentication for hosting an SFTP server.
Viewers will learn how to connect to a wireless network using the network security key. They will also learn how to access the IP address and DNS server for connections that must be done manually. After setting up a router, find the network security…
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…

828 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