16
www.coolautomation.com
CooLinkHub PRM 1.0
© 2017 CoolAutomation
ASCII I/F
>
set baud 19200 8E1
OK
Set temperature scale to Fahrenheit
>
set deg f
OK
Set power-up melody to 3
>
set melody 3
OK
5.2.2
ifconfig
SYNOPSIS
ifconfig
ifconfig <PARAMETER> <VALUE>
ifconfig enable|disable
DESCRIPTION
Query or configure Ethernet network settings. Without parameters,
ifconfig
command will list current
network configuration. To change configuration use format with
<PARAMETER>
and
<VALUE>
.
Parameter
Mode
Description
MAC
RO
MAC address of the CooLinkHub ETH port
Link
RO
Indicates whether Ethernet link is "Up" or "Down"
IP
R/W
Static (fixed) IP address or DHCP
Netmask
R/W
Netmask address in case of static IP
Gateway
R/W
Default Gateway address in case of static IP
DNS1
R/W
Primary DNS address
DNS2
R/W
Alternative DNS address
Parameter
IP
can be set to
DHCP
,
to work as DHCP client, or IP number for static (fixed) IP. In case of
DHCP,
Netmask
and
Gateway
values are provided by DHCP server. By default CooLinkHub is configured
to operate as DHCP client.
EXAMPLE
Query network settings
>
ifconfig
MAC : 28:3B:96:00:02:0F
Link : Up
IP : 192.168.16.108 (DHCP)
Netmask: 255.255.255.0
Gateway: 192.168.16.254
DNS1 : 8.8.8.8
DNS2 : 8.8.4.4
OK