optimizenet command
Purpose
Manages network tuning parameters.
Syntax
optimizenet [ -reboot | -perm ] { -set Tunable[=NewValue] | -default Tunable }
optimizenet -list [ Tunable ]
optimizenet -h [ Tunable ]
Description
The optimizenet command is used to configure network tuning parameters. The optimizenet command sets or displays current or next boot values for network tuning parameters. This command can also make permanent changes or defer changes until the next reboot. Whether the command sets or displays a parameter is determined by the accompanying flag. The -set flag performs both actions. It can either display the value of a parameter or set a new value for a parameter.
If the -list flag is specified without any Tunables, only Tunables modifiable by this command will be displayed.
Flags
Flag name | Description |
---|---|
-default Tunable | Resets Tunable to its default value. If the Tunable needs to be changed (not currently set to its default value) and it is of type Reboot, it will not be changed; a warning displays instead. |
-h Tunable | Displays help about Tunable parameter if one is specified. |
-list [Tunable] | Lists the characteristics of one or all Tunables,
one per line, using the following format:
where
|
-perm | Makes changes apply to both current and reboot
values when used in combination with -set or -default.
These combinations cannot be used on Reboot type parameters because
their current value can't be changed. When used with -set without specifying a new value, values displays only if the current and next boot values for a parameter are the same. Otherwise NONE displays as the value. |
-reboot | Makes changes apply to reboot values when used in combination with -set or -default. When used with -set without specifying a new value, next boot values for tunables display instead of the current values. |
-set Tunable [=NewValue ] | Displays the value or sets the Tunable to NewValue.
If a tunable needs to be changed (the specified value is different
than current value), and is of type Reboot it will not be changed
but a warning displays instead. When -reboot is used in combination without a new value, the nextboot value for Tunable is displayed. When -perm is used in combination without a new value, a value displays only if the current and next boot values for tunable are the same Otherwise NONE displays as the value. |
Network tunable parameters
Parameter | Description |
---|---|
arptab_bsiz |
|
arptab_nb |
|
clean_partial_conns |
|
net_malloc_police |
|
rfc1323 |
|
route_expire |
|
tcp_pmtu_discover |
|
tcp_recvspace |
|
tcp_sendspace |
|
udp_recvspace |
|
udp_sendspace |
|
Exit Status
Examples
- To display the maximum size of the mbuf pool, type:
optimizenet -set thewall
- To change the default socket buffer sizes on your system, type:
optimizenet -reboot -set tcp_sendspace=32768
- To use a machine as an internet work router over TCP/IP networks,
type:
optimizenet -set ipforwarding=1
- To list the current and reboot value, range, unit, type and dependencies
of the arptab_bsiz parameter, type:
optimizenet -list arptab_bsiz
- To display help information on arptab_bsiz, type:
optimizenet -h arptab_bsiz