D
D
Den123455662019-08-20 16:54:39
Computer networks
Den12345566, 2019-08-20 16:54:39

How are packets transported at the network layer?

5d5bfa1cbfed2694235322.jpeg
Considering the network (in the picture) at the network layer of the TCP/IP model
The picture shows that the router has two different ip-addresses (as well as MAC) for different subnets. Why is it so? Why can't you use the same IP address and MAC?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
W
Wexter, 2019-08-20
@Wexter

https://linkmeup.ru/blog/14.html

L
lorc, 2019-08-20
@lorc

Because the IP address must belong to the network in which the computer is located. The router is on two networks at once, so it needs an address on each network.
MAC addresses are usually not set manually, but take those addresses that are programmed into network cards. Therefore they are different. Purely theoretically, in this case, you can set the same MAC addresses and nothing will break, because the cards look at different networks. But this is an extra gesture. It's better to use the default address and not worry.

V
Valentin, 2019-08-20
@vvpoloskin

Because the gateway address must be from the same network as the workstations. Since your machines are on different networks, you need two addresses, one per network.
Here it is not necessary at all. The MAC address on the router interfaces can be the same, it only matters within the same network. Moreover, in real situations, when you have one physical port on your router, and networks are separated by VLANs, most often the poppy will be the same for each logical interface within one physical one.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question