Korenix | Korenix Feature
53
//-----------------------------------------//
VLAN ID : 1
Tag Port :
Un-Tag Port : 1, 2, 3, 4,
NOTE
When you add a VLAN interface, you can only
see it by typing “ifconfig -a”. It
will display with lan.2”.
To enable it, issue
“ifconfig lan.2 up
5-3
Diocfg
program name
diocfg
Description
Get/Set DIO Configuration
Usage
:
diocfg -g PORT_NUM - get DIO status
diocfg -s PORT_NUM [0|1] - set DO [OFF|ON]
diocfg -T PORT_NUM [0|1] - set DIO Type [Output|Input]
diocfg -S Save Config
diocfg -r Read Config
diocfg -c Clean Config
Example:
Get status and type on port 7
# diocfg -g 7
Get data of DI7 to High
Set DIO type to DO on port 7
# diocfg -T 7 0
Set Port 7 to Ouput
Set DO 7 to High
# diocfg -s 7 1
Set data of DO7 to High
NOTE
The DIO number range is 0~7. The DIO types are configurable. Default all
DIO type are set with DI.