TrendChip CI Command Reference Manual v1.4 PDF
TrendChip CI Command Reference Manual v1.4 PDF
TrendChip CI Command Reference Manual v1.4 PDF
CI Command
Reference Manual
Release 1.4
Date:
Document Number:
Page 1 of 169
For additional information, please contact TrendChip Technologies Corp. or visit our website at
www.trendchip.com.tw.
Specification is subject to change without notice.
TrendChip is a trademark of TrendChip Technologies Corp. All other products or services mentioned are
the trademarks, service marks, or registered service marks of their representative owners.
Page 2 of 169
Table of Contents
1
REFERENCES ....................................................................................................................... 11
ABBREVIATIONS .................................................................................................................. 12
5.1
Command Interpreter Mode ..........................................................................................................14
5.1.1.
Command Syntax and General User Interface ...........................................................................14
5.1.2.
System Related Commands .......................................................................................................14
5.1.3.
TCP/IP Protocol Commands......................................................................................................15
5.1.4.
Ether debug Commands ............................................................................................................15
5.1.5.
WAN ADSL Commands ...........................................................................................................16
5.1.6.
WAN PVC Commands ..............................................................................................................16
5.1.7.
LAN Commands ........................................................................................................................17
5.1.8.
WLAN Commands ....................................................................................................................17
5.1.9.
Other Commands .......................................................................................................................17
5.1.10. CWMP (TR069) Commands .....................................................................................................18
6
6.1
6.2
6.3
6.4
sys date..............................................................................................................................................22
6.5
6.6
6.7
sys hostname.....................................................................................................................................25
6.8
6.9
6.10
Page 3 of 169
6.11
6.12
6.13
6.14
6.15
6.16
6.17
6.18
6.19
6.20
6.21
6.22
6.23
6.24
6.25
6.26
6.27
6.28
ip address..........................................................................................................................................46
6.29
6.30
ip ifconfig ..........................................................................................................................................48
6.31
ip ping ...............................................................................................................................................49
6.32
6.33
6.34
6.35
Page 4 of 169
6.36
6.37
ip status .............................................................................................................................................55
6.38
6.39
6.40
6.41
6.42
6.43
6.44
6.45
6.46
6.47
6.48
6.49
6.50
6.51
6.52
6.53
6.54
6.55
6.56
6.57
6.58
6.59
6.60
Page 5 of 169
6.61
6.62
6.63
6.64
6.65
6.66
6.67
6.68
6.69
6.70
6.71
6.72
6.73
6.74
6.75
6.76
6.77
6.78
6.79
6.80
6.81
6.82
6.83
6.84
6.85
Page 6 of 169
6.86
6.87
6.88
6.89
6.90
6.91
6.92
6.93
6.94
6.95
6.96
6.97
6.98
6.99
Page 7 of 169
Page 8 of 169
Page 9 of 169
1 Revision History
Date
April 8, 2003
July 8, 2003
March 4, 2009
March 20, 2009
April 28, 2009
Release
1.0
1.1
1.2
1.3
1.4
Description
File creation
Release version after review
Revision
Add some commands
Add TR069 configuration commands
Page 10 of 169
2 References
[1] TrendChip, WireExpress Product Brief, version 0.2, October 2002
[2] ITU-T Recommendation G.992.1 Asymmetrical Digital Subscriber Line (ADSL) Transceivers
[3] ITU-T Recommendation G.994.1 Handshake Procedures for Digital Subscriber Line (DSL)
Transceivers
[4] ITU-T Recommendation G.997.1 Physical Layer Management for Digital Subscriber Line (DSL)
Transceivers
[5] ITU-T Recommendation I.361: B-ISDN ATM Layer Specification.
[6] ITU-T Recommendation I.363.5 (1996): B-ISDN ATM Adaptation Layer Specification: Type 5 AAL.
[7] ITU-T Recommendation I.432.5: B-ISDN User-Network Interface Physical Layer Specification:
25600 kbit/s Operation.
[8] ITU-T Recommendation I.610 (1998): B-ISDN Operation and Maintenance Principles and Functions
Abstract.
[9] Internet Engineering Task Force RFC 2684, Multiprotocol Encapsulation over ATM Adaptation Layer
5, D. Grossman, J. Heinanen, September 1999
Page 11 of 169
3 Abbreviations
AAL
ADSL
AN-IWF
ATM
ATU-C
ATU-R
BLES
B-NT
CLASS
CO
CO-IWF
CPE
CP-IWF
DSL
DSLAM
DTMF
E&M
FXO
FXS
ISDN
ISP
ITU-T
IWF
LAN
MIB
NT
NTBBA
PBX
POTS
PPP
PSTN
PVC
QoS
SNMP
VAD
VC
WAN
VMOA
Page 12 of 169
4 General Description
This reference manual contains the descriptions of commands on Command Interpreter (CI) interface builtin on TrendChips ADSL CPE chipset solution.
On the management interface, TrendChip ADSL router provides a console interface which can be accessed
through terminal emulator program on RS-232 serial interface or through telnet protocol on LAN/WAN
physical interfaces. TrendChip Router also provides the web page configuration through HTTP protocol. In
this manual, we describe the command interface on the console port in details.
Page 13 of 169
5 CI Command Reference
5.1 Command Interpreter Mode
The CI Commands can be divided into seven different categories:
Page 14 of 169
sys romreset
sys atsh
sys password
sys reboot
sys cwmp disp
show channel display
show channel clear
show all
show wan node
show lan
Page 15 of 169
Page 16 of 169
Page 17 of 169
5.1.10.
Page 18 of 169
6 Command Listing
6.1 sys adjtime
Description
Command Syntax
sys adjtime
Page 19 of 169
Command Syntax
Parameters
Country Code
233
244
248
246
252
240
237
247
253
242
229
234
241
243
255
245
231
241
228
254
250
251
249
Description
shows the defined country code
Page 20 of 169
Page 21 of 169
Description
shows current system year
shows current system month
shows current system date
Page 22 of 169
Command Syntax
Parameters
Command
q(uit)
x(save & exit)
i(nsert after)
d(elete)
r(eplace)
n(ext)
Description
close the editor without saving
close the editor after saving
insert a line command
delete a certain command line
replace a certain command line
view next command line
Page 23 of 169
6.6
sys feature
Description
Command Syntax
sys feature
Page 24 of 169
sys hostname
Page 25 of 169
Command Syntax
Page 26 of 169
Command Syntax
Page 27 of 169
Command Syntax
Parameters
Name
0
1
Description
Switch off the errorlog online
Switch on the errorlog online
Page 28 of 169
sys socket
Page 29 of 169
Command Syntax
Parameters
Name
[minutes]
Description
Input idle timeout
Page 30 of 169
Parameters
Name
[hour[min[sec]]]
Description
Set hour : min : sec
Page 31 of 169
Command Syntax
sys version
Page 32 of 169
Command Syntax
Page 33 of 169
Command Syntax
Parameters
Name
On ; 1
Off ; 0
Description
Switch on the watchdog function
Switch off the watchdogfunction
Page 34 of 169
Command Syntax
Parameters
Name
Description
Value
Wdog counter value (0~34463)
Default : 180
Page 35 of 169
Command Syntax
sys romreset
Page 36 of 169
Command Syntax
sys atsh
Page 37 of 169
Command Syntax
Parameters
Name
Description
Value
Password you want to set.
Page 38 of 169
sys reboot
Page 39 of 169
Page 40 of 169
Command Syntax
Parameters
show
the
channel
status,
Parameters
vc_index:0~7
Description
Input the number of PVC
Page 41 of 169
Command Syntax
Parameters
channel
status,
Parameters
vc_index:0~7
Description
Input the number of PVC
Page 42 of 169
Command Syntax
show all
Page 43 of 169
Command Syntax
Parameters
Name
vc_index:0~7
Description
Input the number of PVC
Page 44 of 169
show lan
Page 45 of 169
6.28 ip address
Description
Command Syntax
Parameters
Name
Description
Addr
Enter new IP address to be set
Page 46 of 169
Page 47 of 169
6.30 ip ifconfig
Description Use this command to show the network interface
Command Syntax ip ifconfig
Page 48 of 169
6.31 ip ping
Description
Command Syntax
Parameters
Name
host id
Description
Remote machine IP address
Page 49 of 169
Command Syntax
Parameters
Name
iface
Description
Driver interface (enif0, enif0:1,)
Page 50 of 169
Command Syntax
Parameters
Name
dest addr
bits
gateway
metric
Description
Destination address of routing
Value of bits
IP address acts as gateway in routing
Hop count to measure the distance between
the source and a destination network. Each
hop in a path from source to destination is
assigned a hop count value,which is typically
1
Page 51 of 169
Command Syntax
Parameters
Name
dest addr
bits
iface
metric
Description
Destination address of routing
Value of bits
Input the interface name to add in routing
Hop count to measure the distance between
the source and a destination network. Each
hop in a path from source to destination is
assigned a hop count value,which is typically
1
Page 52 of 169
Command Syntax
Parameters
Though it may seem obvious that the NAT can talk on its
connected networks, it is nevertheless necessary to add
routes for those. Use this command if you want to add
some private entries that you dontwant broadcast to the
outside world.
ip route addprivate <dest addr>[/<bits>] <gateway> [<metric>]
Name
dest addr
bits
gateway
metric
Description
Destination address of routing
Value of bits
IP address acts as gateway in routing
Hop count to measure the distance between
the source and a destination network. Each
hop in a path from source to destination is
assigned a hop count value,which is typically
1
Page 53 of 169
Parameters
Name
host addr
bits
Description
Enter the host address to drop
Bits value
Page 54 of 169
6.37 ip status
Description
Command Syntax
ip status
Page 55 of 169
Command Syntax
ip status udp
Page 56 of 169
ip tcp status
Page 57 of 169
Parameters
Name
level
Description
1,2,3
Page 58 of 169
Command Syntax
Parameters
Name
Description
0
Disable ip igmp forwardall
1
Enable ip igmp forwardall
Page 59 of 169
Parameters
Name
Description
0
Disable ip igmp querier
1
Enable ip igmp querier
Page 60 of 169
Command Syntax
Sub commands&Parameters
Page 61 of 169
Page 62 of 169
Command Syntax
Parameters
Name
variable
Description
Numeric (2,3,4,..)
Page 63 of 169
Page 64 of 169
Command Syntax
Parameters
Name
Yes
No
Description
Enable igmpsnoop
Disable igmpsnoop
Page 65 of 169
Command Syntax
Parameters
Name
level
Description
1,2,3
Page 66 of 169
ip igmpsnoop disp
Page 67 of 169
Command Syntax
ether config
Page 68 of 169
Command Syntax
Page 69 of 169
Page 70 of 169
Parameters
Name
Auto/Normal
10/100
Half/Full Dup
Ch-name
Description
0=auto sence 1=normal
0=10Mbps 1=100Mbps
0=half duplex 1=full duplex
enet0
Page 71 of 169
Command Syntax
Parameters
Name
On/off
number
Description
On=enable, off=disable
It means port number of Ethernet, 1=port1,
2=port2, 4=port3, 8=port4, 15=all ports.
Page 72 of 169
Command Syntax
Page 73 of 169
Command Syntax
Page 74 of 169
Page 75 of 169
Command Syntax
Parameters
Type wan adsl line far or wan adsl line near to get your
upstream or downstream line noise margin and
attenuation.
Name
far
near
Description
Show adsl far-end linedata (carrier load)
Show adsl near-end linedata (noise margin)
Page 76 of 169
Command Syntax
Parameters
Description
Set adsl mode to g.dmt
Set adsl mode to g.lite
Set adsl mode to t1.413
Set adsl mode to all mode
Set adsl mode to adsl2
Set adsl mode to adsl2+
Page 77 of 169
Page 78 of 169
Command Syntax
Page 79 of 169
Page 80 of 169
Command Syntax
Page 81 of 169
Command Syntax
Page 82 of 169
Command Syntax
Page 83 of 169
Command Syntax
Page 84 of 169
Page 85 of 169
Page 86 of 169
Page 87 of 169
Page 88 of 169
Name
vc_index:1~8
Description
Input the number of PVC, 1~8 means
PVC-0 to PVC-7
Page 89 of 169
Page 90 of 169
Page 91 of 169
Page 92 of 169
Page 93 of 169
Page 94 of 169
Page 95 of 169
Command Syntax
Parameters
Name
pppoe
1483
pppoa
enet
Description
Set PPPoE mode
Set RFC1483 mode
Set PPPoA mode
Set MER mode
Page 96 of 169
Command Syntax
Parameters
Name
llc
vc
Description
Set multiplex to LLC mode
Set multiplex to VC-Mux mode
Page 97 of 169
Page 98 of 169
Page 99 of 169
Command Syntax
Parameters
Name
ubr
cbr
rtvbr
nrtvbr
gfr
Description
Set ATM QoS to UBR
Set ATM QoS to CBR
Set ATM QoS to RT-VBR
Set ATM QoS to nRT-VBR
Set ATM QoS to GFR
Command Syntax
Parameters
Name
static
ip address
dynamic
Description
Set PVC as static mode
Set IP of PVC
Set PVC as dynamic mode
Command Syntax
Parameters
Name
On
Off
Description
Enable bridge mode
Disable bridge mode
Parameters
Name
On
Off
Description
Enable route mode
Disable route mode
Parameters
Name
none
sua
Description
Disable NAT
Enable NAT
Parameters
Name
none
in
out
both
rip1
rip2b
rip2m
Description
Disable RIP
Set RIP direction as in
Set RIP direction as out
Set RIP direction as both direction
Set RIP version as v1
Set RIP version as v2 broadcast
Set RIP version as v2 multicase
Parameters
Name
none
Iimpv1
igmpv2
Description
Disable IGMP
Set IGMP proxy version as v1
Set IGMP proxy version as v2
Command Syntax
Command Syntax
Parameters
Use this command to set the connection mode as nailedup or not, its just for PPP mode.
Name
On
Off
Description
Enable Nailed-up mode, means always on
Disable Nailed-up mode
Command Syntax
wan node ppp idletime <0-65535(secs)>
Parameters
Name
pap
chap
both
Description
Set as pap
Set as chap
Set as auto
Command Syntax
Command Syntax
6.104 lan
Description
Command Syntax
lan <command>
Parameters
Command
index
active
ipaddr
rip
multicast
dhcp mode
dhcp server
save
display
clear
Description
set lan index, 1 is main IP, 2 is Alias IP
lan index <1|2>
set lan active or not
lan active <yes|no>
set lan IP address
lan ipaddr <IP Addr> <Mask>
set RIP mode
lan rip <none|in|out|both>
<rip1|rip2b|rip2m>
set lan multicast mode
lan multicast <none|igmpv1|igmpv2>
set lan dhcp mode, its just for main IP
lan dhcp mode <none|server|relay>
set lan dhcp pool
lan dhcp server pool <startIP> <numIP>
set lan dhcp server gateway
lan dhcp server gateway <gatewayIP>
set DNS server
lan dhcp server dnserver <dnsIP1>
[<dnsIP2>]
set leasetime
lan dhcp server leasetime leasetime
<second>
Save the configuration
Display the configuration
clear setting
Command Syntax
rtwlan enableap
rtwlan disableap
Parameters
Name
SSID name
SSID No.
Description
Set SSID number as 1-31 ASCII characters
Set SSID number when multi-SSID enabled
Command Syntax
Command Syntax
Use this command to set WLAN key for WEP mode, key2,
key3, key4 settings aree the same as key1. Value=10
hexadecimal characters or 5 ASCII characters for WEP64bits, Value=13 hexadecimal characters or 26 ASCII
characters for WEP-128bits
Command Syntax
Command Syntax
Command Syntax
Command Syntax
Parameters
Name
1
2
3
4
Description
B only
G only
A only
Mixed mode
Command Syntax
Name
Parameters
0
1
2
Description
Disable MAC filter
Allow the stations with certain MAC
addresses access AP
Deny the stations with certain MAC
addresses access AP
Command Syntax
Parameters
Name
Description
MAC adress The format should be xx: xx: xx: xx: xx: xx
Command Syntax
Parameters
Name
SSID#
0/1
Description
Select the certain SSID
0:disable ,1:enable
Command Syntax
Parameters
Name
0/1
Description
0:disable ,1:enable
Command Syntax
Parameters
Name
Description
MAC adress The format should be xx: xx: xx: xx: xx: xx
Command Syntax
Command Syntax
Command Syntax
Command Syntax
Command list
WEP-128bits
WPA-PSK
TKIP/AES
WPA2-PSK
TKIP/AES
Web Authentication Type
OpenSystem
WEP-64bits
Command list
Command list
Command list
6.131 ftp
Description
Command Syntax
Firmware upgrading
1. Open Command Prompt on your PC.
2. ftp <ip>
3. put <source path> <source file> ras
4. CPE will upgrade automatically
Config file updating
1. Open Command Prompt on your PC.
2. ftp <ip>
3. put <source path> <[source file> rom-0
4. CPE will update setting automatically
Config file backup
1. Open Command Prompt on your PC.
2. ftp <ip>
3. get rom-0 <destination path> <destination file>
4. You can find config file under directory of destination
path
Parameters
Name
0
1
Description
Switch off
Switch on
Command Syntax
Command Syntax
Command Syntax
Command Syntax
Command Syntax
Command Syntax
Command Syntax
Command Syntax
digest
Parameters
Name
0
1
disable
Description
Disable
Enable
Command Syntax
Command Syntax
Command Syntax
Parameters
Name
0
1
Description
Switch off
Switch on
Command Syntax