Network Shell
Network shell, and its companion shells provide 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 generic shell
for detailed shell information.
Note that by default both the enabled or disabled net-shell commands are
available to the user. This helps user to discover what commands are available
and how to enable them. This extra help can be turned off by disabling
CONFIG_NET_SHELL_SHOW_DISABLED_COMMANDS option.
The following net-shell commands are implemented:
Command |
Description |
|---|---|
net allocs |
Print network memory allocations. Only available if
|
net arp |
Print information about IPv4 ARP cache. Only available if
|
net bridge |
Print information and manipulate Ethernet bridges. Only available if
|
net capture |
Monitor network traffic See Monitor Network Traffic for details. |
net cm |
Connection manager shell. Only available if
|
net conn |
Print information about network connections. |
net dhcpv4 |
Enable / disable DHCPv4 client or server support. Only available if
|
net dhcpv6 |
Enable / disable DHCPv6 client support. Only available if
|
net dns |
Show how DNS is configured. The command can also be used to
resolve a DNS name. Only available if |
net events |
Enable network event monitoring. Only available if
|
net filter |
View network packet filter rules. Only available if
|
net ftp |
Connect to FTP server to transfer files. Only available if
|
net gptp |
Print information about gPTP support. Only available if
|
net http |
Show HTTP server information, or send HTTP GET/POST/PUT/DELETE requests.
Only available if |
net iface |
Print information about network interfaces. |
net ipv4 |
Print IPv4 specific information and configuration.
Only available if |
net ipv6 |
Print IPv6 specific information and configuration.
Only available if |
net mem |
Print information about network memory usage. The command will
print more information if |
net nbr |
Print neighbor information. Only available if
|
net ping |
Ping a network host. |
net pkt |
Print low level network packet information for debugging purposes. |
net pmtu |
Print MTU path discovery information. Only available if
|
net ppp |
Print Point-to-Point protocol information. Only available if
|
net ptp |
Print information about PTP support. Use |
net qbv |
Show and configure IEEE 802.1Qbv Time-Aware Shaper (TAS) information.
Only available if |
net quic |
Show and configure QUIC transport.
Only available if |
net resume |
Resume a network interface if network power management is enabled. |
net route |
Show IPv6 or IPv4 network routes. Only available if
|
net sockets |
Show network socket information and statistics. Only available if
|
net ssh |
SSH client support. Only available if
|
net sshd |
SSH server support. Only available if
|
net ssh_key |
SSH key generation/removing/saving/loading support. Only available if
|
net stats |
Show network statistics. |
net suspend |
Suspend a network interface if network power management is enabled. |
net tcp |
Connect/send data/close TCP connection. Only available if
|
net udp |
Send UDP data directly from shell. Only available if
|
net virtual |
Show and manipulate network virtual interfaces. Only available if
|
net vlan |
Show Ethernet virtual LAN information. Only available if
|
net websocket |
Print websocket information. Only available if
|
net wg |
Show WireGuard VPN information and setup VPNs. Only available if
|
The Wi-Fi shell provides commands to scan, connect, disconnect and configure Wi-Fi networks. Following Wi-Fi shell commands are implemented:
Command |
Description |
|---|---|
wifi <cmd> |
Multiple commands for Wi-Fi network connection, disconnection,
scanning and configuration. Only available if
|
wifi cred |
Show/add/delete Wi-Fi network credentials. Only available if
|
The TLS credentials shell provides commands to list, add, delete and retrieve
TLS credential information either from a volatile or protected backend storage.
Following TLS credentials shell commands are implemented. These commands are
only available if CONFIG_TLS_CREDENTIALS_SHELL is set.
See TLS Credentials Shell for details.