Solved

Routing in switch

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

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

Let’s list some of the technologies that enable smooth teleworking. 
Join Greg Farro and Ethan Banks from Packet Pushers (http://packetpushers.net/podcast/podcasts/pq-show-93-smart-network-monitoring-paessler-sponsored/) and Greg Ross from Paessler (https://www.paessler.com/prtg) for a discussion about smart network …
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…

705 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now