Configuring Dynamic PMTU
Context
When the switch functions as an intermediate node, IPv6 PMTU discovery can be enabled. After this function is enabled, if the length of an IPv6 packet is larger than the IPv6 MTU of the outbound interface, the switch discards the packet, and uses the IPv6 PMTU discovery protocol to dynamically negotiate the PMTU with the source node for packet fragmentation.
After the PMTU ages out, the dynamic PMTU is deleted. The PMTU needs to be renegotiated.
When both static and dynamic PMTUs are configured, only static PMTU takes effect. Static PMTU entries never age.
Only X series cards support the IPv6 PMTU discovery function.
Procedure
- Run system-view
The system view is displayed.
- (Optional) Configure the IPv6 MTU for an interface.
Run interface interface-type interface-number
The specified interface view is displayed.
(Optional) On an Ethernet interface, run undo portswitch
The interface is switched to Layer 3 mode.
By default, an Ethernet interface works in Layer 2 mode.
Run ipv6 enable
The IPv6 function is enabled on the interface.
By default, the IPv6 function is disabled on an interface.
Run ipv6 mtu mtu
The MTU of IPv6 packets on an interface is set.
By default, the MTU of IPv6 packets on an interface is 1500 bytes.
The switch supports MTU setting, so packets sent by the protocol stack are fragmented based on the configured MTU. However, packets forwarded by the hardware chip are not fragmented based on the configured MTU. The maximum length of packets that can be forwarded by the hardware chip is 12K bytes.
After the MTU value is changed, run the shutdown and undo shutdown commands or the restart command to restart the interface and allow the changes to take effect.
Run quit
Return to the system view.
- Run ipv6 packet-too-big drop
The switch is configured to discard packets with the length larger than the IPv6 MTU of the interface, and IPv6 PMTU discovery is enabled.
By default, the switch properly forwards packets with the length larger than the IPv6 MTU of the outbound interface and IPv6 PMTU discovery is disabled.
On interfaces of the X2E, X2S, X2H, X6E, and X6S series cards, and LPUs installed on devices equipped with SRUHX1, the default MTU of IPv6 packets that match ND entries is 1500 bytes, and the MTU value modified through the ipv6 mtu command does not take effect. Therefore, for the IPv6 packets that match ND entries and are received by these cards, the switch uses the MTU value modified through the ipv6 mtu command to negotiate the PMTU with source nodes, but the effective PMTU is 1500 bytes.
- Run ipv6 pathmtu age age-time
The aging time is set for dynamic PMTU entries.
By default, the aging time of dynamic PMTU entries is 10 minutes.