INET
ipv4
Set local IPv4. This command is used to configure the local IPv4 network settings for either an Ethernet or Wi-Fi connection.
leaps> ipv4 Usage: ipv4 [static|dynamic] [eth|wifi] [addr STRING] [mask STRING] [gw STRING]static | dynamic
static — Manually set the IP address information
dynamic — Automatically obtain IP settings (DHCP)
eth | wifi
eth — Apply settings to the Ethernet interface
wifi — Apply settings to the Wi-Fi interface
addr STRING (static only)
The IPv4 address to assign (example: 192.168.1.100)
mask STRING (static only)
The subnet mask (example: 255.255.255.0)
gw STRING (static only)
The default gateway address (example: 192.168.1.1)
Example:
Set a static IPv4 address for Ethernet
leaps> ipv4 static eth addr 192.168.1.100 mask 255.255.255.0 gw 192.168.1.1 ipv4 (Success)
Set a static IPv4 address for Wi-Fi
leaps> ipv4 static wifi addr 10.0.0.50 mask 255.255.255.0 gw 10.0.0.1 ipv4 (Success)
Enable dynamic (DHCP) configuration for Ethernet
leaps> ipv4 dynamic eth ipv4 (Success)
Enable dynamic (DHCP) configuration for Wi-Fi
leaps> ipv4 dynamic wifi ipv4 (Success)
Notes:
When using dynamic, the addr, mask, and gw parameters are not required.
When using static, all three (addr, mask, gw) must be provided.
Make sure the IP address and gateway are within the same network range.
peer
Set server IPv4. This command configures the server (peer) IPv4 connection settings, including the server address, port, TLS security level, and message filtering.
leaps> peer Usage: peer [host STRING] [port NUM] [tls 0|1|2|3|4] [mflt 0|1] tls 0-off, 1-on, 2-on(mutual authentication), 3-on(check CN), 4-on(mutual authentication, check CN)host STRING
The server’s IPv4 address or hostname
Example: 192.168.1.10
port NUM
The server port number
Example: 1883, 7777
tls 0|1|2|3|4
Defines the TLS security mode:
0 — TLS off
1 — TLS on
2 — TLS on (mutual authentication)
3 — TLS on (check Common Name / CN)
4 — TLS on (mutual authentication + check CN)
mflt 0|1
Message filtering option:
0 — Message filtering disabled
1 — Message filtering enabled
Example:
Set server with no TLS
leaps> peer host 192.168.1.10 port 1883 tls 0 mflt 0 peer (Success)
Set server with TLS enabled
leaps> peer host server.example.com port 7777 tls 1 mflt 0 peer (Success)
Set server with TLS and mutual authentication
leaps> peer host 10.0.0.5 port 7777 tls 2 mflt 1 peer (Success)
Set server with TLS, CN check
leaps> peer host secure.example.com port 7777 tls 3 mflt 1 peer (Success)
Set server with maximum security (mutual authentication + CN check)
leaps> peer host secure.example.com port 7777 tls 4 mflt 1 peer (Success)
Notes
Use higher TLS modes (2–4) for better security in production environments.
Mutual authentication requires valid client and server certificates.
CN checking ensures the server certificate matches the specified host.
Make sure the selected port matches the server’s configuration.
wifi
Set WIFI configuration. This command configures the device’s Wi-Fi connection by setting the network name and password.
leaps> wifi Usage: wifi [ssid] [pwd]ssid
The name of the Wi-Fi network to connect to
Example: HomeNetwork
pwd
The password for the Wi-Fi network
Example: SecurePassword123
Example:
leaps> wifi HomeNetwork SecurePassword123 wifi (Success)
Notes
The SSID and password are case-sensitive.
Ensure the Wi-Fi network is within range and supports the device.
If the password is incorrect, the connection will fail.
dns
Set DNS server IP address list. This command configures the DNS (Domain Name System) server IP addresses used for name resolution.
leaps> dns Usage: dns [PRIMARY SECONDARY]PRIMARY
The primary DNS server IP address
Example: 8.8.8.8
SECONDARY
The secondary (backup) DNS server IP address
Example: 8.8.4.4
Example:
leaps> dns 8.8.8.8 8.8.4.4 dns (Success)
Notes
Both DNS server addresses must be valid IPv4 addresses.
The secondary DNS server is used if the primary server is unavailable.
switch
Set net switch configuration. This command is used to enable or disable automatic switching between Ethernet and Wi-Fi connections.
leaps> switch switch: 1 (enabled) usage: switch [0|1]
Example:
Check the current state of the network switch.
leaps> switch switch: 0 (disabled) usage: switch [0|1]
Enable to switch automatically.
leaps> switch 1 switch (Success) leaps> switch switch: 1 usage: switch [0|1]