Routing – How Does a Router Know the MTU of a Network?

interfacelayer1mturouterrouting

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.

Best Answer

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.