UM-WI-056
DA16xxx FreeRTOS Getting Started Guide
User Manual
Revision 1.0
27-Oct-2021
CFR0012
63 of 80
© 2021 Dialog Semiconductor
B.1.2
Network Commands
To move to the network command category, type the command
net
.
Table 10: Network Commands
Command
Parameter
Description
ifconfig
(none)
[interface
wlan0|wlan1]
[options]
Display or set the basic network setting and status
●
ifconfig
: display basic network settings information
●
ifconfig
–
a
: display details of all network interfaces
●
ifconfig [wlan0|wlan1]
: display details of a network interface
●
ifconfig [wlan0|wlan1] [ipaddress] [subnet] [gateway]
: set
static IP addresses to a network interface
●
ifconfig [wlan0|wlan1] dhcp
: enable/Disable DCHP to a
network interface
●
ifconfig [wlan0|wlan1] [up|down]
: go Up/Down a network
interface
●
ifconfig [wlan0|wlan1] [start|stop|renew|release]
: DHCP
client command
●
ifconfig [wlan0|wlan1] [dns] [DNS ServerIP]
: set DNS server
address (static IP) to a network interface
●
ifconfig help
: display help
ping
-I [interface
wlan0|wlan1]
[domain|ip] -n
[count] -l
[size] -w
[timeout] -i
[interval]
Ping test to the target address with a certain option
●
[interface wlan0|wlan1]
:
○
Network interface. With no designated interface, an interface
for a subnet band of the same destination IP address is
designated
●
[count]
: the count of ping tests
●
[size]
: the size of data to be transmitted (max.: 10000)
●
[timeout]
: waiting time for a response to the transmitted message
(min.: 10 ms)
●
[interval]
: waiting time for a message transmission (min.:
10 ms)
●
[-6]
: ping test with an IPv6 address
For example:
ping 172.16.0.1 -l 1024 -n 10 -w 1000 -i 1000
ping -6 fe80::1:2 -I wlan0
arp
[interface]
[options]
Display the ARP table of a network interface
●
a
: display the ARP table of every interface
●
d
: delete all of ARP table
●
Help
: Help display
arpsend
[interface]
[dst
ipaddress]
Transmit the ARP request message of the target IP
For example:
arpsend wlan0 10.0.0.1
garpsend
[interface]
[option]
Transmit a GARP message with option:
●
0: normal garp
●
1: check IP conflict
For example:
arpsend wlan0