06-18-2020 01:08 PM - edited 06-18-2020 01:25 PM
Hello all,
I'm trying to wrap my mind around what a SVI technically "is" and as such I'm stuck on the question of how routing via a SVI technically works, i.e. by what process does the SVI determine the actual physical port out which to send the data?
Solved! Go to Solution.
06-18-2020 01:49 PM
It is essentially the same process as routing out of a physical interface with one additional step.
So a L3 device using physical interfaces consults the routing table, finds the next hop IP address and the outgoing interface, gets the mac address of the next hop IP from the arp table, rewrites the L2 header and transmits the packet (I have simplified because of CEF etc. but the principle is valid).
A L3 device using SVIs consults the routing tables, finds the next hop IP and the outgoing interface, get the mac address of the next hop IP from the arp table but then as you say it still does not know which physical interface to use to get to the next hop IP address.
This is where the mac address table comes in and is the additional lookup needed by a device using SVIs ie. it knows the mac address of the next hop IP from the arp table but it now needs to know on which port that mac address is reachable.
Jon
06-18-2020 01:49 PM
It is essentially the same process as routing out of a physical interface with one additional step.
So a L3 device using physical interfaces consults the routing table, finds the next hop IP address and the outgoing interface, gets the mac address of the next hop IP from the arp table, rewrites the L2 header and transmits the packet (I have simplified because of CEF etc. but the principle is valid).
A L3 device using SVIs consults the routing tables, finds the next hop IP and the outgoing interface, get the mac address of the next hop IP from the arp table but then as you say it still does not know which physical interface to use to get to the next hop IP address.
This is where the mac address table comes in and is the additional lookup needed by a device using SVIs ie. it knows the mac address of the next hop IP from the arp table but it now needs to know on which port that mac address is reachable.
Jon
06-18-2020 02:19 PM
Jon,
Excellent! Would it be the Forwarding Engine that also performs this additional "step" in getting the MAC address (when sending out a SVI interface) ?
06-19-2020 07:56 AM
It gets a bit complicated with hardware devices especially the more modular switches.
Basically forwarding is usually done in hardware and the forwarding tables, both L2 and L3, are loaded into specialised hardware memory for efficient lookups.
Jon
06-24-2020 06:59 AM
Great! Thanks again!
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide