ZyXEL NXC5200 User guide

Type
User guide
www.zyxel.com
NXC5200
CLI Reference Guide
Version 2.20
05/2010
Edition 1
DEFAULT LOGIN
User Name admin
Password 1234
About This CLI Reference Guide
NXC CLI Reference Guide
3
About This CLI Reference Guide
Intended Audience
This manual is intended for people who want to configurethe NXC via Command Line
Interface (CLI). You should have at least a basic knowledge of TCP/IP networking concepts
and topology. Generally, it is organized by feature as outlined in the web configurator.
Please refer to www.zyxel.com
or your product’s CD for product specific User Guides and
product certifications.
How To Use This Guide
1 Read Chapter 1 on page 9 for how to access and use the CLI (Command Line Interface).
2 Read Chapter 2 on page 25 to learn about the CLI user and privilege modes.
3 Subsequent chapters are arranged by menu item as defined in the web configurator. Read
each chapter carefully for detailed information on that menu item.
" Some features cannot be configured in both the web configurator and CLI.
CLI Reference Guide Feedback
Help us help you. Send all Reference Guide-related comments, questions or suggestions for
improvement to the following address, or use e-mail instead. . Thank you!
The Technical Writing Team,
ZyXEL Communications Corp.,
6 Innovation Road II,
Science-Based Industrial Park,
Hsinchu, 300, Taiwan.
Document Conventions
NXC CLI Reference Guide
4
Document Conventions
Warnings and Notes
These are how warnings and notes are shown in this Users Guide.
1 Warnings tell you about things that could harm you or your device.
" Notes tell you other important information (for example, other things you may
need to configure or helpful tips) or recommendations.
Syntax Conventions
The NXC may be referred to as the “NXC”, the “device”, the “system” or the “product” in
this Users Guide.
Product labels, screen names, field labels and field choices are all in bold font.
A key stroke is denoted by square brackets and uppercase text, for example, [ENTER]
means the “enter” or “return” key on your keyboard.
“Enter” means for you to type one or more characters and then press the [ENTER] key.
“Select” or “choose” means for you to use one of the predefined choices.
A right angle bracket ( > ) within a screen name denotes a mouse click. For example,
Maintenance > Log > Log Setting means you first click Maintenance in the navigation
panel, then the Log sub menu and finally the Log Setting tab to get to that screen.
Units of measurement may denote the “metric” value or the “scientific” value. For
example, “k” for kilo may denote “1000” or “1024”, “M” for mega may denote “1000000
or “1048576” and so on.
“e.g.,” is a shorthand for “for instance”, and “i.e.,” means “that is” or “in other words”.
Document Conventions
NXC CLI Reference Guide
5
Icons Used in Figures
Figures in this Users Guide may use the following generic icons. The NXC icon is not an
exact representation of your device.
NXC Computer Notebook computer
Server Firewall Telephone
Switch Router
Document Conventions
NXC CLI Reference Guide
6
Contents Overview
NXC CLI Reference Guide
7
Contents Overview
Command Line Interface ............................................................................................................. 9
User and Privilege Modes ......................................................................................................... 25
Object Reference .......................................................................................................................29
Status ......................................................................................................................................... 31
Registration ............................................................................................................................... 35
Interfaces ................................................................................................................................... 43
Route ......................................................................................................................................... 59
AP Management ........................................................................................................................ 65
Wireless LAN Profiles ................................................................................................................ 69
Rogue AP .................................................................................................................................. 81
Wireless Frame Capture ............................................................................................................ 85
Dynamic Channel Selection ......................................................................................................87
Wireless Load Balancing ........................................................................................................... 89
Zones ......................................................................................................................................... 93
ALG ........................................................................................................................................... 95
Firewall ...................................................................................................................................... 99
Application Patrol ..................................................................................................................... 107
Anti-Virus ..................................................................................................................................119
IDP Commands ....................................................................................................................... 127
Device HA ................................................................................................................................ 145
User/Group .............................................................................................................................. 151
Captive Portal .......................................................................................................................... 157
Addresses ................................................................................................................................ 161
Services ................................................................................................................................... 165
Schedules ................................................................................................................................ 169
AAA Server .............................................................................................................................. 171
Authentication Objects ............................................................................................................. 177
Certificates ............................................................................................................................... 181
System ..................................................................................................................................... 185
System Remote Management ................................................................................................. 191
File Manager ............................................................................................................................ 201
Logs ......................................................................................................................................... 219
Reports and Reboot ................................................................................................................227
Session Timeout ...................................................................................................................... 233
Diagnostics ............................................................................................................................. 235
Maintenance Tools ...................................................................................................................237
Watchdog Timer ....................................................................................................................... 243
List of Commands .................................................................................................................... 247
Contents Overview
NXC CLI Reference Guide
8
NXC CLI Reference Guide
9
CHAPTER 1
Command Line Interface
This chapter describes how to access and use the CLI (Command Line Interface).
1.1 Overview
If you have problems with your NXC, customer support may request that you issue some of
these commands to assist them in troubleshooting.
1 Use of undocumented commands or misconfiguration can damage the NXC
and possibly render it unusable.
1.1.1 The Configuration File
When you configure the NXC using either the CLI (Command Line Interface) or the web
configurator, the settings are saved as a series of commands in a configuration file on the
NXC. You can store more than one configuration file on the NXC. However, only one
configuration file is used at a time.
You can perform the following with a configuration file:
Back up NXC configuration once the NXC is set up to work in your network.
Restore NXC configuration.
Save and edit a configuration file and upload it to multiple NXCs in your network to have
the same settings.
" You may also edit a configuration file using a text editor.
1.2 Accessing the CLI
You can access the CLI using a terminal emulation program on a computer connected to the
console port, from the web configurator or access the NXC using Telnet or SSH (Secure
SHell).
Chapter 1 Command Line Interface
NXC CLI Reference Guide
10
" The NXC might force you to log out of your session if reauthentication time,
lease time, or idle timeout is reached. See Chapter 21 on page 151 for more
information about these settings.
1.2.1 Console Port
The default settings for the console port are as follows.
When you turn on your NXC, it performs several internal tests as well as line initialization.
You can view the initialization information using the console port.
Garbled text displays if your terminal emulation program’s speed is set lower than the
NXC’s.
No text displays if the speed is set higher than the NXC’s.
If changing your terminal emulation program’s speed does not get anything to display,
restart the NXC.
If restarting the NXC does not get anything to display, contact your local customer
support.
Figure 1 Console Port Power-on Display
After the initialization, the login screen displays.
Figure 2 Login Screen
Table 1 Managing the NXC: Console Port
SETTING VALUE
Speed 115200 bps
Data Bits 8
Parity None
Stop Bit 1
Flow Control Off
FLASH: AMD 16M
BootModule Version: V1.08 | 12/04/2007 15:36:17
DRAM: Size = 256 Mbytes
DRAM POST: Testing: 262144K
Welcome to NXC5200
Username:
Chapter 1 Command Line Interface
NXC CLI Reference Guide
11
Enter the user name and password at the prompts.
" The default login username is admin and password is 1234. The username
and password are case-sensitive.
1.2.2 Web Configurator Console
The Console allows you to use CLI commands from directly within the Web Configurator
rather than having to use a separate terminal program. In addition to logging in directly to the
NXC’s CLI, you can also log into other devices on the network through this Console. It uses
SSH to establish a connection.
" To view the fuctions in the Web Configurator user interface that correspond
directly to specific NXC CLI commands, use the CLI Messages window
(described in the User’s Guide) in tandem with this one.
Figure 3 Console
Chapter 1 Command Line Interface
NXC CLI Reference Guide
12
The following table describes the elements in this screen.
Before you use the Console, ensure that:
Your web browser of choice allows pop-up windows from the IP address assigned to your
NXC.
Your web browser allows Java programs.
You are using the latest version of the Java program (http://www.java.com).
To login in through the Console:
1 Click the Console button on the Web Configurator title bar.
Table 2 Console
LABEL DESCRIPTION
Command Line
Enter commands for the device that you are currently logged into here. If you are
logged into the NXC, see the CLI Reference Guide for details on using the
command line to configure it.
Device IP
Address
This is the IP address of the device that you are currently logged into.
Logged-In User
This displays the username of the account currently logged into the NXC through
the Console Window.
You can log into the Web Configurator with a different account than used to log into
the NXC through the Console.
Connection
Status
This displays the connection status of the account currently logged in.
If you are logged in and connected, then this displays ‘Connected’.
If you lose the connection, get disconnected, or logout, then this displays ‘Not
Connected’.
Tx/RX Activity
Monitor
This displays the current upload / download activity. The faster and more frequently
an LED flashes, the faster the data connection.
Chapter 1 Command Line Interface
NXC CLI Reference Guide
13
2 Enter the IP address of the NXC and click OK.
3 Next, enter the User Name of the account being used to log into your target device and
then click OK.
4 You may be prompted to authenticate your account password, depending on the type of
device that you are logging into. Enter the password and click OK.
Chapter 1 Command Line Interface
NXC CLI Reference Guide
14
5 If your login is successful, the command line appears and the status bar at the bottom of
the Console updates to reflect your connection state.
1.2.3 Telnet
Use the following steps to Telnet into your NXC.
1 If your computer is connected to the NXC over the Internet, skip to the next step. Make
sure your computer IP address and the NXC IP address are on the same subnet.
2 In Windows, click Start (usually in the bottom left corner) and Run. Then type
telnet
and the NXC’s IP address. For example, enter telnet 192.168.1.1 (the default
management IP address).
3 Click OK. A login screen displays. Enter the user name and password at the prompts.
" The default login username is admin and password is 1234. The username
and password are case-sensitive.
1.2.4 SSH (Secure SHell)
You can use an SSH client program to access the CLI. The following figure shows an example
using a text-based SSH client program. Refer to the documentation that comes with your SSH
program for information on using it.
" The default login username is admin and password is 1234. The username
and password are case-sensitive.
Chapter 1 Command Line Interface
NXC CLI Reference Guide
15
Figure 4 SSH Login Example
1.3 How to Find Commands in this Guide
You can simply look for the feature chapter to find commands. In addition, you can use the
List of Commands at the end of the guide. This section lists the commands in alphabetical
order that they appear in this guide.
If you are looking at the CLI Reference Guide electronically, you might have additional
options (for example, bookmarks or Find...) as well.
1.4 How Commands Are Explained
Each chapter explains the commands for one keyword. The chapters are divided into the
following sections.
1.4.1 Background Information
" See the User’s Guide for background information about most features.
This section provides background information about features that you cannot configure in the
web configurator. In addition, this section identifies related commands in other chapters.
1.4.2 Command Input Values
This section lists common input values for the commands for the feature in one or more tables
Host key not found from database.
Key fingerprint:
xolor-takel-fipef-zevit-visom-gydog-vetan-bisol-lysob-cuvun-muxex
You can get a public key's fingerprint by running
% ssh-keygen -F publickey.pub
on the keyfile.
Are you sure you want to continue connecting (yes/no)? yes
Host key saved to C:/Documents and Settings/user/Application Data/SSH/
hostkeys/
ey_22_192.168.1.1.pub
host key for 192.168.1.1, accepted by user Tue Aug 09 2005 07:38:28
admin's password:
Authentication successful.
Chapter 1 Command Line Interface
NXC CLI Reference Guide
16
1.4.3 Command Summary
This section lists the commands for the feature in one or more tables.
1.4.4 Command Examples
This section contains any examples for the commands in this feature.
1.4.5 Command Syntax
The following conventions are used in this Users Guide.
A command or keyword in courier new must be entered literally as shown. Do not
abbreviate.
Values that you need to provide are in italics.
Required fields that have multiple choices are enclosed in curly brackets
{}.
A range of numbers is enclosed in angle brackets
<>.
Optional fields are enclosed in square brackets
[].
•The
| symbol means OR.
For example, look at the following command to create a TCP/UDP service object.
service-object object-name {tcp | udp} {eq <1..65535> | range <1..65535>
<1..65535>}
1 Enter service-object exactly as it appears.
2 Enter the name of the object where you see object-name.
3 Enter
tcp or udp, depending on the service object you want to create.
4 Finally, do one of the following.
•Enter
eq exactly as it appears, followed by a number between 1 and 65535.
•Enter
range exactly as it appears, followed by two numbers between 1 and 65535.
1.4.6 Changing the Password
It is highly recommended that you change the password for accessing the NXC. See Section
21.2 on page 152 for the appropriate commands.
1.5 CLI Modes
You run CLI commands in one of several modes.
Table 3 CLI Modes
USER PRIVILEGE CONFIGURATION SUB-COMMAND
What Guest users
can do
Unable to access Unable to access Unable to access Unable to access
What User users
can do
Look at (but not
run) available
commands
Unable to access Unable to access Unable to access
Chapter 1 Command Line Interface
NXC CLI Reference Guide
17
See Chapter 21 on page 151 for more information about the user types. User users can only
log in, look at (but not run) the available commands in User mode, and log out. Limited-
Admin users can look at the configuration in the web configurator and CLI, and they can run
basic diagnostics in the CLI. Admin users can configure the NXC in the web configurator or
CLI.
At the time of writing, there is not much difference between User and Privilege mode for
admin users. This is reserved for future use.
1.6 Shortcuts and Help
1.6.1 List of Available Commands
A list of valid commands can be found by typing ? or [TAB] at the command prompt. To view a
list of available commands within a command group, enter
<command> ? or <command>
[TAB].
What Limited-
Admin users can
do
Look at system
information (like
Status screen)
Run basic
diagnostics
Look at system
information (like
Status screen)
Run basic
diagnostics
Unable to access Unable to access
What Admin
users can do
Look at system
information (like
Status screen)
Run basic
diagnostics
Look at system
information (like
Status screen)
Run basic
diagnostics
Configure simple
features (such as
an address
object)
Create or remove
complex parts
(such as an
interface)
Configure
complex parts
(such as an
interface) in the
NXC
How you enter it Log in to the NXC Type enable in User
mode
Type configure
terminal in User or
Privilege mode
Type the command
used to create the
specific part in
Configuration mode
What the prompt
looks like
Router> Router# Router(config)# (varies by part)
Router(zone)#
Router(config-
if-ge)#
...
How you exit it Type exit Type disable Type exit Type exit
Table 3 CLI Modes (continued)
USER PRIVILEGE CONFIGURATION SUB-COMMAND
Chapter 1 Command Line Interface
NXC CLI Reference Guide
18
Figure 5 Help: Available Commands Example 1
Figure 6 Help: Available Command Example 2
1.6.2 List of Sub-commands or Required User Input
To view detailed help information for a command, enter <command> <sub command> ?.
Figure 7 Help: Sub-command Information Example
Figure 8 Help: Required User Input Example
Router> ?
<cr>
apply
atse
clear
configure
------------------[Snip]--------------------
shutdown
telnet
test
traceroute
write
Router>
Router> show ?
<wlan ap interface>
aaa
access-page
account
ad-server
address-object
------------------[Snip]--------------------
wlan
workspace
zone
Router> show
Router(config)# ip telnet server ?
;
<cr>
port
rule
|
Router(config)# ip telnet server
Router(config)# ip telnet server port ?
<1..65535>
Router(config)# ip telnet server port
Chapter 1 Command Line Interface
NXC CLI Reference Guide
19
1.6.3 Entering Partial Commands
The CLI does not accept partial or incomplete commands. You may enter a unique part of a
command and press
[TAB] to have the NXC automatically display the full command.
For example, if you enter
config and press [TAB] , the full command of configure
automatically displays.
If you enter a partial command that is not unique and press
[TAB], the NXC displays a list of
commands that start with the partial command.
Figure 9 Non-Unique Partial Command Example
1.6.4 Entering a ? in a Command
Typing a ? (question mark) usually displays help information. However, some commands
allow you to input a ?, for example as part of a string. Press [CTRL+V] on your keyboard to
enter a ? without the NXC treating it as a help query.
1.6.5 Command History
The NXC keeps a list of commands you have entered for the current CLI session. You can use
any commands in the history again by pressing the up (y) or down (z) arrow key to scroll
through the previously used commands and press
[ENTER].
1.6.6 Navigation
Press [CTRL]+A to move the cursor to the beginning of the line. Press [CTRL]+E to move the
cursor to the end of the line.
1.6.7 Erase Current Command
Press [CTRL]+U to erase whatever you have currently typed at the prompt (before pressing
[ENTER]).
1.6.8 The no Commands
When entering the no commands discribed in this document, you may not need to type the
whole command. For example, with the “[no] mss <536..1452>” command, you use
mss 536” to specify the MSS value. But to disable the MSS setting, you only need to type
no mss” instead of “no mss 536”.
Router# c [TAB]
clear configure copy
Router# co [TAB]
configure copy
Chapter 1 Command Line Interface
NXC CLI Reference Guide
20
1.7 Input Values
You can use the ? or [TAB] to get more information about the next input value that is required
for a command. In some cases, the next input value is a string whose length and allowable
characters may not be displayed in the screen. For example, in the following example, the next
input value is a string called
<description>.
The following table provides more information about input values like
<description>.
Router# configure terminal
Router(config)# interface ge1
Router(config-if-ge)# description
<description>
Table 4 Input-Value Formats for Strings in CLI Commands
TAG # VALUES LEGAL VALUES
* 1*
all -- ALL
authentication key 32-40
16-20
“0x” or “0X” + 32-40 hexadecimal values
alphanumeric or ;|`~!@#$%^&*()_+\\{}':,./<>=-
Used in MD5 authentication keys and text authentication key
0-16 alphanumeric or _-
Used in text authentication keys
0-8 alphanumeric or _-
certificate name 1-31 alphanumeric or ;`~!@#$%^&()_+[\]{}',.=-
community string 0-63 alphanumeric or .-
first character: alphanumeric or -
connection_id 1+ alphanumeric or -_:
contact 1-61 alphanumeric, spaces, or '()+,/:=?;!*#@$_%-.
country code 0 or 2 alphanumeric
custom signature file
name
0-30 alphanumeric or _-.
first character: letter
description Used in keyword criteria for log entries
1-64 alphanumeric, spaces, or '()+,/:=?;!*#@$_%-.
Used in other commands
1-61 alphanumeric, spaces, or '()+,/:=?;!*#@$_%-
distinguished name 1-511 alphanumeric, spaces, or .@=,_-
domain name 0+ lower-case letters, numbers, or .-
Used in ip dns server
1-248 alphanumeric or .-
first character: alphanumeric or -
Used in domainname, ip dhcp pool, and ip domain
1-255 alphanumeric or ._-
first character: alphanumeric or -
email 1-63 alphanumeric or .@_-
  • Page 1 1
  • Page 2 2
  • Page 3 3
  • Page 4 4
  • Page 5 5
  • Page 6 6
  • Page 7 7
  • Page 8 8
  • Page 9 9
  • Page 10 10
  • Page 11 11
  • Page 12 12
  • Page 13 13
  • Page 14 14
  • Page 15 15
  • Page 16 16
  • Page 17 17
  • Page 18 18
  • Page 19 19
  • Page 20 20
  • Page 21 21
  • Page 22 22
  • Page 23 23
  • Page 24 24
  • Page 25 25
  • Page 26 26
  • Page 27 27
  • Page 28 28
  • Page 29 29
  • Page 30 30
  • Page 31 31
  • Page 32 32
  • Page 33 33
  • Page 34 34
  • Page 35 35
  • Page 36 36
  • Page 37 37
  • Page 38 38
  • Page 39 39
  • Page 40 40
  • Page 41 41
  • Page 42 42
  • Page 43 43
  • Page 44 44
  • Page 45 45
  • Page 46 46
  • Page 47 47
  • Page 48 48
  • Page 49 49
  • Page 50 50
  • Page 51 51
  • Page 52 52
  • Page 53 53
  • Page 54 54
  • Page 55 55
  • Page 56 56
  • Page 57 57
  • Page 58 58
  • Page 59 59
  • Page 60 60
  • Page 61 61
  • Page 62 62
  • Page 63 63
  • Page 64 64
  • Page 65 65
  • Page 66 66
  • Page 67 67
  • Page 68 68
  • Page 69 69
  • Page 70 70
  • Page 71 71
  • Page 72 72
  • Page 73 73
  • Page 74 74
  • Page 75 75
  • Page 76 76
  • Page 77 77
  • Page 78 78
  • Page 79 79
  • Page 80 80
  • Page 81 81
  • Page 82 82
  • Page 83 83
  • Page 84 84
  • Page 85 85
  • Page 86 86
  • Page 87 87
  • Page 88 88
  • Page 89 89
  • Page 90 90
  • Page 91 91
  • Page 92 92
  • Page 93 93
  • Page 94 94
  • Page 95 95
  • Page 96 96
  • Page 97 97
  • Page 98 98
  • Page 99 99
  • Page 100 100
  • Page 101 101
  • Page 102 102
  • Page 103 103
  • Page 104 104
  • Page 105 105
  • Page 106 106
  • Page 107 107
  • Page 108 108
  • Page 109 109
  • Page 110 110
  • Page 111 111
  • Page 112 112
  • Page 113 113
  • Page 114 114
  • Page 115 115
  • Page 116 116
  • Page 117 117
  • Page 118 118
  • Page 119 119
  • Page 120 120
  • Page 121 121
  • Page 122 122
  • Page 123 123
  • Page 124 124
  • Page 125 125
  • Page 126 126
  • Page 127 127
  • Page 128 128
  • Page 129 129
  • Page 130 130
  • Page 131 131
  • Page 132 132
  • Page 133 133
  • Page 134 134
  • Page 135 135
  • Page 136 136
  • Page 137 137
  • Page 138 138
  • Page 139 139
  • Page 140 140
  • Page 141 141
  • Page 142 142
  • Page 143 143
  • Page 144 144
  • Page 145 145
  • Page 146 146
  • Page 147 147
  • Page 148 148
  • Page 149 149
  • Page 150 150
  • Page 151 151
  • Page 152 152
  • Page 153 153
  • Page 154 154
  • Page 155 155
  • Page 156 156
  • Page 157 157
  • Page 158 158
  • Page 159 159
  • Page 160 160
  • Page 161 161
  • Page 162 162
  • Page 163 163
  • Page 164 164
  • Page 165 165
  • Page 166 166
  • Page 167 167
  • Page 168 168
  • Page 169 169
  • Page 170 170
  • Page 171 171
  • Page 172 172
  • Page 173 173
  • Page 174 174
  • Page 175 175
  • Page 176 176
  • Page 177 177
  • Page 178 178
  • Page 179 179
  • Page 180 180
  • Page 181 181
  • Page 182 182
  • Page 183 183
  • Page 184 184
  • Page 185 185
  • Page 186 186
  • Page 187 187
  • Page 188 188
  • Page 189 189
  • Page 190 190
  • Page 191 191
  • Page 192 192
  • Page 193 193
  • Page 194 194
  • Page 195 195
  • Page 196 196
  • Page 197 197
  • Page 198 198
  • Page 199 199
  • Page 200 200
  • Page 201 201
  • Page 202 202
  • Page 203 203
  • Page 204 204
  • Page 205 205
  • Page 206 206
  • Page 207 207
  • Page 208 208
  • Page 209 209
  • Page 210 210
  • Page 211 211
  • Page 212 212
  • Page 213 213
  • Page 214 214
  • Page 215 215
  • Page 216 216
  • Page 217 217
  • Page 218 218
  • Page 219 219
  • Page 220 220
  • Page 221 221
  • Page 222 222
  • Page 223 223
  • Page 224 224
  • Page 225 225
  • Page 226 226
  • Page 227 227
  • Page 228 228
  • Page 229 229
  • Page 230 230
  • Page 231 231
  • Page 232 232
  • Page 233 233
  • Page 234 234
  • Page 235 235
  • Page 236 236
  • Page 237 237
  • Page 238 238
  • Page 239 239
  • Page 240 240
  • Page 241 241
  • Page 242 242
  • Page 243 243
  • Page 244 244
  • Page 245 245
  • Page 246 246
  • Page 247 247
  • Page 248 248
  • Page 249 249
  • Page 250 250
  • Page 251 251
  • Page 252 252
  • Page 253 253
  • Page 254 254
  • Page 255 255
  • Page 256 256
  • Page 257 257
  • Page 258 258
  • Page 259 259
  • Page 260 260
  • Page 261 261
  • Page 262 262

ZyXEL NXC5200 User guide

Type
User guide

Ask a question and I''ll find the answer in the document

Finding information in a document is now easier with AI