Answer the question
In order to leave comments, you need to log in
How to do routing on L3 switch?
Hello, this question arose, There is a network of one router and one L3 switch that has two vlans and two subnets, everything is fine and end hosts are connected to this switch, it’s clear that the end hosts have a router address by default, we set the L3 switch routing (routing) between these two networks. Question What happens if a host from one subnet sends a packet to another host on a different network, how will the packets be sent? it is clear that on the sent DST MAC packet there will be a gateway address. All the same, when sending the further path, the packets will go through the router or directly sent to another network through the switch ??
Thank you for your attention
Answer the question
In order to leave comments, you need to log in
Modern switches have a rather complex architecture (for example, Cisco):
The packet is analyzed by a special chip according to a comparison table, which is stored in a special architecture memory ( associative RAM ). If there is no association, the packet is sent to the CPU for routing.
If the CPU can route the packet, it writes signs to the associative RAM so that the switch chip can immediately drop the packet where it needs to be.
However, it is better not to rely on it (it only confuses). In fact, it must be assumed that the packet always goes to L3 routing, runs through the routing table and goes where it needs to.
Must through a router. The switch, in theory, should not analyze the l3 packet if the l2 packet is not intended for it, but of course it depends on how this same switch is configured.
L3 The switch in this case acts as a router.
He needs to assign ip addresses in these vlans and, accordingly, issue them to clients as the main gateway.
If we really exaggerate very strongly, then the l3 switch is a router that does not know how to use NAT and all sorts of tunnels :)
If I were you, I would collect a lab in GNS The same and see clearly how the packet will go + wireshark to see the traffic at that moment
There is a network of one router and one L3 switch that has two vlans and two subnets, everything is fine and end hosts are connected to this switch, it’s clear that end hosts have a router address by default, we set routing (routing) between these two networks.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question