ndd(1M) and ipadm(1M) feature mapping
Comparison of Functionalities Between the ndd and ipadm Commands
| ndd(1M) | ipadm(1M) |
|
Retrieving properties
|
bash-3.2# ndd -get /dev/ip ?
ip_def_ttl (read and write)
ip6_def_hops (read and write)
ip_forward_directed_broadcasts(read and write)
ip_forwarding (read and write)
....
....
bash-3.2# ndd -get /dev/ip ip_def_ttl
100
bash-3.2# ndd -get /dev/ip ip6_def_hops
255
bash-3.2# ndd -get /dev/tcp ?
tcp_cwnd_max (read and write)
tcp_strong_iss (read and write)
tcp_time_wait_interval (read and write)
tcp_tstamp_always (read and write)
tcp_tstamp_if_wscale (read and write)
....
.....
bash-3.2# ndd -get /dev/tcp tcp_cwnd_max
1048576
bash-3.2# ndd -get /dev/tcp tcp_strong_iss
1
|
bash-3.2# ipadm show-prop ip
PROTO PROPERTY PERM CURRENT PERSISTENT DEFAULT POSSIBLE
ipv4 forwarding rw off -- off on,off
ipv4 ttl rw 255 -- 255 1-255
ipv6 forwarding rw off -- off on,off
ipv6 hoplimit rw 255 -- 255 1-255
bash-3.2# ipadm show-prop -p ttl,hoplimit ip
PROTO PROPERTY PERM CURRENT PERSISTENT DEFAULT POSSIBLE
ipv4 ttl rw 255 -- 255 1-255
ipv6 hoplimit rw 255 -- 255 1-255
bash-3.2# ipadm show-prop tcp
PROTO PROPERTY PERM CURRENT PERSISTENT DEFAULT POSSIBLE
tcp ecn rw passive -- passive never,passive,
active
tcp extra_priv_ports rw 2049,4045 -- 2049,4045 1024-65535
tcp largest_anon_port rw 65535 -- 65535 1024-65535
tcp sack rw active -- active never,passive,
active
tcp smallest_anon_port rw 32768 -- 32768 1024-65535
tcp smallest_nonpriv_port rw 1024 -- 1024 1024-32768
/* Setting private properties */
bash-3.2# ipadm show-prop -p tcp_cwnd_max tcp
PROTO PROPERTY PERM CURRENT PERSISTENT DEFAULT POSSIBLE
tcp tcp_cwnd_max rw 1048576 -- 1048576 128-1073741824
bash-3.2# ipadm show-prop -p tcp_strong_iss tcp
PROTO PROPERTY PERM CURRENT PERSISTENT DEFAULT POSSIBLE
tcp tcp_strong_iss rw 1 -- 1 0-2
|
|
Setting properties |
bash-3.2# ndd -set /dev/ip ip_def_ttl 64
bash-3.2# ndd -get /dev/ip ip_def_ttl 64
|
bash-3.2# ipadm set-prop -p ttl=64 ipv4
bash-3.2# ipadm show-prop -p ttl ip
PROTO PROPERTY PERM CURRENT PERSISTENT DEFAULT POSSIBLE
ipv4 ttl rw 64 64 255 1-255
bash-3.2# ipadm reset-prop -p ttl ipv4
bash-3.2# ipadm show-prop -p ttl ip
PROTO PROPERTY PERM CURRENT PERSISTENT DEFAULT POSSIBLE
ipv4 ttl rw 255 -- 255 1-255
|