Transición de Oracle® Solaris 10 a Oracle Solaris 11.2

Salir de la Vista de impresión

Actualización: Diciembre de 2014
 
 

Comparación del comando ndd con el comando ipadm

    En comparación con el comando ndd, el comando ipadm proporciona las siguientes ventajas:

  • Proporciona información sobre cada propiedad de TCP/IP, como el valor predeterminado y actual de una propiedad, y el rango de valores posibles. De esta manera, la información de depuración se obtiene con mayor facilidad.

  • Sigue una sintaxis de comando coherente y, por lo tanto, es más fácil de usar.

  • La configuración constante de valores ajustables de capa de transporte y enrutamiento, que fue posible mediante el uso de un subcomando ipadm en lugar de los comandos ndd no confirmados previamente que necesitaban del uso de secuencias de comandos SMF o secuencias de comandos /etc/rc*.d.

La siguiente tabla compara las opciones del comando ndd seleccionadas con las opciones del comando ipadm. Consulte la página del comando man ipadm(1M) para obtener una lista más completa de opciones de comandos.

Tabla 7-2   Comando ndd comparado con el comando ipadm
Comando ndd
Comando ipadm
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 ecn
1
bash-3.2# ndd -get /dev/tcp sack
2

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_          rw   2049    2049,4045  2049,4045  1-65535
      priv_ports
tcp   largest_        rw   65535   --         65535      1024-65535
      anon_port
tcp   recv_           rw   128000  --         128000     2048-1073741824
      maxbuf
tcp   sack            rw   active  --         active     never,passive,
                                                         active
tcp   send_           rw   49152   --         49152      4096-1073741824
      maxbuf
tcp   smallest_       rw   32768   --         32768      1024-65535
      anon_port
tcp   smallest_       rw   1024    --         1024       1024-32768
      nonpriv_port
...
bash-3.2# ipadm show-prop -p ecn,sack tcp
PROTO PROPERTY PERM CURRENT PERSISTENT DEFAULT  POSSIBLE
tcp   ecn      rw   passive --         passive  never,passive,active
tcp   sack     rw   active  --         active   never,passive,active