![ST STMC2 Скачать руководство пользователя страница 25](http://html1.mh-extra.com/html/st/stmc2/stmc2_manual_1356131025.webp)
ST Micro Connect 2
Configuration using the stmcconfig utility
7912386 Rev 12
25/58
Example
% stmcconfig --identify-all
Ethernet: brie0310 thetis * [164.129.14.239]; USB: [192.168.2.1];
STMC booted successfully
STMC in use with TargetPack mb411 by user products from host dingly
Ethernet: brie0029 marin * [164.129.15.135]; USB: [192.168.2.1];
STMC booted successfully
5.8
Configure an ST Micro Connect 2 network interface
(--ifconfig-eth and --ifconfig-usb)
An ST Micro Connect 2 has two network interfaces,
eth0
and
usb0
. The options
--ifconfig-eth
and
--ifconfig-usb
enable these interfaces to be configured or their
configuration to be reported. If no arguments are specified to the
--ifconfig-eth
or
--ifconfig-usb
options, the command reports the current configuration of the interface.
Note:
When used to make configuration changes, the last action of
--ifconfig-eth
and
--ifconfig-usb
is to reboot the ST Micro Connect 2.
Syntax
stmcconfig --ip <
ip address
> --ifconfig-eth [
Ethernet arguments
]
stmcconfig --ip <
ip address
> --ifconfig-usb [
USB arguments
]
USB or Ethernet arguments
<
ip address
> [netmask <
net mask
>] [broadcast <
broadcast address
>]
Section D.1: Factory default configuration on page 44
lists both the USB and Ethernet
factory default configuration.
Examples
The following example configures the USB network interface:
% stmcconfig --ip 192.168.1.1 --ifconfig-usb 169.254.14.239 netmask 255.255.0.0
The next example, where no arguments are specified, lists the current configuration of the
Ethernet network interface:
% stmcconfig --ip 192.168.1.1 --ifconfig-eth
eth0 Link encap:Ethernet HWaddr 00:80:E1:42:06:75
inet addr:192.168.1.1 Bcast:192.168.1.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:60009 errors:0 dropped:0 overruns:0 frame:57773
TX packets:92 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:4370186 (4.1 MiB) TX bytes:37458 (36.5 KiB)
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