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 allocs | Network memory allocation을 출력합니다. CONFIG_NET_DEBUG_NET_PKT_ALLOC이 설정된 경우에만 사용할 수 있습니다. |
net arp | IPv4 ARP cache 정보를 출력합니다. IPv4가 활성화된 network에서 CONFIG_NET_ARP가 설정된 경우에만 사용할 수 있습니다. |
net capture | Network traffic을 monitor합니다. 자세한 내용은 Network Traffic Monitoring 문서를 참고하십시오. |
net conn | Network connection 정보를 출력합니다. |
net dns | DNS 설정을 표시하고 DNS name을 resolve할 수도 있습니다. CONFIG_DNS_RESOLVER가 설정된 경우에만 사용할 수 있습니다. |
net events | Network event monitoring을 활성화합니다. CONFIG_NET_MGMT_EVENT_MONITOR가 설정된 경우에만 사용할 수 있습니다. |
net gptp | gPTP support 정보를 출력합니다. CONFIG_NET_GPTP가 설정된 경우에만 사용할 수 있습니다. |
net iface | Network interface 정보를 출력합니다. |
net ipv6 | IPv6 전용 정보와 설정을 출력합니다. CONFIG_NET_IPV6가 설정된 경우에만 사용할 수 있습니다. |
net mem | Network memory 사용량을 출력합니다. CONFIG_NET_BUF_POOL_USAGE가 설정되면 더 많은 정보를 표시합니다. |
net nbr | Neighbor 정보를 출력합니다. CONFIG_NET_IPV6가 설정된 경우에만 사용할 수 있습니다. |
net ping | Network host에 ping을 보냅니다. |
net route | IPv6 network route를 표시합니다. CONFIG_NET_ROUTE가 설정된 경우에만 사용할 수 있습니다. |
net sockets | Network socket 정보와 통계를 표시합니다. CONFIG_NET_SOCKETS_OBJ_CORE와 CONFIG_OBJ_CORE가 모두 설정된 경우에만 사용할 수 있습니다. |
net stats | Network statistics를 표시합니다. |
net tcp | TCP connection을 연결하고 data를 보내며 닫습니다. CONFIG_NET_TCP가 설정된 경우에만 사용할 수 있습니다. |
net vlan | Ethernet virtual LAN 정보를 표시합니다. CONFIG_NET_VLAN이 설정된 경우에만 사용할 수 있습니다. |
Source
출처
영어 원문에는 문단, 문서 지시문, 표, 코드, 코드 심벌, 경로를 그대로 보존했습니다.