0

I have two small questions:

  1. When a packet needs to be transmitted to a host on another subnet, what IP address will be used in the destination field of the IP header?
  2. When a packet needs to be transmitted to a host on another subnet, what IP address will be used in the destiantion field of the MAC header?
Mick MacCallum
  • 129,200
  • 40
  • 280
  • 281

2 Answers2

1

The key point is:

For normal routing, dest ip src ip stay the same, while dest mac "or" src mac changes.

user1500049
  • 993
  • 7
  • 15
0

You will have to send to the gateway of the other subnet, which, in turn, needs to have configured proper routing so that it will send it to the subnet host. Assuming they are on different networks as you said, there isn't a direct MAC address association, so you must send it to the gateway and both headers would refer to the gateway's address.

This may be of interest.

Community
  • 1
  • 1
Blitzkoder
  • 1,768
  • 3
  • 15
  • 30