connectivity/networking/api/net_shell.html · connectivity/networking/api/net_shell.rst 공식 원문 ↗

Zephyr 3.7.0 · Connectivity · Networking API

Network Shell

Interface·memory·DNS·packet·protocol 상태를 shell에서 진단하는 명령을 한눈에 확인합니다.

Official pathconnectivity/networking/api/net_shell.html
Source fileconnectivity/networking/api/net_shell.rst
Source versionZephyr 3.7.0
TranslationFull · reviewed

본문 기준: Zephyr 3.7.0 LTS3 · 이후 유지보수 패치는 별도입니다.

Part 1

요약·해설

Network 상태 확인, feature 활성화·비활성화, ping과 DNS resolve를 위한 진단 shell 명령을 정리합니다.

Commands

17개 명령

Purpose

상태 · 진단 · 제어

Caution

추가 memory 사용

Part 2

접을 수 있는 영어 원문 전체

영어 원문 전체 펼치기
원문 SHA-256 C65A3AEEE5199C28F2EB57D034174E9109212819AE1AD2A6F6B515A50DB91264
.. _net_shell:

Network Shell
#############

Network shell provides helpers for figuring out network status,
enabling/disabling features, and issuing commands like ping or DNS resolving.
Note that ``net-shell`` should probably not be used in production code
as it will require extra memory. See also :ref:`generic shell <shell_api>`
for detailed shell information.

The following net-shell commands are implemented:

.. csv-table:: net-shell commands
   :header: "Command", "Description"
   :widths: 15 85

   "net allocs", "Print network memory allocations. Only available if
   :kconfig:option:`CONFIG_NET_DEBUG_NET_PKT_ALLOC` is set."
   "net arp", "Print information about IPv4 ARP cache. Only available if
   :kconfig:option:`CONFIG_NET_ARP` is set in IPv4 enabled networks."
   "net capture", "Monitor network traffic See :ref:`network_monitoring`
   for details."
   "net conn", "Print information about network connections."
   "net dns", "Show how DNS is configured. The command can also be used to
   resolve a DNS name. Only available if :kconfig:option:`CONFIG_DNS_RESOLVER` is set."
   "net events", "Enable network event monitoring. Only available if
   :kconfig:option:`CONFIG_NET_MGMT_EVENT_MONITOR` is set."
   "net gptp", "Print information about gPTP support. Only available if
   :kconfig:option:`CONFIG_NET_GPTP` is set."
   "net iface", "Print information about network interfaces."
   "net ipv6", "Print IPv6 specific information and configuration.
   Only available if :kconfig:option:`CONFIG_NET_IPV6` is set."
   "net mem", "Print information about network memory usage. The command will
   print more information if :kconfig:option:`CONFIG_NET_BUF_POOL_USAGE` is set."
   "net nbr", "Print neighbor information. Only available if
   :kconfig:option:`CONFIG_NET_IPV6` is set."
   "net ping", "Ping a network host."
   "net route", "Show IPv6 network routes. Only available if
   :kconfig:option:`CONFIG_NET_ROUTE` is set."
   "net sockets", "Show network socket information and statistics. Only available if
   :kconfig:option:`CONFIG_NET_SOCKETS_OBJ_CORE` and :kconfig:option:`CONFIG_OBJ_CORE`
   are set."
   "net stats", "Show network statistics."
   "net tcp", "Connect/send data/close TCP connection. Only available if
   :kconfig:option:`CONFIG_NET_TCP` is set."
   "net vlan", "Show Ethernet virtual LAN information. Only available if
   :kconfig:option:`CONFIG_NET_VLAN` is set."

Part 3

한국어 전문 번역

Network Shell

Network shell은 network 상태를 파악하고 feature를 활성화·비활성화하며 ping 또는 DNS resolve 같은 명령을 실행하는 helper를 제공합니다. net-shell은 추가 memory를 요구하므로 production code에서는 사용하지 않는 편이 좋습니다. Shell 자체의 자세한 내용은 generic shell API 문서를 참고하십시오.

구현된 net-shell 명령은 다음과 같습니다.

Command설명
net allocsNetwork memory allocation을 출력합니다. CONFIG_NET_DEBUG_NET_PKT_ALLOC이 설정된 경우에만 사용할 수 있습니다.
net arpIPv4 ARP cache 정보를 출력합니다. IPv4가 활성화된 network에서 CONFIG_NET_ARP가 설정된 경우에만 사용할 수 있습니다.
net captureNetwork traffic을 monitor합니다. 자세한 내용은 Network Traffic Monitoring 문서를 참고하십시오.
net connNetwork connection 정보를 출력합니다.
net dnsDNS 설정을 표시하고 DNS name을 resolve할 수도 있습니다. CONFIG_DNS_RESOLVER가 설정된 경우에만 사용할 수 있습니다.
net eventsNetwork event monitoring을 활성화합니다. CONFIG_NET_MGMT_EVENT_MONITOR가 설정된 경우에만 사용할 수 있습니다.
net gptpgPTP support 정보를 출력합니다. CONFIG_NET_GPTP가 설정된 경우에만 사용할 수 있습니다.
net ifaceNetwork interface 정보를 출력합니다.
net ipv6IPv6 전용 정보와 설정을 출력합니다. CONFIG_NET_IPV6가 설정된 경우에만 사용할 수 있습니다.
net memNetwork memory 사용량을 출력합니다. CONFIG_NET_BUF_POOL_USAGE가 설정되면 더 많은 정보를 표시합니다.
net nbrNeighbor 정보를 출력합니다. CONFIG_NET_IPV6가 설정된 경우에만 사용할 수 있습니다.
net pingNetwork host에 ping을 보냅니다.
net routeIPv6 network route를 표시합니다. CONFIG_NET_ROUTE가 설정된 경우에만 사용할 수 있습니다.
net socketsNetwork socket 정보와 통계를 표시합니다. CONFIG_NET_SOCKETS_OBJ_CORE와 CONFIG_OBJ_CORE가 모두 설정된 경우에만 사용할 수 있습니다.
net statsNetwork statistics를 표시합니다.
net tcpTCP connection을 연결하고 data를 보내며 닫습니다. CONFIG_NET_TCP가 설정된 경우에만 사용할 수 있습니다.
net vlanEthernet virtual LAN 정보를 표시합니다. CONFIG_NET_VLAN이 설정된 경우에만 사용할 수 있습니다.

Source

출처

영어 원문에는 문단, 문서 지시문, 표, 코드, 코드 심벌, 경로를 그대로 보존했습니다.