How to set tcp/ip parameters persistently on Solaris 11
Question: How to set tcp/ip parameters to Become permanent after reboot on Solaris 11?
Below are a few examples of how TCP parameters can be set permanently in Solaris 11:
1. To set tcp_naglim_def = 1.
To Show what it is currently set to:
# ipadm show-prop -p _naglim_def tcp
To set to the given value:
# ipadm set-prop -p _naglim_def=1 tcp
2. To set tcp_conn_req_max_q = 1024 and tcp_conn_req_max_q0 = 2048.
To Show what it is currently set to:
# ipadm show-prop -p _conn_req_max_q tcp
# ipadm show-prop -p _conn_req_max_q0 tcp
To set to the given value:
# ipadm set-prop -p _conn_req_max_q=1024 tcp
# ipadm set-prop -p _conn_req_max_q0=2048 tcp
3. To set tcp_recv_hiwat =1048576 and tcp_xmit_hiwat = 1048576.
To Show what it is currently set to:
# ipadm show-prop -p recv_buf tcp
# ipadm show-prop -p send_buf tcp
To set to the given value:
# ipadm set-prop -p recv_buf=1048576 tcp
# ipadm set-prop -p send_buf=1048576 tcp
4. To set tcp_smallest_anonp_port=4096.
To show what it is currently set to:
# ipadm show-prop -p smallest_anon_port tcp
To set to the given value:
# ipadm set-prop -p smallest_anon_port=4096 tcp
5. To set tcp_time_wait_interval = 10000.
To show what it is currently set to:
# ipadm show-prop -p _time_wait_interval tcp
To set to the given value:
# ipadm set-prop -p _time_wait_interval=10000 tcp
6. To set tcp_wscale_always = 1.
To Show what it is currently set to:
# ipadm show-prop -p _wscale_always tcp
To set to the given value:
# ipadm set-prop -p _wscale_always=1 tcp
7. To set tcp_tstamp_if_wscale = 1.
To Show what it is currently set to:
# ipadm show-prop -p _tstamp_if_wscale tcp
To set to the given value:
# ipadm set-prop -p _tstamp_if_wscale=1 tcp
8. To set tcp_max_buf = 16777216.
To Show what it is currently set to:
# ipadm show-prop -p max_buf tcp
To set to the given value:
# ipadm set-prop -p max_buf=16777216 tcp
9. To set tcp_cwnd_max = 8388608.
To Show what it is currently set to:
# ipadm show-prop -p _cwnd_max tcp
To set to the given value:
# ipadm set-prop -p _cwnd_max=8388608 tcp
10. To set udp_recv_hiwat = 2097152 and udp_xmit_hiwat = 2097152.
To Show what it is currently set to:
# ipadm show-prop -p recv_buf udp
# ipadm show-prop -p send_buf udp
To set to the given value:
# ipadm set-prop -p recv_buf=2097152 udp
# ipadm set-prop -p send_buf=2097152 udp