ZyXEL Communications XGS-4728F User guide

Category
Software
Type
User guide

This manual is also suitable for

www.zyxel.com
www.zyxel.com
CLI Reference Guide
Ethernet Switch
Copyright © 2011
ZyXEL Communications Corporation
Firmware Version 3.79, 3.80, 3.90
and 4.00
Edition 1, 03/2011
Default Login Details
IP Address http://192.168.0.1
(Out-of-band MGMT
port)
http://192.168.1.1
(In-band ports)
User Name admin
Password 1234
About This CLI Reference Guide
Ethernet Switch CLI Reference Guide
3
About This CLI Reference Guide
Intended Audience
This manual is intended for people who want to configure ZyXEL Switches via Command
Line Interface (CLI).
The version number on the cover page refers to the latest firmware version supported by the
ZyXEL Switches. This guide applies to version 3.79, 3.80 and 3.90 at the time of writing.
" This guide is intended as a command reference for a series of products.
Therefore many commands in this guide may not be available in your product.
See your User’s Guide for a list of supported features and details about feature
implementation.
Please refer to www.zyxel.com or your product’s CD for product specific User Guides and
product certifications.
How To Use This Guide
•Read the How to Access the CLI chapter for an overview of various ways you can get to
the command interface on your Switch.
Use the Reference section in this guide for command syntax, description and examples.
Each chapter describes commands related to a feature.
To find specific information in this guide, use the Contents Overview, the Index of
Commands, or search the PDF file. E-mail techwrit[email protected] if you cannot find
the information you require.
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.
About This CLI Reference Guide
Ethernet Switch CLI Reference Guide
4
Customer Support
In the event of problems that cannot be solved by using this manual, you should contact your
vendor. If you cannot contact your vendor, then contact a ZyXEL office for the region in
which you bought the device. See http://www.zyxel.com/web/contact_us.php for contact
information. Please have the following information ready when you contact an office.
Product model and serial number.
Warranty Information.
Date that you received your device.
Brief description of the problem and the steps you took to solve it.
Document Conventions
Ethernet Switch CLI Reference Guide
5
Document Conventions
Warnings and Notes
These are how warnings and notes are shown in this CLI Reference Guide.
1 Warnings tell you about things that could harm you or your device. See your
User’s Guide for product specific warnings.
" Notes tell you other important information (for example, other things you may
need to configure or helpful tips) or recommendations.
Syntax Conventions
This manual follows these general conventions:
ZyXELs switches (such as the ES-2024A, ES-2108, GS-3012, and so on) may be referred
to as the “Switch”, the “device”, the “system” or the “product” in this Reference Guide.
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.
Command descriptions follow these conventions:
Commands are in
courier new font.
Required input values are in angle brackets <>; for example,
ping <ip> means that you
must specify an IP address for this command.
Optional fields are in square brackets []; for instance show logins [name], the name
field is optional.
The following is an example of a required field within an optional field: snmp-server
[contact <system contact>], the contact field is optional. However, if you
use contact, then you must provide the system contact information.
Lists (such as <port-list>) consist of one or more elements separated by commas.
Each element might be a single value (1, 2, 3, ...) or a range of values (1-2, 3-5, ...)
separated by a dash.
•The | (bar) symbol means “or”.
italic terms represent user-defined input values; for example, in snmp-server
[contact <system contact>], system contact can be replaced by the
administrators name.
A key stroke is denoted by square brackets and uppercase text, for example, [ENTER]
means the “Enter” or “Return” key on your keyboard.
Document Conventions
Ethernet Switch CLI Reference Guide
6
<cr> means press the [ENTER] key.
An arrow (-->) indicates that this line is a continuation of the previous line.
Command summary tables are organized as follows:
The Table title identifies commands or the specific feature that the commands configure.
The COMMAND column shows the syntax of the command.
If a command is not indented, you run it in the enable or config mode. See Chapter 2 on
page 19 for more information on command modes.
If a command is indented, you run it in a sub-command mode.
The DESCRIPTION column explains what the command does. It also identifies legal input
values, if necessary.
The M column identifies the mode in which you run the command.
E: The command is available in enable mode. It is also available in user mode if the
privilege level (P) is less than 13.
C: The command is available in config (not indented) or one of the sub-command modes
(indented).
The P column identifies the privilege level of the command. If you don’t have a high enough
privilege level you may not be able to view or execute some of the commands. See Chapter 2
on page 19 for more information on privilege levels.
Table 1 Example: Command Summary Table
COMMAND DESCRIPTION M P
show vlan Displays the status of all VLANs. E 3
vlan <1-4094> Enters config-vlan mode for the specified VLAN. Creates the
VLAN, if necessary.
C13
inactive Disables the specified VLAN. C 13
no inactive Enables the specified VLAN. C 13
no vlan <1-4094> Deletes a VLAN. C 13
Document Conventions
Ethernet Switch CLI Reference Guide
7
Icons Used in Figures
Figures in this guide may use the following generic icons. The Switch icon is not an exact
representation of your device.
Switch Computer Notebook computer
Server DSLAM Firewall
Telephone Switch Router
Document Conventions
Ethernet Switch CLI Reference Guide
8
Contents Overview
Ethernet Switch CLI Reference Guide
9
Contents Overview
Introduction ............................................................................................................................13
How to Access and Use the CLI ................................................................................................ 15
Privilege Level and Command Mode ......................................................................................... 19
Initial Setup ................................................................................................................................ 25
Reference A-G ........................................................................................................................29
AAA Commands ........................................................................................................................ 31
ARP Commands ........................................................................................................................33
ARP Inspection Commands ...................................................................................................... 35
ARP Learning Commands ......................................................................................................... 41
Bandwidth Commands .............................................................................................................. 43
Broadcast Storm Commands ..................................................................................................... 47
CFM Commands .......................................................................................................................51
Classifier Commands ................................................................................................................ 61
Cluster Commands .................................................................................................................... 65
Date and Time Commands ........................................................................................................69
DHCP Commands ..................................................................................................................... 73
DHCP Snooping & DHCP VLAN Commands ............................................................................ 77
DiffServ Commands ................................................................................................................... 81
Display Commands ...................................................................................................................83
DVMRP Commands .................................................................................................................. 85
Error Disable and Recovery Commands ................................................................................... 87
Ethernet OAM Commands ........................................................................................................ 91
External Alarm Commands ........................................................................................................97
GARP Commands ..................................................................................................................... 99
GVRP Commands ...................................................................................................................101
Reference H-M ......................................................................................................................103
HTTPS Server Commands ......................................................................................................105
IEEE 802.1x Authentication Commands ................................................................................. 109
IGMP and Multicasting Commands ..........................................................................................113
IGMP Snooping Commands .....................................................................................................117
IGMP Filtering Commands ......................................................................................................125
Interface Commands ............................................................................................................... 127
Interface Route-domain Mode ................................................................................................. 133
IP Commands ..........................................................................................................................135
IP Source Binding Commands ................................................................................................ 139
Contents Overview
Ethernet Switch CLI Reference Guide
10
IPv6 Commands ...................................................................................................................... 141
Layer 2 Protocol Tunnel (L2PT) Commands ........................................................................... 165
Link Layer Discovery Protocol (LLDP) Commands ................................................................. 169
Load Sharing Commands ........................................................................................................ 173
Logging Commands ................................................................................................................ 175
Login Account Commands ......................................................................................................177
Loopguard Commands ............................................................................................................ 179
MAC Address Commands ....................................................................................................... 181
MAC Authentication Commands ............................................................................................. 183
MAC Filter Commands ............................................................................................................185
MAC Forward Commands ....................................................................................................... 187
Mirror Commands .................................................................................................................... 189
MRSTP Commands .................................................................................................................193
MSTP Commands ...................................................................................................................195
Multiple Login Commands ....................................................................................................... 201
MVR Commands ..................................................................................................................... 203
Reference N-S ......................................................................................................................205
OSPF Commands ...................................................................................................................207
Password Commands .............................................................................................................213
PoE Commands ...................................................................................................................... 215
Policy Commands ....................................................................................................................219
Policy Route Commands ......................................................................................................... 223
Port Security Commands .........................................................................................................225
Port-based VLAN Commands ................................................................................................. 227
PPPoE IA Commands ............................................................................................................. 229
Private VLAN Commands ........................................................................................................ 237
Protocol-based VLAN Commands ...........................................................................................239
Queuing Commands ................................................................................................................241
RADIUS Commands ................................................................................................................245
Remote Management Commands ........................................................................................... 247
RIP Commands ....................................................................................................................... 249
RMON ...................................................................................................................................... 251
Running Configuration Commands ......................................................................................... 257
sFlow ....................................................................................................................................... 259
Smart Isolation Commands ..................................................................................................... 261
SNMP Server Commands ....................................................................................................... 265
STP and RSTP Commands ..................................................................................................... 269
SSH Commands ......................................................................................................................273
Static Multicast Commands ..................................................................................................... 275
Static Route Commands ..........................................................................................................277
Subnet-based VLAN Commands ............................................................................................281
Syslog Commands ..................................................................................................................283
Contents Overview
Ethernet Switch CLI Reference Guide
11
Reference T-Z .......................................................................................................................285
TACACS+ Commands ............................................................................................................. 287
TFTP Commands .................................................................................................................... 289
Trunk Commands .................................................................................................................... 291
trTCM Commands ...................................................................................................................295
VLAN Commands .................................................................................................................... 297
VLAN IP Commands ...............................................................................................................303
VLAN Mapping Commands ..................................................................................................... 305
VLAN Port Isolation Commands .............................................................................................. 307
VLAN Stacking Commands ..................................................................................................... 309
VLAN Trunking Commands ..................................................................................................... 313
VRRP Commands ...................................................................................................................315
Additional Commands .............................................................................................................319
Appendices and Index of Commands ................................................................................329
Contents Overview
Ethernet Switch CLI Reference Guide
12
13
PART I
Introduction
How to Access and Use the CLI (15)
Privilege Level and Command Mode (19)
Initial Setup (25)
14
Ethernet Switch CLI Reference Guide
15
CHAPTER 1
How to Access and Use the CLI
This chapter introduces the command line interface (CLI).
1.1 Accessing the CLI
Use any of the following methods to access the CLI.
1.1.1 Console Port
1 Connect your computer to the console port on the Switch using the appropriate cable.
2 Use terminal emulation software with the following settings:
3 Press [ENTER] to open the login screen.
1.1.2 Telnet
1 Connect your computer to one of the Ethernet ports.
2 Open a Telnet session to the Switch’s IP address. If this is your first login, use the default
values.
Make sure your computer IP address is in the same subnet, unless you are accessing the
Switch through one or more routers.
Table 2 Default Settings for the Console Port
SETTING DEFAULT VALUE
Terminal Emulation VT100
Baud Rate 9600 bps
Parity None
Number of Data Bits 8
Number of Stop Bits 1
Flow Control None
Table 3 Default Management IP Address
SETTING DEFAULT VALUE
IP Address 192.168.1.1
Subnet Mask 255.255.255.0
Chapter 1 How to Access and Use the CLI
Ethernet Switch CLI Reference Guide
16
1.1.3 SSH
1 Connect your computer to one of the Ethernet ports.
2 Use a SSH client program to access the Switch. If this is your first login, use the default
values in Table 3 on page 15 and Table 4 on page 16. Make sure your computer IP
address is in the same subnet, unless you are accessing the Switch through one or more
routers.
1.2 Logging in
Use the administrator username and password. If this is your first login, use the default values.
" The Switch automatically logs you out of the management interface after five
minutes of inactivity. If this happens to you, simply log back in again.
1.3 Using Shortcuts and Getting Help
This table identifies some shortcuts in the CLI, as well as how to get help.
Table 4 Default User Name and Password
SETTING DEFAULT VALUE
User Name admin
Password 1234
Table 5 CLI Shortcuts and Help
COMMAND / KEY(S) DESCRIPTION
history Displays a list of recently-used commands.
yz (up/down arrow keys) Scrolls through the list of recently-used commands. You can edit
any command or press [ENTER] to run it again.
[CTRL]+U Clears the current command.
[TAB] Auto-completes the keyword you are typing if possible. For
example, type config, and press [TAB]. The Switch finishes the
word configure.
? Displays the keywords and/or input values that are allowed in
place of the ?.
help Displays the (full) commands that are allowed in place of help.
Chapter 1 How to Access and Use the CLI
Ethernet Switch CLI Reference Guide
17
1.4 Saving Your Configuration
When you run a command, the Switch saves any changes to its run-time memory. The Switch
loses these changes if it is turned off or loses power. Use the
write memory command in
enable mode to save the current configuration permanently to non-volatile memory.
" You should save your changes after each CLI session. All unsaved
configuration changes are lost once you restart the Switch.
1.5 Logging Out
Enter logout to log out of the CLI. You have to be in user, enable, or config mode. See
Chapter 2 on page 19 for more information about modes.
sysname# write memory
Chapter 1 How to Access and Use the CLI
Ethernet Switch CLI Reference Guide
18
Ethernet Switch CLI Reference Guide
19
CHAPTER 2
Privilege Level and Command
Mode
This chapter introduces the CLI privilege levels and command modes.
The privilege level determines whether or not a user can run a particular command.
If a user can run a particular command, the user has to run it in the correct mode.
2.1 Privilege Levels
Every command has a privilege level (0-14). Users can run a command if the session’s
privilege level is greater than or equal to the command’s privilege level. The session’s
privilege level initially comes from the login account’s privilege level, though it is possible to
change the session’s privilege level after logging in.
2.1.1 Privilege Levels for Commands
The privilege level of each command is listed in the Reference A-G chapters on page 29.
At the time of writing, commands have a privilege level of 0, 3, 13, or 14. The following table
summarizes the types of commands at each of these privilege levels.
2.1.2 Privilege Levels for Login Accounts
You can manage the privilege levels for login accounts in the following ways:
Using commands. Login accounts can be configured by the admin account or any login
account with a privilege level of 14. See Chapter 38 on page 177.
Table 6 Types of Commands at Different Privilege Levels
PRIVILEGE LEVEL TYPES OF COMMANDS AT THIS PRIVILEGE LEVEL
0 Display basic system information.
3 Display configuration or status.
13 Configure features except for login accounts, SNMP user accounts, the
authentication method sequence and authorization settings, multiple logins,
administrator and enable passwords, and configuration information display.
14 Configure login accounts, SNMP user accounts, the authentication method
sequence and authorization settings, multiple logins, and administrator and
enable passwords, and display configuration information.
Chapter 2 Privilege Level and Command Mode
Ethernet Switch CLI Reference Guide
20
Using vendor-specific attributes in an external authentication server. See the Users Guide
for more information.
The admin account has a privilege level of 14, so the administrator can run every command.
You cannot change the privilege level of the admin account.
2.1.3 Privilege Levels for Sessions
The session’s privilege level initially comes from the privilege level of the login account the
user used to log in to the Switch. After logging in, the user can use the following commands to
change the session’s privilege level.
2.1.3.1 enable Command
This command raises the session’s privilege level to 14. It also changes the session to enable
mode (if not already in enable mode). This command is available in user mode or enable
mode, and users have to know the enable password.
In the following example, the login account user0 has a privilege level of 0 but knows that the
enable password is 123456. Afterwards, the session’s privilege level is 14, instead of 0, and
the session changes to enable mode.
The default enable password is 1234. Use this command to set the enable password.
password <password>
<password> consists of 1-32 alphanumeric characters. For example, the following
command sets the enable password to 123456. See Chapter 85 on page 319 for more
information about this command.
The password is sent in plain text and stored in the Switch’s buffers. Use this command to set
the cipher password for password encryption.
password cipher <password>
<password> consists of 32 alphanumeric characters. For example, the following command
encrypts the enable password with a 32-character cipher password. See Chapter 50 on page
213 for more information about this command.
2.1.3.2 enable <0-14> Command
This command raises the session’s privilege level to the specified level. It also changes the
session to enable mode, if the specified level is 13 or 14. This command is available in user
mode or enable mode, and users have to know the password for the specified privilege level.
sysname> enable
Password: 123456
sysname#
sysname(config)# password 123456
sysname(config)# password cipher qwertyuiopasdfghjklzxcvbnm123456
  • 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
  • Page 263 263
  • Page 264 264
  • Page 265 265
  • Page 266 266
  • Page 267 267
  • Page 268 268
  • Page 269 269
  • Page 270 270
  • Page 271 271
  • Page 272 272
  • Page 273 273
  • Page 274 274
  • Page 275 275
  • Page 276 276
  • Page 277 277
  • Page 278 278
  • Page 279 279
  • Page 280 280
  • Page 281 281
  • Page 282 282
  • Page 283 283
  • Page 284 284
  • Page 285 285
  • Page 286 286
  • Page 287 287
  • Page 288 288
  • Page 289 289
  • Page 290 290
  • Page 291 291
  • Page 292 292
  • Page 293 293
  • Page 294 294
  • Page 295 295
  • Page 296 296
  • Page 297 297
  • Page 298 298
  • Page 299 299
  • Page 300 300
  • Page 301 301
  • Page 302 302
  • Page 303 303
  • Page 304 304
  • Page 305 305
  • Page 306 306
  • Page 307 307
  • Page 308 308
  • Page 309 309
  • Page 310 310
  • Page 311 311
  • Page 312 312
  • Page 313 313
  • Page 314 314
  • Page 315 315
  • Page 316 316
  • Page 317 317
  • Page 318 318
  • Page 319 319
  • Page 320 320
  • Page 321 321
  • Page 322 322
  • Page 323 323
  • Page 324 324
  • Page 325 325
  • Page 326 326
  • Page 327 327
  • Page 328 328
  • Page 329 329
  • Page 330 330
  • Page 331 331
  • Page 332 332
  • Page 333 333
  • Page 334 334
  • Page 335 335
  • Page 336 336
  • Page 337 337
  • Page 338 338
  • Page 339 339
  • Page 340 340
  • Page 341 341
  • Page 342 342
  • Page 343 343
  • Page 344 344
  • Page 345 345
  • Page 346 346
  • Page 347 347
  • Page 348 348
  • Page 349 349
  • Page 350 350
  • Page 351 351
  • Page 352 352
  • Page 353 353
  • Page 354 354
  • Page 355 355
  • Page 356 356
  • Page 357 357
  • Page 358 358
  • Page 359 359
  • Page 360 360

ZyXEL Communications XGS-4728F User guide

Category
Software
Type
User guide
This manual is also suitable for

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

Finding information in a document is now easier with AI