The peer path-mtu auto-discovery command enables path MTU discovery.
The undo peer path-mtu auto-discovery command disables path MTU discovery.
By default, path MTU discovery is disabled.
Usage Scenario
When hosts on the same network communicate, the MTU of the network is important to both communication ends. When hosts need to communicate across multiple networks, the smallest MTU on the communication path is most important to both ends. This is because different networks along the communication path have different link-layer MTUs. The minimum MTU on the communication path is called the path MTU.
The path MTU has the following characteristics:Configuration Impact
After the peer path-mtu-discovery command is run, peers learn the number of bytes of the maximum data packet on a transmission path to prevent packet fragmentation.
The path MTU auto discovery function affects TCP MSS calculation.Precautions
By default, path MTU discovery is disabled on a peer because enabling path MTU discovery by default requires the additional cost. If the MTU is known during network planning, path MTU discovery does not need to be enabled.
<HUAWEI> system-view [~HUAWEI] ip vpn-instance vpn1 [*HUAWEI-vpn-instance-vpn1] ipv4-family [*HUAWEI-vpn-instance-vpn1-af-ipv4] route-distinguisher 100:1 [*HUAWEI-vpn-instance-vpn1-af-ipv4] vpn-target 111:1 both [*HUAWEI-vpn-instance-vpn1-af-ipv4] quit [*HUAWEI-instance-vpn1] quit [~HUAWEI] bgp 100 instance aa [~HUAWEI-bgp-instance-aa] ipv4-family vpn-instance vpn1 [*HUAWEI-bgp-instance-aa-vpn1] group group1 external [*HUAWEI-bgp-instance-aa-vpn1] peer group1 as-number 200 [~HUAWEI-bgp-instance-aa-vpn1] peer group1 path-mtu auto-discovery