6

I've done several exercises where you're given the MTU of a net or subnet, but I wonder how routers know the MTU of the nets they're connected. I've learnt that in OSPF protocol this information is excanged among routers. However, is there another way of finding that information for a router that doesn't use OSPF?

I hope someone can help me. Thank you for your responses.

Ron Maupin
  • 102,040
  • 26
  • 123
  • 202
Josemi
  • 185
  • 3

2 Answers2

5

Routers know because they have physical interfaces connected to the networks. Those interfaces are configured for the correct MTU.

You are mistaken about OSPF: The protocol does not exchange MTU information.

Ron Trunk
  • 68,291
  • 5
  • 66
  • 126
4

The MTU of an interface is a function of the layer-2 protocol for that interface, and a device, including a router, will inherently know the MTU of the interface based on the protocol for the interface. For example the MTU for ethernet is 1500.

Some routers can configure the interface MTU with a configuration command. Also virtual interfaces, e.g. a tunnel, will calculate the MTU based on the MTU of the physical interface that is the source of the tunnel, minus the tunnel protocol overhead.


For Cisco routers, you can use the show interfaces command to see the MTU for one or more interfaces. Other vendors will have similar commands.

Ron Maupin
  • 102,040
  • 26
  • 123
  • 202