Command Protocol Reference Guide
A - 143
eth_settings
Ethernet Settings
Description
This parameter gets or sets the Ethernet settings. When this parameter is set,
the Ethernet interface is automatically restarted with the new settings.
The format of the string is a comma-separated list of name/value pairs with
the name and value separated by an equals character, and the value enclosed
in single quotes.
The mode attribute is always required. It must be either dhcp or static.
The addr, dns, gw, and nm attributes are required when mode is static and
ignored (not required) when mode is dhcp. They are always returned in the acknowl-
edgement. For the dhcp case, they specify the values obtained from the DHCP server.
The addr attribute specifies the IP address of the interface. The dns attribute speci-
fies the domain name server(s). A single server or multiple servers (separated by
spaces) may be specified. The gw attribute specifies the gateway. The nm parameter
specifies the netmask.
DHCP Example
set eth_settings 1 "mode='dhcp'"
val eth_settings 1 "mode='dhcp',addr='172.22.2.129',dns='172.22.1.1
172.22.1.2',gw='172.22.2.254',nm='255.255.255.0'"
Static IP Example
set eth_settings 1
"mode='static',addr='172.22.2.200',dns='172.22.1.1',gw='172.22.2.254',nm='255.
255.255.0'"
val eth_settings 1
"mode='static',addr='172.22.2.200',dns='172.22.1.1',gw='172.22.2.254',nm='255.
255.255.0'"
Examples
Argument Argument value
Channel Type Device-Specific System
Value Type String
Read/Write Mode Read/Write
System Limits Max String Length: 256
Default mode=’dhcp’
Event Source No
Command Response Description