
Configuration using the stmcconfig utility
ST Micro Connect 2
26/58
7912386 Rev 12
5.9
Specifying a gateway address (--gateway)
The
--gateway
option is used to provide the ST Micro Connect 2 with the address of a
machine to be used as a gateway.
If an IP address is not specified, then the current gateway is reported. If the IP address is
specified as
0.0.0.0
then the current gateway is removed.
Caution:
If the ST Micro Connect 2 is operating with DHCP configuration, the
--gateway
option
cannot be used to specify the gateway.
Syntax
stmcconfig --ip <
stmc2
ip address
> --gateway [<
gateway
ip address>
]
Examples
Setting a gateway:
% stmcconfig --ip 169.192.1.1 --gateway 10.65.4.4
Removing the gateway:
% stmcconfig --ip 169.192.1.1 --gateway 0.0.0.0
Displaying the gateway:
% stmcconfig --ip 169.192.1.1 --gateway
5.10
Display message on LCD (--lcd-message)
The
--lcd-message
option allows a message to be displayed on the ST Micro
Connect 2’s LCD. The message is displayed until an LCD menu button is pressed, or a new
message is registered. The message is not persistent across reset. If the message is longer
than 16 characters, the message scrolls. If the
message
parameter is omitted, then any
message displayed on the LCD is cleared.
Syntax
stmcconfig --ip <
ip address
> --lcd-message [
message
]
Example
% stmcconfig --ip 192.168.1.1 --lcd-message "User: Einstein"
5.11 Redirect
stmcconfig
output to a file (--output)
The
--output
option allows the output from
stmcconfig
to be redirected to a named file.
Syntax
stmcconfig --ip <
ip address
> <
option
> [
option arguments
] --output
<
file name
>
Example
% stmcconfig --ip 192.168.1.1 --ifconfig-eth --output eth0-settings
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from