ospf packet-size
Use ospf packet-size to set the maximum length of OSPF packets that can be sent by an interface.
Use undo ospf packet-size to restore the default.
Syntax
ospf packet-size value
undo ospf packet-size
Default
The maximum length of OSPF packets that an interface can send equals the interface's MTU.
Views
Interface view
Predefined user roles
network-admin
Parameters
value: Specifies the maximum length of OSPF packets that can be sent by an interface, in the range of 500 to 10000 bytes.
Usage guidelines
The interface chooses the smaller one between the value set in this command and the interface MTU, and uses it as the maximum length of OSPF packets that can be sent.
When you establish OSPF neighbors over a tunnel, you can use this command to prevent OSPF packet fragmentation on the outgoing tunnel interface. Make sure the maximum length of OSPF packets plus the encapsulated header length is no greater than the outgoing tunnel interface's MTU. For more information, see Layer 3—IP Services Configuration Guide.
Examples
# Set the maximum length of OSPF packets that can be sent by VLAN-interface 10.
<Sysname> system-view [Sysname] interface vlan 10 [Sysname-Vlan-interface10] ospf packet-size 1000