1.. _net_shell:
2
3Network Shell
4#############
5
6Network shell provides helpers for figuring out network status,
7enabling/disabling features, and issuing commands like ping or DNS resolving.
8Note that ``net-shell`` should probably not be used in production code
9as it will require extra memory. See also :ref:`generic shell <shell_api>`
10for detailed shell information.
11
12The following net-shell commands are implemented:
13
14.. csv-table:: net-shell commands
15   :header: "Command", "Description"
16   :widths: 15 85
17
18   "net allocs", "Print network memory allocations. Only available if
19   :kconfig:option:`CONFIG_NET_DEBUG_NET_PKT_ALLOC` is set."
20   "net arp", "Print information about IPv4 ARP cache. Only available if
21   :kconfig:option:`CONFIG_NET_ARP` is set in IPv4 enabled networks."
22   "net capture", "Monitor network traffic See :ref:`network_monitoring`
23   for details."
24   "net conn", "Print information about network connections."
25   "net dns", "Show how DNS is configured. The command can also be used to
26   resolve a DNS name. Only available if :kconfig:option:`CONFIG_DNS_RESOLVER` is set."
27   "net events", "Enable network event monitoring. Only available if
28   :kconfig:option:`CONFIG_NET_MGMT_EVENT_MONITOR` is set."
29   "net gptp", "Print information about gPTP support. Only available if
30   :kconfig:option:`CONFIG_NET_GPTP` is set."
31   "net iface", "Print information about network interfaces."
32   "net ipv6", "Print IPv6 specific information and configuration.
33   Only available if :kconfig:option:`CONFIG_NET_IPV6` is set."
34   "net mem", "Print information about network memory usage. The command will
35   print more information if :kconfig:option:`CONFIG_NET_BUF_POOL_USAGE` is set."
36   "net nbr", "Print neighbor information. Only available if
37   :kconfig:option:`CONFIG_NET_IPV6` is set."
38   "net ping", "Ping a network host."
39   "net route", "Show IPv6 network routes. Only available if
40   :kconfig:option:`CONFIG_NET_ROUTE` is set."
41   "net stats", "Show network statistics."
42   "net tcp", "Connect/send data/close TCP connection. Only available if
43   :kconfig:option:`CONFIG_NET_TCP` is set."
44   "net vlan", "Show Ethernet virtual LAN information. Only available if
45   :kconfig:option:`CONFIG_NET_VLAN` is set."
46