Oracle® Solaris 10에서 Oracle Solaris 11.2로 전환

인쇄 보기 종료

업데이트 날짜: 2014년 12월
 
 

ndd 명령과 ipadm 명령 비교

    ndd 명령과 비교해 ipadm 명령은 다음과 같은 이점을 제공합니다.

  • 등록 정보의 현재 및 기본값, 가능한 값 범위 등 각 TCP/IP 등록 정보에 대한 정보를 제공합니다. 따라서 디버깅 정보를 보다 쉽게 얻을 수 있습니다.

  • 또한 일관된 명령 구문을 따르므로 사용하기 더 쉽습니다.

  • 사용자 정의 SMF 스크립트 또는 /etc/rc*.d 스크립트를 사용해야 하는 이전의 커밋되지 않은 필수 ndd 명령 대신 ipadm 하위 명령을 통해 경로 지정 및 전송 계층 조정 가능 항목의 영구 구성이 실현됩니다.

다음 표에서는 선택된 ndd 명령 옵션과 이에 상응하는 ipadm 명령 옵션을 비교합니다. 더 포괄적인 명령 옵션 목록은 ipadm(1M) 매뉴얼 페이지를 참조하십시오.

표 7-2  ndd 명령과 ipadm 명령 비교
ndd 명령
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