B
B
by_EL2021-07-16 22:21:35
Computer networks
by_EL, 2021-07-16 22:21:35

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

5 answer(s)
A
Armenian Radio, 2021-07-16
@gbg

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.

N
nApoBo3, 2021-07-16
@nApoBo3

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.

M
mikes, 2021-07-17
@mikes

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 :)

D
Denis Melnikov, 2021-07-17
@Mi11er

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

P
poisons, 2021-07-17
@poisons

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.

You either have an inaccuracy in the question, or you are doing something strange.
If you have intervlan routing running on the switch, then the packets do not go further than the switch. If you just have vlans configured and you are already feeding them further to the router, then routing on the router works.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question