This is a Reference Guide for a series of products intended for people who want to configure ZLDbased ZyWALLs via Command Line Interface (CLI).
Some commands or command options in this guide may not be available in your
product. See your product's User’s Guide for a list of supported features. Every effort
has been made to ensure that the information in this guide is accurate.
Please refer to www.zyxel.com for product specific User Guides and product certifications.
Do not use commands not documented in this guide.
How To Use This Guide
•Read Chapter 1 on page 19 for how to access and use the CLI (Command Line Interface).
•Read Chapter 2 on page 33 to learn about the CLI user and privilege modes.
Related Documentation
• Quick Start Guide
The Quick Start Guide shows how to connect the ZyWALL and access the Web Configurator
wizards. (See the wizard real time help for information on configuring each screen.) It also
contains a connection diagram and package contents list.
• User’s Guide
The User’s Guide explains how to use the Web Configurator to configure the ZyWALL.
It is recommended you use the Web Configurator to configure the ZyWALL.
1.10 Logging Out .....................................................................................................................................32
Chapter 2
User and Privilege Modes..................................................................................................................33
ZyWALL (ZLD) CLI Reference Guide
5
Table of Contents
2.1 User And Privilege Modes .................................................................................................................33
8.2.1 Assured Forwarding (AF) PHB for DiffServ ...........................................................................104
8.2.2 Policy Route Command Example ..........................................................................................104
8.3 IP Static Route ................................................................................................................................105
47.3.1 Application Watchdog Commands Example ........................................................................348
List of Commands (Alphabetical)....................................................................................................351
16
ZyWALL (ZLD) CLI Reference Guide
PART I
Introduction
17
18
This chapter describes how to access and use the CLI (Command Line Interface).
1.1 Overview
If you have problems with you r ZyWALL, customer support may request that you issue some of
these commands to assist them in troubleshooting.
Use of undocumented commands or misconfiguration can damage the
ZyWALL and possibly render it unusable.
1.1.1 The Configuration File
CHAPTER 1
Command Line Interface
When you configure the ZyWALL 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 Z yWALL.
You can store more than one configuration file on the ZyW ALL. However, only one configuration file
is used at a time.
You can perform the following with a configuration file:
• Back up ZyWALL configuration once the ZyWALL is set up to work in your network.
• Restore ZyWALL configuration.
• Save and edit a configuration file and upload it to multiple ZyWALLs (of the same model) in your
network to have the same settings.
Note: 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 progr am on a computer connected to the console
port, from the web configurator or access the Z yWALL using Telnet or S SH (Sec ure SHell).
Note: The ZyWALL might force you to log out of your session if reauthentication time,
lease time, or idle timeout is reached. See Chapter 26 on page 229 for more
information about these settings.
ZyWALL (ZLD) CLI Reference Guide19
Chapter 1 Command Line Interface
1.2.1 Console Port
The default settings for the console port are as follows.
Table 1 Managing the ZyWALL: Console Port
SETTINGVALUE
Speed115200 bps
Data Bits8
ParityNone
Stop Bit1
Flow ControlOff
When you turn on your ZyWALL, 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 Z yW ALL’ s.
• No text displays if the speed is set higher than the ZyWALL’s.
• If changing your terminal emulation program’s speed does n ot get anything to display, restart the
ZyWALL.
• If restarting the ZyWALL does not get anything to display, contact your local customer support.
Press any key to enter debug mode within 1 seconds.
.....................
After the initialization, the login screen displays.
Figure 2 Login Screen
Welcome to ZyWALL USG 20W
Username:
Enter the user name and password at the prompts.
Note: The default login use rnam e is admin and password is 1234. The username and
password are case-sensitive.
1.2.2 Web Configurator Console
Note: Before you can access the CLI through the web configurator, make sure your
computer supports the Java Runtime Environment. You will be prompted to
download and install the Java plug-in if it is not already installed.
20
ZyWALL (ZLD) CLI Reference Guide
Chapter 1 Command Line Interface
When you access the CLI using the web console, your computer establishes a SSH (Secure SHell)
connection to the ZyWALL. Follow the steps below to access the web console.
1Log into the web configurator.
2Click the Console icon in the top-right corner of the web configurator screen.
3If the Java plug-in is already installed, skip to step 4.
Otherwise, you will be prompted to install the Java plug-in. If the prompt does not display and the
screen remains gray, you have to download the setup program.
4The web console starts. This might take a few seconds. One or more security screens may display.
Click Yes or Always.
Figure 3 Web Console: Security Warnings
Finally, the User Name screen appears.
Figure 4 Web Console: User Name
5Enter the user name you want to use to log in to the console. The console begins to connect to the
ZyWALL.
ZyWALL (ZLD) CLI Reference Guide
21
Chapter 1 Command Line Interface
Note: The default login use rnam e is admin. It is case-sensitive.
Figure 5 Web Console: Connecting
Then, the Password screen appears.
Figure 6 Web Console: Password
6Enter the password for the user name you specified earlier, and click OK. If you enter the password
incorrectly, you get an error message, and you may have to close the console window and open it
again. If you enter the password correctly, the console screen appears.
Figure 7 Web Console
7To use most commands in this User’s Guide, enter
change to
Router(config)#.
configure terminal. The prompt should
22
ZyWALL (ZLD) CLI Reference Guide
1.2.3 Telnet
Use the following steps to Telnet into your ZyWALL.
1If your computer is connected to the ZyWALL over the Internet, skip to the next step. Make sure
your computer IP address and the ZyWALL IP address are on the same subnet.
2In Windows, click Start (usually in the bottom left corner) and Run. Then type telnet and the
ZyWALL’s IP address. For example, enter
address).
3Click OK. A login screen displays. Enter the user name and password at the prompts.
Note: The default login use rnam e 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 progr am 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.
Chapter 1 Command Line Interface
telnet 192.168.1.1 (the default management IP
Note: The default login use rnam e is admin and password is 1234. The username and
password are case-sensitive.
Figure 8 SSH Login Example
C:\>ssh2 admin@192.168.1.1
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.
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 (Alphabetical) 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.
ZyWALL (ZLD) CLI Reference Guide
23
Chapter 1 Command Line Interface
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 (Optional)
Note: 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 (Optional)
This section lists common input values for the commands for the feature in one or more tables
1.4.3 Command Summary
This section lists the commands for the feature in one or more tables.
1.4.4 Command Examples (Optional)
This section contains any examples for the commands in this feature.
1.4.5 Command Syntax
The following conventions are used in this User’s 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
For example, look at the following command to create a TCP/UDP service object.
2Enter the name of the object where you see object-name.
| symbol means OR.
{}.
[].
3Enter
4Finally, do one of the following.
tcp or udp, depending on the service object you want to create.
•Enter
eq exactly as it appears, followed by a number between 1 and 65535.
24
ZyWALL (ZLD) CLI Reference Guide
•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 ZyWALL. See Section
26.2 on page 230 for the appropriate commands.
1.5 CLI Modes
You run CLI commands in one of several modes.
Table 2 CLI Modes
USERPRIVILEGECONFIGURATIONSUB-COMMAND
What Guest users
can do
What User users
can do
What Limited-Admin users can
do
What Admin
users can do
How you enter itLog in to the ZyWALL Type enable in User
What the prompt
looks like
How you exit itType exitType disableType exitType exit
Unable to accessUnable to accessUnable to accessUnable to access
•Look at (but not
run) available
commands
•Look at system
information (like
Status screen)
•Run basic
diagnostics
•Look at system
information (like
Status screen)
•Run basic
diagnostics
Router>Router#Router(config)#(varies by part)
Chapter 1 Command Line Interface
Unable to accessUnable to accessUnable to access
•Look at system
information (like
Status screen)
•Run basic
diagnostics
•Look at system
information (like
Status screen)
•Run basic
diagnostics
mode
Unable to accessUnable to access
•Configure simple
features (such as
an address
object)
•Create or remove
complex parts
(such as an
interface)
Type configure
terminal in User or
Privilege mode
•Configure
complex parts
(such as an
interface) in the
ZyWALL
Type the command
used to create the
specific part in
Configuration
mode
Router(zone)#
Router(config-ifge)#
...
See Chapter 26 on page 229 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 ZyWALL 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.
ZyWALL (ZLD) CLI Reference Guide
25
Chapter 1 Command Line Interface
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. T o view a list of
available commands within a command group, enter <command> ? or <command> [TAB].
Figure 9 Help: Available Commands Example 1
Router> ?
<cr>
apply
atse
clear
configure
------------------[Snip]-------------------shutdown
telnet
test
traceroute
write
Router>
Figure 10 Help: Available Command Example 2
Router> show ?
<wlan ap interface>
aaa
access-page
account
ad-server
address-object
------------------[Snip]-------------------wlan
workspace
zone
Router> show
1.6.2 List of Sub-commands or Required User Input
To view detailed help information for a command, enter <command> <sub command> ?.
Figure 11 Help: Sub-command Information Example
Router(config)# ip telnet server ?
;
<cr>
port
rule
|
Router(config)# ip telnet server
26
Figure 12 Help: Required User Input Example
Router(config)# ip telnet server port ?
<1..65535>
Router(config)# ip telnet server port
ZyWALL (ZLD) CLI Reference Guide
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 ZyWALL automatically display the full command.
Chapter 1 Command Line Interface
For example, if you enter
displays.
If you enter a partial command that is not unique and press
commands that start with the partial command.
Figure 13 Non-Unique Partial Command Example
Router# c [TAB]
clear configure copy
Router# co [TAB]
configure copy
config and press [TAB] , the full command of configure automatically
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 ZyWALL treating it as a help query.
1.6.5 Command History
The ZyWALL 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 () or down () arrow key to scroll through
the previously used commands and press
[TAB], the ZyWALL displays a list of
[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 described in this document, you may not need to type the whole
command. For example, with th e “[no] mss <536..1452>” command, you use “m ss 536” to specify
the MSS value. But to disable the MSS setting, you only need to type “no mss” instead of “no mss
536”.
ZyWALL (ZLD) CLI Reference Guide
27
Chapter 1 Command Line Interface
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
When you use the example above, note that ZyW ALL USG 200 and below models use a name such
as wan1, wan2, opt, lan1, ext-wlan, or dmz.
<description>.
The following table provides more information about input values like
<description>.
Table 3 Input-Value Formats for Strings in CLI Commands
TAG# VALUESLEGAL VALUES
*1*
all--ALL
authentication keyUsed in IPSec SA
32-40
16-20
Used in MD5 authentication keys for RIP/OSPF and text authentication key for RIP
0-16alphanumeric or _Used in text authentication keys for OSPF
0-8alphanumeric or _-
certificate name1-31alphanumeric or ;`~!@#$%^&()_+[\]{}',.=-
community string0-63alphanumeric or .-
connection_id1+alphanumeric or -_:
contact1-61alphanumeric, spaces, or '()+,/:=?;!*#@$_%-.
country code0 or 2alphanumeric
custom signature file
name
descriptionUsed in keyword criteria for log entries
distinguished name1-511alphanumeric, spaces, or .@=,_-
0-30alphanumeric or _-.
1-64alphanumeric, spaces, or '()+,/:=?;!*#@$_%-.
Used in other commands
1-61alphanumeric, spaces, or '()+,/:=?;!*#@$_%-
“0x” or “0X” + 32-40 hexadecimal values
alphanumeric or ;|`~!@#$%^&*()_+\\{}':,./<>=-
first character: alphanumeric or -
first character: letter
28
ZyWALL (ZLD) CLI Reference Guide
Chapter 1 Command Line Interface
Table 3 Input-Value Formats for Strings in CLI Commands (continued)
TAG# VALUESLEGAL VALUES
domain nameUsed in content filtering
0+lower-case letters, numbers, or .Used in ip dns server
0-247alphanumeric or .-
first character: alphanumeric or Used in domainname, ip dhcp pool, and ip domain
0-254alphanumeric or ._-
first character: alphanumeric or -
email1-63alphanumeric or .@_-
e-mail1-64alphanumeric or .@_-
encryption key16-64
file name0-31alphanumeric or _-
filter extension1-256alphanumeric, spaces, or '()+,/:=?;!*#@$_%.-
fqdnUsed in ip dns server
full file name0-256alphanumeric or _/.-
hostnameUsed in hostname command
import configuration
file
import shell script1-26+”.zysh”alphanumeric or ;`~!@#$%^&()_+[]{}',.=-
initial string1-64alphanumeric, spaces, or '()+,/:=!*#@$_%-.&
isp account password0-63alphanumeric or `~!@#$%^&*()_\-+={}|\;:'<,>./
isp account username0-30alphanumeric or -_@$./
ipv6_addr An IPv6 address. The 128-bit IPv6 address is written as eight 16-bit
8-32
0-252alphanumeric or .-
Used in ip ddns, time server, device HA, VPN, certificates, and interface ping
check
0-254alphanumeric or .-
0-63alphanumeric or .-_
Used in other commands
0-252alphanumeric or .-
1-26+”.conf”alphanumeric or ;`~!@#$%^&()_+[]{}',.=-
“0x” or “0X” + 16-64 hexadecimal values
alphanumeric or ;\|`~!@#$%^&*()_+\\{}':,./<>=-
first character: alphanumeric or -
first character: alphanumeric or -
first character: alphanumeric or -
first character: alphanumeric or -
add “.conf” at the end
add “.zysh” at the end
hexadecimal blocks separated by colons (:). This is an example IPv6
address 2001:0db8:1a2b:0015:0000:0000:1a2f:0000.
IPv6 addresses can be abbreviated in two ways:
Leading zeros in a block can be omitted. So
2001:0db8:1a2b:0015:0000:0000:1a2f:0000 can be written as
2001:db8:1a2b:15:0:0:1a2f:0.
Any number of consecutive blocks of zeros can be replaced by a double
colon. A double colon can only appear once in an IPv6 address. So
2001:0db8:0000:0000:1a2f:0000:0000:0015 can be written as
mac address--aa:bb:cc:dd:ee:ff (hexadecimal)
mail server fqdnlower-case letters, numbers, or -.
name1-31alphanumeric or _-
notification message1-81alphanumeric, spaces, or '()+,/:=?;!*#@$_%-
password: less than 15
chars
password: less than 8
chars
passwordUsed in user and ip ddns
phone number1-20numbers or ,+
preshared key16-64“0x” or “0X” + 16-64 hexadecimal values
profile name0-30alphanumeric or _-
proto name1-16lower-case letters, numbers, or -
protocol name0-30alphanumeric or _-
quoted string less than
127 chars
quoted string less than
63 chars
quoted string0+alphanumeric, spaces, or punctuation marks
service name0-63alphanumeric or -_@$./
spi2-8hexadecimal
string less than 15
chars
string: less than 63
chars
string1+alphanumeric or -_@
subject1-61alphanumeric, spaces, or '()+,./:=?;!*#@$_%-
system type0-2hexadecimal
timezone [-+]hh---12 through +12 (with or without “+”)
1-15alphanumeric or `~!@#$%^&*()_\-+={}|\;:'<,>./
1-8alphanumeric or ;/?:@&=+$\.-_!~*'()%,#$
1-63alphanumeric or `~!@#$%^&*()_-+={}|\;:'<,>./
Used in e-mail log profile SMTP authentication
1-63alphanumeric or `~!@#$%^&*()_-+={}|\;:'<>./
Used in device HA synchronization
1-63alphanumeric or ~#%^*_-={}:,.
Used in registration
6-20alphanumeric or .@_-
alphanumeric or ;|`~!@#$%^&*()_+\{}':,./<>=-
first character: letters or _-
first character: letters or _1-255alphanumeric, spaces, or ;/?:@&=+$\.-_!~*'()%,
1-63alphanumeric, spaces, or ;/?:@&=+$\.-_!~*'()%
enclosed in double quotation marks (“)
must put a backslash (\) before double quotation marks that are
part of input value itself
1-15alphanumeric or -_
1-63alphanumeric or `~!@#$%^&*()_-+={}|\;:'<,>./
30
ZyWALL (ZLD) CLI Reference Guide
Chapter 1 Command Line Interface
Table 3 Input-Value Formats for Strings in CLI Commands (continued)
TAG# VALUESLEGAL VALUES
url1-511alphanumeric or '()+,/:.=?;!*#@$_%-
urlUsed in content filtering redirect
“http://”+
“https://”+
Used in other content filtering commands
“http://”+alphanumeric or ;/?:@&=+$\.-_!~*'()%,
user nameUsed in VPN extended authentication
1-31alphanumeric or _Used in other commands
0-30alphanumeric or _-
username6-20alphanumeric or .@_-
user name1+alphanumeric or -_.
user@domainname1-80alphanumeric or .@_-
vrrp group name: less
than 15 chars
week-day sequence, i.e.
1=first,2=second
xauth method1-31alphanumeric or _-
xauth password1-31alphanumeric or ;|`~!@#$%^&*()_+\{}':,./<>=-
mac address0-12 (even
1-15alphanumeric or _-
11-4
number)
alphanumeric or ;/?:@&=+$\.-_!~*'()%,
starts with “http://” or “https://”
may contain one pound sign (#)
starts with “http://”
may contain one pound sign (#)
first character: letters or _-
registration
logging commands
hexadecimal
for example: aa aabbcc aabbccddeeff
1.8 Ethernet Interfaces
How you specify an Ethernet interface depends on the ZyWA LL model.
• For the ZyWALL USG 300 and above, use gex, x = 1~N, where N equals the highest numbered
Ethernet interface for your ZyWALL model.
• The ZyWALL USG 200 and below models use a name such as wan1, wan2, opt, lan1, ext-wlan, or
dmz.
1.9 Saving Configuration Changes
Use the write command to save the current configuration to the ZyWALL.
Note: Always save the changes before you log out after each management session. All
unsaved changes will be lost after the system restarts.
ZyWALL (ZLD) CLI Reference Guide
31
Chapter 1 Command Line Interface
1.10 Logging Out
Enter the exit or end command in configure mode to go to privilege mode.
Enter the
exit command in user mode or privilege mode to log out of the CLI.
32
ZyWALL (ZLD) CLI Reference Guide
User and Privilege Modes
This chapter describes how to use these two modes.
2.1 User And Privilege Modes
This is the mode you are in when you first log into the CLI. (Do not confuse ‘user mode’ with types
of user accounts the ZyWALL uses. See Chapter 26 on page 229 for more information about the
user types. ‘User’ type accounts can only run ‘exit’ in this mode. However, they may need to log
into the device in order to be authenticated for ‘user-aware’ policies, for example a firewall rule that
a particular user is exempt from or a VPN tunnel that only certain people may use.)
Type ‘enable’ to go to ‘privilege mode’. No password is required. All commands can be run from
here except those marked with an asterisk. Many of these commands are for trouble-shooting
purposes, for example the htm (hardware test module) and debug commands. Customer support
may ask you to run some of these commands and send the results if you need assistance
troubleshooting your device.
CHAPTER 2
For admin logins, all commands are visible in ‘user mode’ but not all can be run there. The following
table displays which commands can be run in ‘user mode’. All commands can be run in ‘privilege
mode’.
The htm and psm commands are for ZyXEL’s internal manufacturing
process.
Table 4 User (U) and Privilege (P) Mode Commands
COMMANDMODE DESCRIPTION
applyPApplies a configuration file.
atseU/PDisplays the seed code
clearU/PClears system or debug logs or DHCP binding.
configureU/PUse ‘configure terminal’ to enter configuration mode.
copyPCopies configuration files.
debug (*)U/PFor support personnel only! The device needs to have the debug flag enabled.
deletePDeletes configuration files.
detailsPPerforms diagnostic commands.
diagPProvided for support personnel to collect internal system information. It is not recommended
that you use these.
diag-infoPHas the ZyWALL create a new diagnostic file.
dirPLists files in a directory.
disableU/PGoes from privilege mode to user mode
enableU/PGoes from user mode to privilege mode
ZyWALL (ZLD) CLI Reference Guide33
Chapter 2 User and Privilege Modes
Table 4 User (U) and Privilege (P) Mode Commands (continued)
COMMANDMODE DESCRIPTION
exitU/PGoes to a previous mode or logs out.
htmU/PGoes to htm (hardware test module) mode for testing hardware components. Y ou ma y need to
use the htm commands if your customer support Engineer asks you to during troubleshooting.
Note: These commands are for ZyXEL’s internal manufacturing process.
interfaceU/PDials or disconnects an interface.
no packet-trace U/PTurns off packet tracing.
nslookupU/PResolves an IP address to a host name and vice-versa.
packet-traceU/PPerforms a packet trace.
pingU/PPings an IP address or host name.
ping6U/PPings an IPv6 address or a host name.
psmU/PGoes to psm (product support module) mode for setting product parameters. You may need to
use the htm commands if your customer support Engineer asks you to during troubleshooting.
Note: These commands are for ZyXEL’s internal manufacturing process.
rebootPRestarts the device.
releasePReleases DHCP information from an interface.
renamePRenames a configuration file.
renewPRenews DHCP information for an interface.
runPRuns a script.
setenvU/PTurns stop-on-error on (terminates booting if an error is found in a configuration file) or off
(ignores configuration file errors and continues booting).
showU/PDisplays command statistics. See the associated command chapter in this guide.
shutdownPWrites all d data to disk and stops the system processes. It does not turn off the power.
telnetU/PEstabli shes a connection to the TCP port number 23 of the specified host name or IP address.
test aaaU/PTests whether the specified user name can be successfully authenticated by an external
authentication server.
traceroutePTraces the route to the specified host name or IP address.
traceroute6PTraces the route to the specified host name or IPv6 address.
writePSaves the current configuration to the ZyWALL. All unsaved changes are lost after the ZyWALL
restarts.
Subsequent chapters in this guide describe the configuration commands. User/privilege mode
commands that are also configuration commands (for example, ‘show’) are described in more detail
in the related configuration command chapter.
2.1.1 Debug Commands
Debug commands marked with an asterisk (*) are not available when the debug flag is on and are
for ZyXEL service personnel use only. The debug commands follow a Linux-based syntax, so if there
34
ZyWALL (ZLD) CLI Reference Guide
Chapter 2 User and Privilege Modes
is a Linux equivalent, it is displayed in this chapter for your reference. You must know a command
listed here well before you use it. Otherwise, it may cause undesired results.
profiling
debug service-registerService registration debug command
debug show content-filter server Category-based content filtering debug
debug show myzyxel server statusMyzyxel.com debug commands
debug show ipsetLists the ZyWALL‘s received cards
debug show myzyxel server statusMyzyxel.com debug commands
debug sslvpnSSL VPN debug commands
Shows system interfaces detail> ifconfig [interface]
responses for interfaces which don't own
the IP address
server to the official site
Content Filtering debug commands
command
protocol.list
cat /proc/sys/net/ipv4/conf/*/
arp_ignore
ZyWALL (ZLD) CLI Reference Guide
35
Chapter 2 User and Privilege Modes
Table 5 Debug Commands (continued)
COMMAND SYNTAXDESCRIPTIONLINUX COMMAND EQUIVALENT
debug system ipv6IPv6 debug commands
debug [cmdexec|corefile|ip
debug update server (*)Update server debug command
ZLD internal debug commands
36
ZyWALL (ZLD) CLI Reference Guide
PART II
Reference
37
38
CHAPTER 3
Object Reference
This chapter describes how to use object reference commands.
3.1 Object Reference Commands
The object reference commands are used to see which configuration settings reference a specific
object. You can use this table when you want to delete an object because you have to remove
references to the object first.
Table 6 show reference Commands
COMMANDDESCRIPTION
show reference object username
[username]
show reference object address
[object_name]
show reference object address6
[object_name]
show reference object eps [object_name]Displays which configuration settings referen ce the specified endpoint
show reference object service
[object_name]
show reference object schedule
[object_name]
show reference object interface
[interface_name | virtual_interface_name]
show reference object aaa authentication
[default | auth_method]
show reference object ca category
{local|remote} [cert_name]
show reference object account pppoe
[object_name]
show reference object account pptp
[object_name]
show reference object sslvpn application
[object_name]
show reference object crypto map
[crypto_name]
show reference object isakmp policy
[isakmp_name]
show reference object sslvpn policy
[object_name]
Displays which configuration settings reference the specified user object.
Displays which configuration settings reference the specified address
object.
Displays which configuration settings reference the specified IPv6 address
object.
security object.
Displays which configuration settings reference the specified service
object.
Displays which configuration settings referen ce the specified schedule
object.
Displays which configuration settings reference the specified interface or
virtual interface object.
Displays which configuration settings reference the specified AAA
authentication object.
Displays which configuration settings reference the specified
authentication method object.
Displays which configuration settings referen ce the specified PPPoE
account object.
Displays which configuration settings reference the specified PPTP account
object.
Displays which configuration settings referen ce the specified SSL VPN
application object.
Displays which configuration settings reference the specified VPN
connection object.
Displays which configuration settings reference the specified VP N gateway
object.
Displays which configuration settings referen ce the specified SSL VPN
object.
ZyWALL (ZLD) CLI Reference Guide39
Chapter 3 Object Reference
Table 6 show reference Commands (continued)
COMMANDDESCRIPTION
show reference object zone [object_name] Displays which configuration settings reference the specified zone object.
show reference object dhcp6-lease-object
[object_name]
show reference object dhcp6-request-
object [object_name]
show reference object-group username
[username]
show reference object-group address
[object_name]
show reference object-group address6
[object_name]
show reference object-group service
[object_name]
show reference object-group interface
[object_name]
show reference object-group aaa ad
[group_name]
show reference object-group aaa ldap
[group_name]
show reference object-group aaa radius
[group_name]
Displays which configuration settings reference the specified DHCPv6
lease object.
Displays which configuration settings reference the specified DHCPv6
request object.
Displays which configuration settings reference the specified user group
object.
Displays which configuration settings reference the specified address
group object.
Displays which configuration settings reference the specified IPv6 address
group object.
Displays which configuration settings reference the specified service
group object.
Displays which configuration settings reference the specified trunk object.
Displays which configuration settings reference the specified AAA AD
group object.
Displays which configuration settings reference the specified AAA LDAP
group object.
Displays which configuration settings reference the specified AAA RADIUS
group object.
3.1.1 Object Reference Command Example
This example shows how to check which configuration is using an address object named
LAN1_SUBNET. For the command output, firewall rule 3 named LAN1-to-USG-2000 is using the
address object.
Router(config)# show reference object address LAN1_SUBNET
This chapter explains some commands you can use to display information about the ZyWALL’s
current operational state.
Table 7 Status Show Commands
COMMANDDESCRIPTION
show boot statusDisplays details about the ZyWALL’s startup state.
show comport statusDisplays whether the console and auxiliary ports are on or off.
show cpu statusDisplays the CPU utilization.
show disk Displays the disk utilization.
show extension-slotDisplays the status of the extension card s lot an d USB port s and the names of devices connected
to them.
show fan-speedDisplays the current fan speed.
show led statusDisplays the status of each LED on the ZyWALL.
show macDisplays the ZyWALL’s MAC address.
show mem statusDisplays what percentage of the ZyWALL’s memory is currently being used.
show ram-sizeDisplays the size of the ZyWALL’s on-board RAM.
show redundant-
power status
show serial-numberDisplays the serial number of this ZyWALL.
show socket listenDisplays the ZyWALL’s listening ports
show socket openDisplays the ports that are open on the ZyWALL.
show system uptimeDisplays how long the ZyWALL has been running since it last restarted or was turned on.
show versionDisplays the ZyWALL’s model, firmware and build information.
Displays the status of the ZyWALL’s power modules. The ZyWALL has two power modules. It can
continue operating on a single power module if one fails.
Here are examples of the commands that display the CPU and disk utilization.
Router(config)# show cpu status
CPU utilization: 0 %
CPU utilization for 1 min: 0 %
CPU utilization for 5 min: 0 %
Router(config)# show disk
; <cr> |
Router(config)# show disk
No. Disk Size(MB) Usage
===========================================================================
1 image 67 83%
2 onboard flash 163 15%
ZyWALL (ZLD) CLI Reference Guide41
Chapter 4 Status
Here are examples of the commands that display the fan speed, MAC address, memory usage, RAM
size, and serial number.
Router(config)# show fan-speed
FAN1(F00)(rpm): limit(hi)=6500, limit(lo)=1400, max=6650, min=6642, avg=6644
FAN2(F01)(rpm): limit(hi)=6500, limit(lo)=1400, max=6809, min=6783, avg=6795
FAN3(F02)(rpm): limit(hi)=6500, limit(lo)=1400, max=6683, min=6666, avg=6674
FAN4(F03)(rpm): limit(hi)=6500, limit(lo)=1400, max=6633, min=6617, avg=6627
Router(config)# show mac
MAC address: 28:61:32:89:37:61-28:61:32:89:37:67
Router(config)# show mem status
memory usage: 39%
Router(config)# show ram-size
ram size: 510MB
Router(config)# show serial-number
serial number: S060Z12020460
Here is an example of the command that displays the listening ports.
Here are examples of the commands that display the system uptime and model, firmware, and
build information.
Router> show system uptime
system uptime: 04:18:00
Router> show version
ZyXEL Communications Corp.
model : ZyWALL USG 100
firmware version: 2.20(AQQ.0)b3
BM version : 1.08
build date : 2009-11-21 01:18:06
This example shows the current LED states on the ZyWALL. The SYS LED lights on and green. The
AUX and HDD LEDs are both off.
Router> show led status
sys: green
aux: off
hdd: off
Router>
44
ZyWALL (ZLD) CLI Reference Guide
This chapter introduces myzyxel.com and shows you how to register the ZyW ALL for IDP/AppPatrol,
anti-virus, content filtering, and SSL VPN services using commands.
5.1 myZyXEL.com Overview
myZyXEL.comis ZyXEL’s online services center where you can register your ZyWALL and manage
subscription services available for the ZyWALL.
Note: Y ou need to create an account before yo u can register y our device and activ ate the
services at myZyXEL.com.
You can directly create a myZ yXEL.com account, register your ZyWALL and activate a service using
the Licensing > Registration screens. Alternatively, go to http://www.myZyXEL.com with the
ZyWALL’ s serial number and LAN MAC address to register it. Refer to the web site’s on-line help for
details.
CHAPTER 5
Registration
Note: To activate a service on a ZyWALL, you need to access myZyXEL.com via that
ZyWALL.
5.1.1 Subscription Services Available on the ZyWALL
The ZyWALL can use anti-virus, anti-spam, IDP/AppPatrol (Intrusion Detection and Prevention and
application patrol), SSL VPN, and content filtering subscription services.
• The ZyWALL’s anti-virus packet scanner uses the signature files on the ZyWALL to detect virus
files. Your ZyWALL scans files transmitting through the enabled interfaces into the network.
Subscribe to signature files for ZyXEL’s anti-virus engine or one powered by Kaspersky. After the
service is activated, the ZyWALL can download the up-to-date signature files from the update
server (http://myupdate.zywall.zyxel.com).
When using the trial, you can switch from one engine to the other in the Registration screen.
There is no limit on the number of times you can change the anti-virus engine selection during
the trial, but you only get a total of one anti-virus trial period (not a separate trial period for each
anti-virus engine). After the service is activated, the ZyWALL can download the up-to-date
signature files from the update server (http://myupdate.zywall.zyxel.com).
After the trial expires, you need to purchase an iCard for the anti-virus engine you want to use
and enter the PIN number (license key) in the Registration > Service screen. You must use the
ZyXEL anti-virus iCard for the ZyXEL anti-virus engine and the Kaspersky anti-virus iCard for the
Kaspersky anti-virus engine. If you were already using an iCard anti-virus subscription, any
remaining time on your earlier subscription is automatically added to the new subscription. Even
if the earlier iCard anti-virus subscription was for a different anti-virus engine. For example,
ZyWALL (ZLD) CLI Reference Guide45
Chapter 5 Registration
suppose you purchase a one-year Kaspersky engine anti-virus service subscription and use it for
six months. Then you purchase a one-year ZyXEL engine anti-virus service subscription and
enter the iCard’s PIN number (license key) in the Registration > Service screen. The one-year
ZyXEL engine anti-virus service subscription is automatically extended to 18 months.
• The IDP and application patrol features use the IDP/AppPatrol signature files on the ZyWALL. IDP
detects malicious or suspicious packets and responds immediately. Application patrol
conveniently manages the use of various applications on the network. After the service is
activated, the ZyWALL can download the up-to-date signature files from the update server
(http://myupdate.zywall.zyxel.com).
• SSL VPN tunnels provide secure network access to remote users. You can purchase and enter a
license key to have the ZyWALL use more SSL VPN tunnels.
• The content filter allows or blocks access to web sites. Subscribe to category-based content
filtering to block access to categories of web sites based on content. Your ZyWALL accesses an
external database that has millions of web sites categorized based on content. You can have the
ZyWALL block, block and/or log access to web sites based on these categories.
• You will get automatic e-mail notification of new signature releases from mySecurityZone after
you activate the IDP/AppPatrol service. You can also check for new signatures at http://
mysecurity.zyxel.com.
See the respective chapters for more information about these features.
Note: To update the signature file or use a subscription service, you have to register the
ZyWALL and activate the corresponding service at myZyXEL.com (through the
ZyWALL).
5.2 Registration Commands
The following table identifies the values required for many of these commands. Other input values
are discussed with the corresponding commands.
Table 8 Input Values for General Registration Commands
LABELDESCRIPTION
user_nameThe user name of your myZyXEL.com account. You must use six to 20 alphanumeric
passwordThe password for the myZyXEL.com account. You must use six to 20 alphanumeric
The following table describes the commands available for registration. You must use the
configure terminal command to enter the configuration mode before you can use these
commands.
Table 9 Command Summary: Registration
COMMANDDESCRIPTION
device-register checkuser user_nameChecks if the user name exists in the myZyXEL.com
service-register service-type trial service asActivates the Anti-Spam trial service subscription.
show service-register status asDisplays whether the Anti-Spam service is registered and
debug service-register erase service asRemoves the ZyWALL’s Anti-Spam service registration.
Activates a standard service subscription with the license
key.
Activates the content filter or IDP trial service
subscription.
Activates all of the trial service subscriptions, including
Kaspersky or ZyXEL anti-virus.
Activates a Kaspersky or ZyXEL anti-virus trial service
subscription.
Changes from one anti-virus engine to the other.
information.
when registration.
ZyWALL is connected.
Displays service license information.
Displays BlueCoat or Commtouch service license
information.
is set to use for content filtering.
Sets whether the ZyWALL uses BlueCoat or Commtouch
for content filtering.
account information.
5.2.1 Command Examples
The following commands allow you to register your device with an existing account or create a new
account and register the device at one time, and activate a trial service subscription.
The following command displays the account information and whether the device is registered.
Router# configure terminal
Router(config)# show device-register status
username : example
password : 123456
device register status : yes
expiration self check : no
ZyWALL (ZLD) CLI Reference Guide
47
Chapter 5 Registration
The following command displays the service registration status and type and how many days
remain before the service expires.
Router# configure terminal
Router(config)# show service-register status all
Service Status Type Count Expiration
===========================================================================
IDP Signature Licensed Standard N/A 176
Anti-Virus Not Licensed None N/A 0
SSLVPN Not Licensed None 5 N/A
Content-Filter Not Licensed None N/A 0
The following command displays the seller details you have entered on the ZyWALL.
119Latvia120Lebanon
121Lesotho122Liberia
123Liechtenstein124Lithuania
125Luxembourg126Macau
127Macedonia, Former Yugoslav
129Malawi130Malaysia
131Maldives132Mali
133Malta134Marshall Islands
135Martinique136Mauritania
137Mauritius138Mayotte
139Mexico140Micronesia, Federal State of
141Moldova, Republic of142Monaco
143Mongolia144Montserrat
145Morocco146Mozambique
147Namibia148Nauru
149Nepal150Netherlands
151Netherlands Antilles152New Caledonia
153New Zealand154Nicaragua
155Niger156Nigeria
157Niue158Norfolk Island
159Northern Mariana Islands160Norway
161Not Determined162Oman
163Pakistan164Palau
165Panama166Papua New Guinea
167Paraguay168Peru
169Philippines170Pitcairn Island
171Poland172Portugal
173Puerto Rico174Qatar
175Reunion Island176Romania
177Russian Federation178Rwanda
179Saint Kitts and Nevis180Saint Lucia
181Saint Vincent an d the Grenadines182San Marin o
183Sao Tome and Principe184Saudi Arabia
185Senegal186Seychelles
187Sierra Leone188Singapore
189Slovak Republic190Slovenia
191Solomon Islands192Somalia
193South Africa194South Georgia and the South
185Spain196Sri Lanka
COUNTRY NAME
Republic
COUNTRY
CODE
128Madagascar
COUNTRY NAME
Sandwich Islands
50
ZyWALL (ZLD) CLI Reference Guide
Chapter 5 Registration
Table 10 Country Codes (continued)
COUNTRY
CODE
197St Pierre and Miquelon198St. Helena
199Suriname200Svalbard and Jan Mayen Islands
201Swaziland202Sweden
203Switzerland204Taiwan
205Tajikistan206Tanzania
207Thailand208Togo
209Tokelau210Tonga
211Trinidad and Tobago212Tunisia
213Turkey214Turkmenistan
215Turks and Caicos Islands216Tuvalu
217US Minor Outlying Islands218Uganda
219Ukraine220United Arab Emirates
221United Kingdom222United States
223Uruguay224Uzbekistan
225Vanuatu226Venezuela
227Vietnam228Virgin Islands (British)
229Virgin Islands (USA)230Wallis And Futuna Islands
231Western Sahara232Western Samoa
233Yemen234Yugoslavia
235Zambia236Zimbabwe
COUNTRY NAME
COUNTRY
CODE
COUNTRY NAME
ZyWALL (ZLD) CLI Reference Guide
51
Chapter 5 Registration
52
ZyWALL (ZLD) CLI Reference Guide
This chapter shows you how to use interface-related commands.
6.1 Interface Overview
In general, an interface has the following characteristics.
• An interface is a logical entity through which (layer-3) packets pass.
• An interface is bound to a physical port or another interface.
• Many interfaces can share the same physical port.
• An interface is bound to at most one zone.
• Many interface can belong to the same zone.
• Layer-3 virtualization (IP alias, for example) is a kind of interface.
CHAPTER 6
Interfaces
Some characteristics do not apply to some types of interfaces.
6.1.1 Types of Interfaces
You can create several types of interfaces in the ZyWALL. The types supported vary by ZyWALL
model.
• Port groups create a hardware connection between physical ports at the layer-2 (data link, MAC
address) level.
• Ethernet interfaces are the foundation for defining other interfaces and network policies. RIP
and OSPF are also configured in these interfaces.
• VLAN interfaces receive and send tagged frames. The ZyWALL automatically adds or removes
the tags as needed. Each VLAN can only be associated with one Ethernet interface.
• Bridge interfaces create a software connection between Ethernet or VLAN interfaces at the
layer-2 (data link, MAC address) level. Unlike port groups, bridge interfaces can take advantage
of some security features in the ZyWALL. You can also assign an IP address and subnet mask to
the bridge.
• PPPoE/PPTP interfaces support Point-to-Point Protocols (PPP). ISP accounts are required for
PPPoE/PPTP interfaces.
• Cellular interfaces are for 3G WAN connections via a connected 3G device.
• WLAN interfaces are for wireless LAN (IEEE 802.11b/g) connections via an installed wireless
LAN card.
• Virtual interfaces (IP alias) provide additional routing information in the ZyWALL. There are
three types: virtual Ethernet interfaces, virtual VLAN interfaces, and virtual bridge interfaces.
ZyWALL (ZLD) CLI Reference Guide53
Chapter 6 Interfaces
•The auxiliary interface, along with an external modem, provides an interface the ZyWALL can
use to dial out. This interface can be used as a backup WAN interface, for example. The auxiliary
interface controls the DIAL BACKUP port (labeled AUX on some models).
• Trunks manage load balancing between interfaces.
Port groups, trunks, and the auxiliary interface have a lot of characteristics that are specific to each
type of interface. These characteristics are listed in the following tables and discussed in more
detail farther on.
Table 11 Characteristics of Ethernet, VLAN, Bridge, PPPoE/PPTP, and Virtual Interface (ZyWALL
USG 300 and Above)
static IP address
DHCP clientYesYesYesYesNo
routing metric
Interface Parameters
bandwidth restrictions
packet size (MTU)YesYesYesYesNo
data size (MSS)YesYesYesYesNo
traffic prioritizationYesYesYesYesNo
DHCP
DHCP server
DHCP relayYesYesYesNoNo
Ping CheckYesYesYesYesNo
YesYesYesYesYes
YesYesYesYesYes
YesYesYesYesYes
YesYesYesNoNo
* - The format of interface names is strict. Each name consists of 2-4 letters (interface type), followed by a number (x,
limited by the maximum number of each type of interface). For example, Ethernet interface names are ge1, ge2,
ge3, ...; VLAN interfaces are vlan0, vlan1, vlan2, ...; and so on.
** - The names of virtual interfaces are derived from the interfaces on which they are created. For example, virtual
interfaces created on Ethernet interface ge1 are called ge1:1, ge1:2, and so on. Virtual interfaces created on VLAN
interface vlan2 are called vlan2:1, vlan2:2, and so on. You cannot specify the number after the colon(:) in the web
configurator; it is a sequential number. You can specify the number after the colon if you use the CLI to set up a
virtual Interface Parameters
Table 12 Ethernet, VLAN, Bridge, PPP, and Virtual Interface Characteristics (ZyWALL USG 200 and
Below Models)
Packet size (MTU)
Data size (MSS)YesYesYesYesYesYesNo
DHCP
DHCP server
DHCP relayYesNoYesYesYesNoNo
Connectivity CheckYesYesNoYesYesYesNo
* - Each name consists of 2-4 letters (interface type), followed by a number (x). For most interfaces, x is limited by the
maximum number of the type of interface. For VLAN interfaces, x is defined by the number you enter in the VLAN
name field. For example, Ethernet interface names are wan1, wan2, opt, lan1, ext-wlan, dmz; VLAN interfaces are
vlan0, vlan1, vlan2, ...; and so on.
** - The names of virtual interfaces are derived from the interfaces on which they are created. For example, virtual
interfaces created on Ethernet interface wan1 are called wan1:1, wan1:2, and so on. Virtual interfaces created on
VLAN interface vlan2 are called vlan2:1, vlan2:2, and so on. You cannot specify the number after the colon(:) in the
web configurator; it is a sequential number. You can specify the number after the colon if you use the CLI to set up a
virtual interface.
YesYesYesYesYesYesNo
YesNoYesYesYesNoNo
Table 13 Cellular and WLAN Interface Characteristics
CHARACTERISTICS CELLULARWLAN
Name*cellularxwlan-x-x
Configurable ZoneYes**Yes
IP Address
Assignment
Static IP address
DHCP clientYesNo
Routing metricYesNo
Interface Parameters
Bandwidth
restrictions
Packet size (MTU)
Data size (MSS)YesYes
DHCP
DHCP serverNo
DHCP relayNo
Connectivity CheckYesNo
YesYes
YesYes
YesYes
Yes
Yes
* - Each name consists of letters (interface type), followed by a number (x). For most interfaces, x is limited by the
maximum number of the type of interface. For WLAN interfaces, the first number identifies the slot and the second
number identifies the individual interface.
** - Cellular interfaces can be added to the WAN zone or no zone.
ZyWALL (ZLD) CLI Reference Guide
55
Chapter 6 Interfaces
6.1.2 Relationships Between Interfaces
In the ZyWALL, interfaces are usually created on top of other interfaces. Only Ethernet interfaces
are created directly on top of the physical ports (or port groups). The relationships between
interfaces are explained in the following table.
Table 14 Relationships Between Different Types of Interfaces
INTERFACEREQUIRED PORT / INTERFACE
auxiliary interfaceauxiliary port
port groupphysical port
Ethernet interfacephysical port
* - You cannot set up a PPPoE/PPTP interface, virtual Ethernet interface, or virtual VLAN interface if the underlying
interface is a member of a bridge. You also cannot add an Ethernet interface or VLAN interface to a bridge if the
member interface has a virtual interface or PPPoE/PPTP interface on top of it.
VLAN interface*
bridge interface
Cellular interface
VLAN interface
bridge interface
PPPoE/PPTP interface
auxiliary interface
56
ZyWALL (ZLD) CLI Reference Guide
6.2 Interface General Commands Summary
The following table identifies the values required for many of these commands. Other input values
are discussed with the corresponding commands.
Table 15 Input Values for General Interface Commands
LABELDESCRIPTION
interface_nameThe name of the interface.
Ethernet interface: For the ZyWALL USG 300 and above, use gex, x = 1 - N, where N
equals the highest numbered Ethernet interface for your ZyWALL model.
ZyWALL USG 200 and below models use a name such as wan1, wan2, opt, lan1, extwlan, or dmz.
virtual interface on top of Ethernet interface: add a colon (:) and the number of the
virtual interface. For example: gex:y, x = 1 - N, y = 1 - 4
VLAN interface: vlanx, x = 0 - 4094
virtual interface on top of VLAN interface: vlanx:y, x = 0 - 4094, y = 1 - 4
bridge interface: brx, x = 0 - N, where N depends on the number of bridge interfaces
your ZyWALL model supports.
virtual interface on top of bridge interface: brx:y, x = the number of the bridge interface,
y = 1 - 4
PPPoE/PPTP interface: pppx, x = 0 - N, where N depends on the number of PPPoE/PPTP
interfaces your ZyWALL model supports.
profile_nameThe name of the DHCP pool. You may use 1-31 alphanumeric characters,
underscores(
case-sensitive.
domain_nameFully-qualified domain name. You may up to 254 alphanumeric characters, dashes (-), or
periods (.), but the first character cannot be a period.
_), or dashes (-), but the first character cannot be a number. This value is
Chapter 6 Interfaces
The following sections introduce commands that are supported by several types of interfaces. See
Section 6.6 on page 76 for the unique commands for each type of interface.
6.2.1 Basic Interface Properties and IP Address Commands
This table lists basic properties and IP address commands.
Table 16 interface General Commands: Basic Properties and IP Address Assignment
COMMANDDESCRIPTION
show interface {ethernet | vlan | bridge
| ppp | auxiliary} status
show ipv6 static address interface Displays the static IPv6 addresses configured on the specified IPv6
show ipv6 nd ra status config_interfaceDisplays the specified IPv6 interface’s IPv6 router advertisement
Displays the connection status of the specified type of interfaces.
Displays information about the spec ified interface, specified type of
interfaces, or all interfaces. See Section 6.6.1 on page 78 for all possible
cellular status description.
Displays information about the specified IPv6 interface or all IPv6
interfaces.
interface.
configuration.
ZyWALL (ZLD) CLI Reference Guide
57
Chapter 6 Interfaces
Table 16 interface General Commands: Basic Properties and IP Address Assignment (continued)
COMMANDDESCRIPTION
show interface send statistics intervalDisplays the interval for how often the ZyWALL refreshes the sent
packet statistics for the interfaces.
show interface summary all Displays basic information about the interfaces.
show interface summary all statusDisplays the connection status of the interfaces.
[no] interface interface_nameCreates the specified interface if necessary and enters sub-command
mode. The
[no] description descriptionSpecifies the description for the specified interface. The no command
clears the description.
no command deletes the specified interface.
description: You can use alphanumeric and
characters, and it can be up to 60 characters long.
[no] downstream <0..1048576>This is reserved for future use.
Specifies the downstream bandwidth for the specified interface. The
command sets the downstream bandwidth to 1048576.
exitLeaves the sub-command mode.
[no] ip address dhcpMakes the specified interface a DHCP client; the DHCP server gives the
specified interface its IP address, subnet mask, and gateway. The
command makes the IP address static IP address for the specified
interface. (See the next command to set this IP address.)
[no] ip address ip subnet_maskAssigns the specified IP address and subnet mask to the specified
[no] ip gateway ipAdds the specified gateway using the specified interface. The no
ip gateway ip metric <0..15>Sets the priority (relative to every gateway on every interface) for the
[no] metric <0..15>Sets the tunnel, PPPoE/PPTP, or cellular interface’s priority relative to
[no] mss <536..1460>Specifies the maximum segment size (MSS) the interface is to use. MSS
[no] mtu <576..1500>Specifies the Maximum Transmission Unit, which is the maximum
[no] shutdownDeactivates the specified interface. The
traffic-prioritize {tcp-ack|content-
[no] upstream <0..1048576>Specifies the upstream bandwidth for the specified interface. The
interface interface_name ipv6Creates the specifi ed IPv6 interface if necessary and enters sub-
address ipv6_addr_prefixSets an IPv6 address with prefix for the interface.
gateway ipv6_addr metric <0..15>Sets the specified IPv6 address’s metric.
interface. The
command removes the gateway.
specified gateway. The lower the number, the higher the priority.
other interfaces. The lower the number, the higher the priority.
is the largest amount of data, specified in bytes, that the interface can
handle in a single, unfragmented piece. The
interface use its default MSS.
number of bytes in each packet moving through this interface. The
ZyWALL divides larger packets into smaller fragments. The
command resets the MTU to 1500.
Applies traffic priority when the interface sends TCP-ACK traffic, traffic
for querying the content filter, traffic for resolving domain names, or
encrypted traffic for an IPSec or SSL VPN tunnel. It also sets how much
bandwidth the traffic can use and can turn on maximize bandwidth
usage.
Turns off traffic priority settings for when the interface sends the
specified type of traffic.
command sets the upstream bandwidth to 1048576.
command mode.
no command clears the IP address and the subnet mask.
()+/:=?!*#@$_%-
no command has the
no
no command activates it.
no
no
no
58
ZyWALL (ZLD) CLI Reference Guide
Chapter 6 Interfaces
Table 16 interface General Commands: Basic Properties and IP Address Assignment (continued)
COMMANDDESCRIPTION
enableTurns on the IPv6 interface.
nd ra acceptSets the IPv6 interface to accept IPv6 neighbor discovery router
advertisement messages.
nd ra advertiseSets the IPv6 interface to send IPv6 neighbor discovery router
advertisement messages.
nd ra managed-config-flagTurns on the flag in IPv6 router advertisements that tells hosts to use
nd ra other-config-flagTurns on the other stateful configuration flag in IPv6 router
nd ra mtu <1280..1500> | <0>Sets the Maximum Transmission Unit (MTU) size of IPv6 pack ets sent on
nd ra hop-limit <0..255>Sets the maximum number of hops for router advertisements and all
nd ra router-preference { low |
medium | high }
nd ra prefix-advertisement
ipv6_addr_prefix [ auto { on | off }
] [ link{ on | off } ] [ preferredtime { <0..4294967294> | infinity }]
[valid-time{ <0..4294967294> |
infinity }]
nd ra min-rtr-interval <3..1350>Sets the minimum IPv6 router advertisement transmission interval.
nd ra max-rtr-interval <4..1800>Sets the maximum IPv6 router advertisement transmission interval.
nd ra reachable-time <0..3600000>Sets the amount of time a remote IPv6 node is considered reachable
nd ra default-lifetime <4..9000> Sets the router lifetime value is included in all IPv6 router
nd ra retrans-timer <0..4294967295>Sets the IPv6 router advertisement retransmission interval in
ipv6 address dhcp6_profile
dhcp6_suffix_128
managed (stateful) protocol for address autoconfiguration in addition to
any addresses autoconfigured using stateless address
autoconfiguration.
advertisements that tells hosts to use administered (stateful) protocol to
obtain autoconfiguration information other than addresses.
the interface.
IPv6 packets originating from the interfa ce.
Sets the Default Router Preference (DRP) extension metric (low,
medium, or high) in the interface’s IPv6 neighbor discovery router
advertisement messages.
Sets the IPv6 prefix that the ZyWALL advertises to its clients, whether
or not to advertise it, and how long before the prefix’s preference and
lifetime expire.
after a reachability confirmation event.
advertisements sent out the interface. The router li fetime value should
be equal to or greater than the router advertisement interval.
milliseconds.
Has the ZyWALL obtain an IPv6 prefix from the ISP or a connected
uplink router for an internal network, such as the LAN or DMZ.
dhcp6_profile: Specify the DHCPv6 request object to use.
dhcp6_suffix_128: Specify the ending part of the IPv6 address, a slash
(/), and the prefix length. The ZyWALL appends it to the delegated
prefix.
For example, you got a delegated prefix of 2003:1234:5678/48. You
want to configure an IP address of 2003:1234:5678:1111::1/128 for
this interface, then enter ::1111:0:0:0:1/128 for the
dhcp6_suffix_128.
ZyWALL (ZLD) CLI Reference Guide
59
Chapter 6 Interfaces
Table 16 interface General Commands: Basic Properties and IP Address Assignment (continued)
dhcp6 rapid-commitThis shortens the DHCPv6 message exchange process from four to two
Configures the network prefix to use a delegated prefix as the beginning
part of the network prefix.
dhcp6_profile: Specify the DHCPv6 request object to use for
generating the network prefix for the network.
dhcp6_suffix_64: Specify the ending part of the IPv6 network address
plus a slash (/) and the prefix length. The ZyWALL appends it to the
selected delegated prefix. The combined address is the network prefix
for the network.
For example, you got a delegated prefix of 2003:1234:5678/48. You
want to divide it into 2003:1234:5678:1111/64 for this interface and
2003:1234:5678:2222/64 for another interface. You can use ::1111/64
and ::2222/64 for the suffix address respectively . But if you do not want
to divide the delegated prefix into subnetworks, enter ::0/48 here,
which keeps the same prefix length (/48) as the delegated prefix.
Sets the IPv6 interface to be a DHCPv6 server, client or relay. For rel a y,
specify an interface from which to get the DHCPv6 server’s address or
the IPv6 address of a DHCPv6 server.
steps to help reduce network traffic.
Note: Make sure you also enable this option in the DHCPv6 clients to
make rapid commit work.
dhcp6 address-requestGet this interface’s IPv6 address from the DHCPv6 server.
dhcp6 refresh-time {
<600..4294967294> | infinity }
dhcp6 duid { duid | mac }Specify the DHCP Unique IDentifier (DUID) of the interface or have it
dhcp6-lease-object dhcp6_profileFor a DHCPv6 server interface, specify the profile of DHCPv6 lease
dhcp6-request-object dhcp6_profileFor a DHCPv6 client interface, specify the profile of DHCPv6 request
interface interface_name no ipv6Enters the sub-command mode for deleting the specified IPv6 address
enableTurns off the IPv6 interface.
address ipv6_addr_prefixRemoves the IPv6 interface’s IPv6 prefix setting.
gatewayRemoves the IPv6 interface’s gateway setting.
nd ra acceptSets the IPv6 interface to discard IPv6 neighbor discovery router
nd ra advertiseHas the IPv6 interface not send IPv6 neighbor discovery router
nd ra managed-config-flagTurns off the flag in IPv6 router advertisements that tells hosts to use
nd ra other-config-flagTurns off the other stateful configuration flag in IPv6 router
nd ra mtuRemoves the Maximum Transmission Unit (MTU) size setting for IPv6
Sets the number of seconds a DHCPv6 client should wait before
refreshing information retrieved from DHCPv6.
generated from the interface’s default MAC address.
settings to offer to DHCPv6 clients.
settings that determine what additional information to get from the
DHCPv6 server.
or removing it’s settings.
advertisement messages.
advertisement messages.
managed (stateful) protocol for address autoconfiguration in addition to
any addresses autoconfigured using stateless address
autoconfiguration.
advertisements that tells hosts to use administered (stateful) protocol to
obtain autoconfiguration information other than addresses.
packets the interface sends.
60
ZyWALL (ZLD) CLI Reference Guide
Chapter 6 Interfaces
Table 16 interface General Commands: Basic Properties and IP Address Assignment (continued)
COMMANDDESCRIPTION
nd ra hop-limitRemoves the maximum number of hops setting for router
advertisements and all IPv6 packets originating from the interface.
nd ra min-rtr-intervalRemoves the minimum IPv6 router advertisement transmission interval
setting.
nd ra max-rtr-intervalRemoves the maximum IPv6 router advertisement transmission interval
nd ra reachable-timeSets the amount of time a remote IPv6 node is considered reachable
nd ra default-lifetimeSets the router lifetime value included in all I P v6 router advertisements
nd ra retrans-timerSets the IPv6 router advertisement retransmission interval to the
ipv6 address dhcp6_profile
dhcp6_suffix_128
nd ra prefix-advertisement
DHCP6_PROFILE DHCP6_SUFFIX_64
dhcp6Sets the interface’s DHCPv6 setting back to the default.
dhcp6 address-requestHas the ZyWALL not get this interface’s IPv6 address from the DHCPv6
dhcp6 rapid-commitHas the ZyWALL use the full four-step DHCPv6 message exchange
setting.
after a reachability confirmation event to the default.
the interface sends to the default. The router lifetime value should be
equal to or greater than the router advertisement interval.
default.
Removes the specified setting for having the ZyWALL obtain an IPv6
prefix from the ISP or a connected uplink router for an internal network.
Removes the specified setting for using a delegated prefix as the
beginning part of the network prefix.
server.
process.
Note: Make sure you also disable this option in the DHCPv6 clients.
dhcp6-lease-object dhcp6_profileRemoves the specified profile of DHCPv6 lease settings to offer to
dhcp6-request-object dhcp6_profileRemoves the specified profile of DHCPv6 request settings that
determine what additional information to get from the DHCPv6 server.
Resets the interface statistics TxPkts (transmitted packets) and RxPkts
(received packets) counts to 0. You can use the show interface summary all status command to see the interface statistics.
Sets how often the ZyWALL sends interface statistics to external
servers. For example, syslog server and Vantage Report server.
name mappings.
Specifies a name for a PPP or an Ethernet interface. It can use
alphanumeric characters, hyphens, and underscores, and it can be up to
11 characters long.
ppp_interface | ethernet_interface: This must be the system name
of a PPP or an Ethernet interface. Use the show interface-name
command to see the system name of interfaces.
user_defined_name:
•This name cannot be one of the follows:
"ethernet", "ppp", "vlan", "bridge", "virtual", "wlan", "cellular",
"aux", "tunnel", "status", "summary", "all"
•This name cannot begin with one of the follows either:
"ge", "ppp", "vlan", "wlan-", "br", "cellular", "aux", "tunnel".
Modifies the user-defined name of a PPP or an Ethernet interface.
This example shows how to modify the name of interface ge4 to “VIP”. First you have to check the
interface system name (ge4 in this example) on the ZyWALL. Then change the name and display
the result.
Router> show interface-name
No. System Name User Defined Name
===========================================================================
1 ge1 ge1
2 ge2 ge2
3 ge3 ge3
4 ge4 ge4
5 ge5 ge5
Router> configure terminal
Router(config)# interface-name ge4 VIP
Router(config)# show interface-name
No. System Name User Defined Name
===========================================================================
1 ge1 ge1
2 ge2 ge2
3 ge3 ge3
4 ge4 VIP
5 ge5 ge5
Router(config)#
This example shows how to change the user defined name from VIP to Partner. Note that you have
to use the “interface-rename” command if you do not know the system name of the interface. To
use the “interface-name” command, you have to fi nd out the corresponding system name first (ge4
in this example). This example also shows how to change the user defined name from Partner to
Customer using the “interface-name” command.
Router(config)# interface-rename VIP Partner
Router(config)# show interface-name
No. System Name User Defined Name
===========================================================================
1 ge1 ge1
2 ge2 ge2
3 ge3 ge3
4 ge4 Partner
5 ge5 ge5
Router(config)#
Router(config)# interface-name ge4 Customer
Router(config)# show interface-name
No. System Name User Defined Name
===========================================================================
1 ge1 ge1
2 ge2 ge2
3 ge3 ge3
4 ge4 Customer
5 ge5 ge5
62
ZyWALL (ZLD) CLI Reference Guide
This example shows how to restart an interface. You can check all interface names on the ZyWALL.
Then use either the system name or user-defined name of an interface (ge4 or Customer in this
example) to restart it.
Router> show interface-name
No. System Name User Defined Name
===========================================================================
1 ge1 ge1
2 ge2 ge2
3 ge3 ge3
4 ge4 Customer
5 ge5 ge5
Router> configure terminal
Router(config)# interface reset ge4
Router(config)# interface reset Customer
Router(config)#
6.2.2 DHCP Setting Commands
This table lists DHCP setting commands. DHCP is based on DHCP pools. Create a DHCP pool if you
want to assign a static IP address to a MAC address or if you want to specify the starting IP address
and pool size of a range of IP addresses that can be assigned to DHCP clients. There are different
commands for each configuration. Afterwards, in either case, you hav e to bind the DHCP pool to the
interface.
Chapter 6 Interfaces
Table 17 interface Commands: DHCP Settings
COMMANDDESCRIPTION
show ip dhcp dhcp-optionsShows the DHCP extended option settings.
show ip dhcp pool [profile_name]Shows information about the specified DHCP pool or about all DHCP
show ip dhcp pool profile_name dhcp-optionsShows the specified DHCP pool’s DHCP extended option settings.
ip dhcp pool rename profile_name
profile_name
[no] ip dhcp pool profile_nameCreates a DHCP pool if ne cessary and enters sub-command mode.
showShows information about the specified DHCP pool.
pools.
Renames the specified DHCP pool from the first profile_name to the
second profile_name.
You can use the DHCP pool to create a static entry or to set up a
range of IP addresses to assign dynamically.
About the sub-command settings:
•If you use the
as a static DHCP entry.
•If you do not use the
command, the ZyWALL treats this DHCP pool as a pool of IP
addresses.
•If you do not use the
command, the DHCP pool is not properly configured and cannot
be bound to any interface.
no command removes the specified DHCP pool.
The
Use the following commands to create a static DHCP entry. If you do
not use the
section have no effect, but you can still set them.
underscores(
number. This value is case-sensitive.
Use the following commands to create a pool of IP addresses. These
commands have no effect if you use the
still set them, however.
Adds or edits a DHCP extended option for the specified DHCP pool.
text: String of up to 250 characters
hex: String of up to 250 hexadecimal pairs.
vivc: Vendor-Identifying V endor Class option. A DHCP client may use
this option to unambiguously identify the vendor that manufactured
the hardware on which the client is running, the software in use, or
an industry consortium to which the vendor belongs.
enterprise_id: Number <0..4294967295>.
_), or dashes (-), but the first character cannot be a
host command. You can
hex_s: String of up to 120 hexadecimal pairs.
vivs: Vendor-Identifying Vendor-Specific option. DHCP clients and
servers may use this option to ex change v endor -specific i nformation.
no dhcp-option <1..254>Removes the DHCP extended option for the specified DHCP pool.
network IP/<1..32>
network ip mask
no network
Specifies the IP address and subnet mask of the specified DHCP pool.
The subnet mask can be written in w.x.y.z format or in /<1..32>
format.
Note: The DHCP pool must have the same subnet as the interface to
which you plan to bind it.
The no command clears these fields.
[no] default-router ipSpecifies the default gateway DHCP clients should use. The no
command clears this field.
[no] description descriptionSpecifies a description for the DHCP pool for identification. The no
[no] domain-name domain_nameSpecifies the domain name assi gned to DHCP clients. The no
[no] ip dhcp-pool profile_nameBinds the specified interface to the specified DHCP pool. You have to
[no] ip helper-address ipCreates the specified DHCP relay . You have to remove the DHCP pool
release dhcp interface-nameReleases the TCP/IP configuration of the specified interface. The
renew dhcp interface-nameRenews the TCP/IP configuration of the specified interface. The
show ip dhcp binding [ip]Displays information about DHCP bindings for the specified IP address
clear ip dhcp binding {ip | *}Removes the DHCP bindings for the specified IP address or for all IP
Sets the first DNS server to the specified IP address, the specified
interface’s first, se cond, or third DNS serv er, or the ZyWALL itself . The
no command resets the setting to its default value.
Sets the second DNS server to the specified IP address, the specified
interface’s first, se cond, or third DNS serv er, or the ZyWALL itself . The
no command resets the setting to its default value.
Sets the third DNS server to the specified IP address, the specified
interface’s first, se cond, or third DNS serv er, or the ZyWALL itself . The
no command resets the setting to its default value.
users. The no command removes the setting.
users. The no command removes the setting.
Sets the lease time to the specified number of days, hours, and
minutes or makes the lease ti me infinite. The
first DNS server setting to its default value.
remove any DHCP relays first. The
binding.
first, if the DHCP pool is bound to the specified interface. The
command removes the specified DHCP relay.
interface must be a DHCP client. This command is available in
privilege mode, not configuration mode.
interface must be a DHCP client. This command is available in
privilege mode, not configuration mode.
or for all IP addresses.
addresses.
no command removes the
no command resets the
no
ZyWALL (ZLD) CLI Reference Guide
65
Chapter 6 Interfaces
6.2.2.1 DHCP Setting Command Examples
The following example uses these commands to configure DHCP pool DHCP_TEST.
Router# configure terminal
Router(config)# ip dhcp pool DHCP_TEST
Router(config-ip-dhcp-pool)# network 192.168.1.0 /24
Router(config-ip-dhcp-pool)# domain-name zyxel.com
Router(config-ip-dhcp-pool)# first-dns-server 10.1.5.1
Router(config-ip-dhcp-pool)# second-dns-server ge1 1st-dns
Router(config-ip-dhcp-pool)# third-dns-server 10.1.5.2
Router(config-ip-dhcp-pool)# default-router 192.168.1.1
Router(config-ip-dhcp-pool)# lease 0 1 30
Router(config-ip-dhcp-pool)# starting-address 192.168.1.10 pool-size 30
Router(config-ip-dhcp-pool)# hardware-address 00:0F:20:74:B8:18
Router(config-ip-dhcp-pool)# client-identifier 00:0F:20:74:B8:18
Router(config-ip-dhcp-pool)# client-name TWtester1
Router(config-ip-dhcp-pool)# exit
Router(config)# interface ge1
Router(config-if)# ip dhcp-pool DHCP_TEST
Router(config-if)# exit
Router(config)# show ip dhcp server status
binding interface : ge1
binding pool : DHCP_TEST
6.2.2.2 DHCP Extended Option Setting Command Example
The following example configures the DHCP_TEST pool with a SIP server (code 120) extended
DHCP option with one IP address to provide to the SIP clients.
Router# configure terminal
Router(config)# ip dhcp pool DHCP_TEST
Router(config-ip-dhcp-pool)# dhcp-option 120 sip ip 192.168.1.20
Router(config-ip-dhcp-pool)# exit
66
ZyWALL (ZLD) CLI Reference Guide
6.2.3 Interface Parameter Command Examples
This table shows an example of each interface type’s sub-commands. The sub-commands vary for
different interface types.
Table 18 Examples for Different Interface Parameters
ETHERNETVIRTUAL INTERFACEPPPOE/PPTP
Router(config)# interface wan1
Router(config-if-wan1)#
description
downstream
exit
ip
ipv6
mac
mss
mtu
no
ping-check
shutdown
traffic-prioritize
type
upstream
use-defined-mac
Router(config)# interface wan1:1
Router(config-if-vir)#
description
downstream
exit
ip
no
shutdown
upstream
Router(config)# interface cellular1
Router(config-if-cellular)#
account
band
budget
connectivity
description
device
downstream
encrypted-pin
exit
local-address
metric
mtu
network-selection
no
pin
ping-check
remote-address
shutdown
traffic-prioritize
upstream
Router(config)# interface wlan-1-1
Router(config-if-wlan)#
block-intra
description
downstream
encrypted-wep-key
exit
group-key
hide
idle
ip
mtu
no
ping-check
reauth
security
shutdown
ssid
station-limit
traffic-prioritize
upstream
wep-key
Router(config)# interface vlan1
Router(config-if-vlan)#
description
downstream
exit
ip
ipv6
mss
mtu
no
ping-check
port
shutdown
traffic-prioritize
type
upstream
vlan-id
ZyWALL (ZLD) CLI Reference Guide
67
Chapter 6 Interfaces
Table 18 Examples for Different Interface Parameters
BRIDGEAUXILIARYTUNNEL
Router(config)# interface br0
Router(config-if-brg)#
description
downstream
exit
ip
ipv6
join
mss
mtu
no
ping-check
shutdown
traffic-prioritize
type
upstream
6.2.4 RIP Commands
This table lists the commands for RIP settings.
Router(config)# interface aux
Router(config-if-aux)#
authentication
description
dial-timeout
dialing-type
encrypted-password
exit
idle
initial-string
no
password
phone-number
port-speed
shutdown
traffic-prioritize
username
downstream
exit
ip
ipv6
metric
mtu
no
ping-check
shutdown
traffic-prioritize
tunnel
upstream
Table 19 interface Commands: RIP Settings
COMMANDDESCRIPTION
router ripEnters sub-command mode.
[no] network interface_nameEnables RIP for the specified interface. The no command disables RIP
for the specified interface.
[no] passive-interface interface_nameSets the RIP direction of the specified interface to in-only. The
[no] outonly-interface interface_nameSets the RIP direction of the specified interface to out-only. The
interface interface_nameEnters sub-command mode.
[no] ip rip {send | receive} version
<1..2>
[no] ip rip v2-broadcastEnables RIP-2 packets using subnet broadcasting. The
show rip {global | interface {all |
interface_name}}
command makes RIP bi-directional in the specified interface.
command makes RIP bi-directional in the specified interface.
Sets the send or receive version to the specified version number. The
no command sets the send or received ve rsion to the current global
setting for RIP. See Chapter 9 on page 107 for more information about
routing protocols.
no command
uses multi-casting.
Displays RIP settings.
6.2.5 OSPF Commands
This table lists the commands for OSPF settings.
no
no
Table 20 interface Commands: OSPF Settings
COMMANDDESCRIPTION
router ospfEnters sub-command mode.
[no] network interface_name area ipMakes the specified interface part of the specified area. The no
68
command removes the specified interface from the specified area,
disabling OSPF in this interface.
[no] passive-interface interface_nameSets the OSPF direction of the specified interface to in-only. The no
command makes OSPF bi-directional in the specified interface.
interface interface_nameEnters sub-command mode.
[no] ip ospf priority <0..255>Sets the priority of the specified interface to the specified value. The
no command sets the priority to 1.
[no] ip ospf cost <1..65535>Sets the cost to route packets through the specified interface. The no
no ip ospf authenticationDisables authentication for OSPF in the specified interface.
ip ospf authenticationEnables te xt authentication for OSPF in the specified interface.
ip ospf authentication message-digestEnables MD5 authentication for OSPF in the specified interf a ce.
ip ospf authentication same-as-areaTo exchange OSPF routing information with peer border routers, you
[no] ip ospf authentication-key
password
ip ospf message-digest-key <1..255>
md5 password
command sets the cost to 10.
must use the same authentication method that they use. This
command makes OSPF authentication in the specified interface follow
the settings in the corresponding area.
Sets the simple text password for OSPF text authentication in the
specified interface. The
password: 1-8 alphanumeric characters or underscores
Sets the ID and password for OSPF MD5 authentication in th e specified
interface.
no command clears the text password.
password: 1-16 alphanumeric characters or underscores
no ip ospf message-digest-keyClears the ID and password for OSPF MD5 authentication in the
[no] ip ospf hello-interval <1..65535> Sets the number of seconds between “hello” messages to peer routers.
specified interface.
These messages let peer routers know the Z yWALL is a vailable. The
command sets the number of seconds to 10. See
ip ospf dead-
no
interval for more information.
[no] ip ospf dead-interval <1..65535>Sets the number of seconds the ZyWALL waits for “hello” messages
from peer routers before it assumes the peer router is not available
[no] ip ospf retransmit-interval
<1..65535>
and deletes associated routing information. The
number of seconds to 40. See
more information.
Sets the number of seconds the ZyWALL waits for an acknowledgment
in response to a link state advertisement before it re-sends the
advertisement.
Link state advertisements (LSA) are used to share the link state and
routing information between routers.
ip ospf hello-interval for
no command sets the
ZyWALL (ZLD) CLI Reference Guide
69
Chapter 6 Interfaces
6.2.6 Connectivity Check (Ping-check) Commands
Use these commands to have an interface regularly check the connection to the gateway you
specified to make sure it is still available. Y ou specify how often the interface checks the connection,
how long to wait for a response before the attempt is a failure, and how many consecutive failures
are required before the ZyWALL stops routing to the gateway. The ZyWALL resumes routing to the
gateway the first time the gateway passes the connectivity check.
This table lists the ping-check commands
Table 21 interface Commands: Ping Check
COMMANDDESCRIPTION
show ping-check [interface_name | status]Displays information about ping check settings for the specified
[no] connectivity-check continuous-log
activate
show connectivity-check continuous-log statusD isplays the continuous log setting about connectivity check.
interface interface_nameEnters sub-command mode.
[no] ping-check activateEnables ping check for the specified interface. The
ping-check {domain_name | ip | defaultgateway}
ping-check {domain_name | ip | defaultgateway} period <5..30>
ping-check {domain_name | ip | defaultgateway} timeout <1..10>
ping-check {domain_name | ip | defaultgateway} fail-tolerance <1..10>
ping-check {domain_name | ip | defaultgateway} method {icmp | tcp}
interface or for all interfaces.
status: displays the current connectivity check status for any
interfaces upon which it is activated.
Use this command to have the ZyWALL logs connectivity check
result continuously. The no command disables the setting.
no command
disables ping check for the specified interface.
Specifies what the ZyWALL pings for the ping check; you can
specify a fully-qualified domain name, IP address, or the default
gateway for the interface.
Specifies what the ZyWALL pings for the ping check and sets the
number of seconds between each ping check.
Specifies what the ZyWALL pings for the ping check and sets the
number of seconds the ZyWALL waits for a response.
Specifies what the ZyWALL pings for the ping check and sets the
number of times the ZyWALL times out before it stops routing
through the specified interface.
Sets how the ZyWALL checks the connection to the gateway.
icmp: ping the gateway you specify to mak e sure it is still av ailable.
ping-check {domain_name | ip | defaultgateway} port <1..65535>
70
tcp: perform a TCP handshake with the gateway you specify to
make sure it is still available.
Specifies the port number to use for a TCP connectivity check.
ZyWALL (ZLD) CLI Reference Guide
6.2.6.1 Connectivity Check Command Example
The following commands show you how to set the WAN1 interface to use a TCP handshake on port
8080 to check the connection to IP address 1.1.1.2
This section covers commands that are specific to Ethernet interfaces.
The following table identifies the values required for many of these commands. Other input values
are discussed with the corresponding commands.
Table 22 Input Values for Ethernet Interface Commands
LABELDESCRIPTION
interface_nameThe name of the Ethernet interface. This depends on the ZyWALL model.
For the ZyWALL USG 300 and above, use gex, x = 1~N, where N equals the highest
numbered Ethernet interface for your ZyWALL model.
The ZyWALL USG 200 and below models use a name such as wan1, wan2, opt, lan1,
ext-wlan, or dmz.
6.3.1 MAC Address Setting Commands
This table lists the commands you can use to set the MAC address of an interface. On the ZyWALL
USG 200 and below models, these commands only apply to a WAN or OPT interface.
Table 23 interface Commands: MAC Setting
COMMANDDESCRIPTION
interface interface_nameEnters sub-command mode.
no macHas the interface use its default MAC address.
mac macSpecifies the MAC address the interface is to us e.
ZyWALL (ZLD) CLI Reference Guide
71
Chapter 6 Interfaces
Table 23 interface Commands: MAC Setting (continued)
COMMANDDESCRIPTION
type {internal |
external | general}
no use-defined-macHas the interface use its default MAC address.
use-defined-macHas the interface use a MAC address that you specify.
Sets which type of network you will connect this int erface. The ZyWALL automatically adds
default route and SNAT settings for traffic it routes from internal interfaces to external
interfaces; for example LAN to WAN traffic.
internal: Set this to connect to a local network. Other corresponding configuration
options: DHCP server and DHCP relay. The ZyWALL automatically adds default SNAT
settings for traffic flowing from this interface to an external interface.
external: Set this to connect to an external network (like the Internet). The ZyWALL
automatically adds this interface to the default WAN trunk.
general: Set this if you want to manually configure a policy route to add routing and SNAT
settings for the interface.
6.3.2 Port Grouping Commands
This section covers commands that are specific to port grouping.
Note: In CLI, representative interfaces are also called representative ports.
Table 24 Basic Interface Setting Commands
COMMANDDESCRIPTION
show port-groupingDisplays which physical ports are assigned to each representative interface.
port-grouping
representative_interface port
<1..x>
no port <1..x>Removes the specified physical port from its current representative interface and
port status Port<1..x>Enters a sub-command mode to configure the specified port’s settings.
[no] duplex <full | half>Sets the port’s duplex mode. The no command returns the default setting.
exitLeaves the sub-command mode.
[no] negotiation autoSets the port to use auto-negotiation to determine the port speed and duplex. The
[no] speed <100,10>Se ts the Ethernet port’s connection speed in Mbps. The no command returns the
show port settingDisplays the Ethernet port negotiation, duplex, and speed settings.
show port statusDisplays statistics for the Ethernet ports.
Adds the specified physical port to the specified representative interface.
representative_interface: gex in a ZyWALL USG 300 or above.
A dmz, ext-wlan, or lan1 interface in a ZyWALL USG 100 or 200.
<1..x> where x equals the highest numbered port for your ZyWALL model.
adds it to its default representative interface (for example, port x --> gex).
no command turns off auto-negotiation.
default setting.
72
ZyWALL (ZLD) CLI Reference Guide
6.3.2.1 Port Grouping Command Examples
The following commands add physical port 5 to representative interface ge1.
Router# configure terminal
Router(config)# show port-grouping
No. Representative Name Port1 Port2 Port3 Port4 Port5
=========================================================
1 ge1 yes no no no no
2 ge2 no yes no no no
3 ge3 no no yes no no
4 ge4 no no no yes no
5 ge5 no no no no yes
Router(config)# port-grouping ge1
Router(config-port-grouping)# port 5
Router(config-port-grouping)# exit
Router(config)# show port-grouping
No. Representative Name Port1 Port2 Port3 Port4 Port5
=========================================================
1 ge1 yes no no no yes
2 ge2 no yes no no no
3 ge3 no no yes no no
4 ge4 no no no yes no
5 ge5 no no no no no
Chapter 6 Interfaces
The following commands set port 1 to use auto-negotiation auto and port 2 to use a 10 Mbps
connection speed and half duplex.
Router(config)# port status Port1
Router(config-port-status)# negotiation auto
Router(config-port-status)# exit
Router(config)# port status Port2
Router(config-port-status)# duplex half
Router(config-port-status)# speed 10
Router(config-port-status)# exit
Router(config)# exit
6.4 Virtual Interface Specific Commands
Virtual interfaces use many of the general interface commands discussed at the beginning of
Section 6.2 on page 57. There are no additional commands for virtual interfaces.
6.4.1 Virtual Interface Command Examples
The following commands set up a virtual interface on top of Ethernet interface ge1. The virtual
interface is named ge1:1 with the following parameters: IP 1.2.3.4, subnet 255.255.255.0,
ZyWALL (ZLD) CLI Reference Guide
73
Chapter 6 Interfaces
gateway 4.6.7.8, upstream bandwidth 345, downstream bandwidth 123, and description “I am vir
interface”.
Router# configure terminal
Router(config)# interface ge1:1
Router(config-if-vir)# ip address 1.2.3.4 255.255.255.0
Router(config-if-vir)# ip gateway 4.6.7.8
Router(config-if-vir)# upstream 345
Router(config-if-vir)# downstream 123
Router(config-if-vir)# description I am vir interface
Router(config-if-vir)# exit
6.5 PPPoE/PPTP Specific Commands
This section covers commands that are specific to PPPoE/PPTP interfaces. PPPoE/PPTP interfaces
also use many of the general interface commands discussed at the beginning of Section 6.2 on
page 57.
The following table identifies the values required for many of these commands. Other input values
are discussed with the corresponding commands.
Table 25 Input Values for PPPoE/PPTP Interface Commands
LABELDESCRIPTION
interface_namePPPoE/PPTP interface: pppx, x = 0 - N, where N depends on the number of PPPoE/PPTP
interfaces your ZyWALL model supports.
profile_nameThe name of the ISP account. You may use 1-31 alphanumeric characters,
underscores(
case-sensitive.
_), or dashes (-), but the first character cannot be a number. This value is
This table lists the PPPoE/PPTP interface commands.
interface dial interface_nameConnects the specified PPPoE/PPTP interface.
interface disconnect interface_name Disconnects the specified PPPoE/PPTP interface.
interface interface_nameCreates the specified interface if necessary and enters sub-command mode.
[no] account profile_nameSpecifies the ISP account for the specified PPPoE/PPTP interface. The
[no] bind interface_nameSpecifies the base interface for the PPPoE/PPTP interface. The
[no] connectivity {nail-up |
dial-on-demand}
[no] local-address ipSpecifies a static IP address for the specified PPPoE/PPTP interface. The
[no] remote-address ipSpecifies the IP address of the PPPoE/PPTP server. If the PPPoE/PPTP server is
command clears the ISP account field.
removes the base interface.
Specifies whether the specified PPPoE/PPTP interface is always connected (nail-
up) or connected only when used (dial-on-demand). The
to dial-on-demand.
command makes the PPPoE/PPTP interface a DHCP client; the other computer
assigns the IP address.
not available at this IP address, no connection is made. The no command lets
the ZyWALL get the IP address of the PPPoE/PPTP server automatically when it
establishes the connection.
[no] mss <536..1452>Specifies the maximum segment size (MSS) the interface can use. MSS is the
largest amount of data, specified in bytes, that the interface can handle in a
single, unfragmented piece. The no command has the ZyWALL use its default
MSS setting.
mtu <576..1492>Sets the Maximum Transmission Unit in bytes.
[no] ipv6 enableTurns on the IPv6 interface. The no command turns it off.
[no] ipv6 nd ra acceptSets the IPv6 interface to accept IPv6 neighbor discovery router advertisement
messages. The no command sets the IPv6 interface to discard IPv6 neighbor
discovery router advertisement messages.
[no] ipv6 metric <0..15>Sets the interface’s metric for IPv6 traffic. The no command clears it.
[no] ipv6 address
dhcp6_profiledhcp6_suffix_128
ipv6 dhcp6 [client]Sets the IPv6 interface to be a DHCPv6 client.
[no] ipv6 dhcp6 rapid-commitShortens the DHCPv6 message exchange process from four to two steps to help
[no] ipv6 dhcp6 addressrequest
ipv6 dhcp6 duid { duid | mac }Specify the DHCP Unique IDentifier (DUID) of the interface or have it gener ated
[no] ipv6 dhcp6-request-object
dhcp6_profile
show interface ppp system-defaultDisplays system defaul t PPP interfaces (non-deletable) that c ome with the
show interface ppp user-defineDisplays all PPP interfaces that were manually configured on the ZyWALL.
Has the ZyWALL obtain an IPv6 prefix from the ISP or a connected uplink router
for an internal network, such as the LAN or DMZ. The no command removes the
specified setting for using a delegated prefix as the beginning part of the
network prefix.
dhcp6_profile: Specify the DHCPv6 request object to use.
dhcp6_suffix_128: Specify the ending part of the IPv6 address, a slash (/),
and the prefix length. The ZyWALL appends it to the delegated prefix.
For example, you got a delegated prefix of 2003:1234:5678/48. You want to
configure an IP address of 2003:1234:5678:1111::1/128 for this interface,
then enter ::1111:0:0:0:1/128 for the dhcp6_suffix_128.
reduce network traffic. The no command sets the full four-step DHCPv6
message exchange process.
Get this interface’s IPv6 address from the DHCPv6 server. The no command has
the ZyWALL not get this interface’s IPv6 address from the DHCPv6 server.
from the interface’s default MAC address.
For a DHCPv6 client interface, specify the profile of DHCPv6 request settings
that determine what additional information to get from the DHCPv6 server. The
no command removes the DHCPv6 request settings profile.
ZyWALL.
6.5.1 PPPoE/PPTP Interface Command Examples
The following commands show you how to configure PPPoE/PPTP interface ppp0 with the following
characteristics: base interface ge1, ISP account Hinet, local address 1.1.1.1, remote address
ZyWALL (ZLD) CLI Reference Guide
75
Chapter 6 Interfaces
2.2.2.2, MTU 1200, upstream bandwidth 345, downstream bandwidth 123, description “I am ppp0” ,
and dialed only when used.
Use a 3G (Third Generation) cellular device with the ZyWALL for wireless broadband Internet
access.
Use these commands to add, edit, dial, disconnect, or delete cellular interfaces. When you add a
new cellular interface, make sure you enter the account. Y ou must use the
command to enter the configuration mode before you can use these commands.
Table 27 Cellular Interface Commands
COMMANDDESCRIPTION
[no] interface interface_nameCreates the specified interface if necessary and enters sub-command
mode. The
[no] account profile_nameSpecifies the ISP account for the specified cellular interface. The no
command clears the ISP account field.
[no] band {auto|wcdma|gsm}Sets (or clears) the cellular band that the cellular interface uses.
auto has the ZyWALL always use the fastest network that is in range.
gsm has this interface only use a 2.5G or 2.75G network
(respectively). If you only have a GSM network available to you, you
may want to use this so the ZyWALL does not spend time looking for a
WCDMA network.
wcdma has this interface only use a 3G or 3.5G network (respectively).
You ma y w ant to use t his if y ou w ant to mak e sure the i nterfac e does
not use the GSM network.
no command deletes the specified interface.
configure terminal
76
ZyWALL (ZLD) CLI Reference Guide
Chapter 6 Interfaces
Table 27 Cellular Interface Commands (continued)
COMMANDDESCRIPTION
[no] network-selection {auto|home}Home network is the network to which you are originally subscribed.
Home has the 3G device connect only to the home network. If the
home network is down, the ZyWALL's 3G Internet connection is also
unavailable.
Auto is the default setting and allows the 3G device to connect to a
network to which you are not subscribed when necessary, for example
when the home network is down or another 3G base station's signal is
stronger. This is recommended if you need continuous Internet
connectivity. If you select this, you may be charged using the rate of a
different network.
[no] budget activeSets a monthly limit for the user account of the installed 3G card. You
[no] budget time active <1..672>Sets the amount of time (in hours) that the 3G connection can be
[no] budget data active {downloadupload|download|upload} <1..100000>
can set a limit on the total traffic and/or call time. The ZyWALL takes
the actions you specified when a limit is exceeded during the month.
Use the no command to disable budget control.
used within one month. If you change the value, the ZyWALL resets
the statistics. Use the no command to disable time budget control.
Sets how much downstream and/or upstream data (in Mega bytes)
can be transmitted via the 3G connection within one month.
download: set a limit on the downstream traffic (from the ISP to the
ZyWALL).
upload: set a limit on the upstream traffic (from the ZyWALL to the
ISP).
download-upload: set a limit on the total traffic in both directions.
If you change the value, the ZyWALL resets the statistics.
Use the no command to disable data budget control.
budget reset-day <0..31>Sets the date on which the Z yW ALL resets the budget every month . If
the date you selected is not available in a month, such as 30th or
31st, the ZyWALL resets the budget on the last day of the month.
budget reset-countersResets the time and data budgets immediately. The count starts over
with the 3G connection’s full configured monthly time and data
budgets. This does not affect the normal monthly budget restart.
budget {log|log-alert}[recursive
<1..65535>]
no budget log [recursive]Sets the ZyWALL to not create a log when the time or data limit is
budget new-connection {allow|disallow}Sets to permit (allow) or drop/block (disallow) new 3G connections
budget current-connection {keep|drop}Sets to maintain the existing 3G connection (keep) or disconnect it
Sets the ZyWALL to create a l o g (log) or an al e rt log (log-alert) when
the time or data limit is exceeded. You can also specify how often
(from 1 to 65535 minutes) to generate a log or an alert.
exceeded. Specify recursive to have the ZyWALL only create a log
one time when the time or data limit is exceeded.
when the time or data limit is exceeded.
(drop) when the time or data limit is exceeded. You cannot set budget
new-connection to allow and budget current-connection to drop at
the same time.
If you set budget new-connection to disallow and budget currentconnection to keep, the ZyWALL allows you to transmit data using the
current connection, but you cannot build a new connection if the
existing connection is disconnected.
ZyWALL (ZLD) CLI Reference Guide
77
Chapter 6 Interfaces
Table 27 Cellular Interface Commands (continued)
COMMANDDESCRIPTION
budget percentage {ptime|pdata} <0..99> Sets a percentage (0~99) of time budget (ptime) or data (pdata)
limit. When the specified limit is exceeded, the ZyWALL takes the
action configured using the budget {log-percentage|log-
no budget log-percentage Sets the ZyWALL to not create a log when the set percentage of tim e
connectivity {nail-up | dial-on-demand} Sets the connection to be always on or only when there is traffic.
[no] local-address <ip>Sets (or clears) the cellular interface’s local (own) IP address.
mtu <576..1492>Sets the Maximum Transmission Unit in bytes.
[no] pin <pin code>Sets (or clears) the PIN code for the cellular device’s 3G card. Use 1-
[no] remote-address <ip>Sets (or clears) the IP address of the cellular interface’s peer (like a
interface cellular budget-auto-save
<5..1440>
show interface cellular [correspondingslot|device-status|support-device]
show interface cellular corresponding-slotShows which ce llular interface is on which slot and whether which
show interface cellular device-statusDisplays the installed SIM card and 3G card status.
show interface cellular support-deviceDisplays all 3G card models the ZyWALL can support.
show interface cellular budget-auto-saveDisplays how often (in minutes) the ZyWALL records time and data
show interface cellular statusDisplays the traffic statistics and connection status for your cellular
show interface interface_name [budget]Displays the budget cont rol settings for the specified cellular
show interface interface_name device status Displays the 3G card and SIM card information for the specified
show interface interface_name device
profile
Sets to have the ZyWALL create a log (log-percentage) or an alert
log (log-percentage-alert) when the set percentage of time budget
or data limit is exceeded. You can configure the percentage using the
budget percentage command.
You can also set how often (from 1 to 65535 minutes) to send the log
or alert.
budget or data limit is exceeded. You can configure the percentage
using the budget percentage command.
4 alphanumeric characters, underscores(
gateway or PPPoE server).
Sets how often (in minutes) the ZyWALL saves time and data usage
records for a connection using the 3G card.
Shows the status of the specified cellular interface.
cellular interface has been configured.
usage of your 3G budgets.
interfaces. See Section 6.6.1 on page 78 for al l possible cellular status
descriptions.
interface.
cellular interface.
Displays the 3G connection profile settings of the specified cellular
interface.
_), or dashes (-).
6.6.1 Cellular Status
The following table describes the different kinds of cellular connection status on the ZyWALL.
Table 28 Cellular Status
STATUSDESCRIPTION
No deviceno 3G device is connected to the ZyWALL.
No serviceno 3G network is available in the area; you cannot connect to the Internet.
78
ZyWALL (ZLD) CLI Reference Guide
Chapter 6 Interfaces
Table 28 Cellular Status
STATUSDESCRIPTION
Limited servicereturned by the service provider in cases where the SIM card is expired, the us er failed
to pay for the service and so on; you cannot connect to the Internet.
Device detecteddisplays when you connect a 3G device.
Device errora 3G device is connected but there is an error.
Probe device failthe ZyWALL’s test of the 3G device failed.
Probe device okthe ZyWALL’s test of the 3G device failed.
Init device failthe ZyWALL was not able to initialize the 3G device .
Init device okthe ZyWALL initialized the 3G card.
Check lock failthe ZyWALL’s check of whether or not the 3G device is locked failed.
Device lockedthe 3G device is locked.
SIM errorthere is a SIM card error on the 3G device.
SIM locked-PUKthe PUK is locked on the 3G device’s SIM card.
SIM locked-PINthe PIN is locked on the 3G device’s SIM card.
Unlock PUK failYour attempt to unlock a WCDMA 3G device’s PUK failed because you entered an
incorrect PUK.
Unlock PIN failYour attempt to unlock a WCDMA 3G device’s PIN failed because you entered an
incorrect PIN.
Unlock device failYour attempt to unlock a CDMA2000 3G device failed bec ause you entered an incorrect
Device unlockedYou entered the correct device code and unlocked a CDMA2000 3G device.
Get dev-info failThe ZyWALL cannot get cellular device information.
Get dev-info okThe ZyWALL succeeded in retrieving 3G device information.
Searching networkThe 3G device is searching for a network.
Get signal failTh e 3G device cannot get a signal from a network.
Network foundThe 3G device found a network.
Apply configThe ZyWALL is applying your configuration to the 3G device.
Device unreadyThe 3G interface is disabled.
ActiveThe 3G interface is enabled.
Incorrect deviceThe connected 3G device is not compatible with the ZyWALL.
Correct deviceThe ZyWALL detected a compatible 3G device.
Set band failApplying your band selection was not successful.
Set band okThe ZyWALL successfully applied your band selection.
Set profile failApplying your ISP settings was not successful.
Set profile okThe ZyWALL s uccessfully applied your ISP settings.
PPP fail The ZyWALL failed to create a PPP connection for the cellular interface.
Need auth-passwordYou need to enter the password for the 3G card in the cellular edit screen.
Device readyThe ZyWALL successfully applied all of your configuration and you can use the 3G
device code.
connection.
ZyWALL (ZLD) CLI Reference Guide
79
Chapter 6 Interfaces
6.6.2 Cellular Interface Command Examples
This example shows the configuration of a cellular interface named cellular2 for use with a Sierra
Wireless AC850 3G card. It uses only a 3G (or 3.5G) connection, PIN code 1234, an MTU of 1200
bytes, a description of "This is cellular2” and sets the connection to be nailed-up.
Router(config)# interface cellular2
Router(config-if-cellular)# device AC850
Router(config-if-cellular)# band wcdma
Router(config-if-cellular)# pin 1234
Router(config-if-cellular)# connectivity nail-up
Router(config-if-cellular)# description This is cellular2
Router(config-if-cellular)# mtu 1200
Router(config-if-cellular)# exit
This second example shows specifying a new PIN code of 4567.
This example shows the 3G and SIM card information for interface cellular2 on the ZyWALL.
Router(config)# show interface cellular2 device status
interface name: cellular2
extension slot: USB 1
service provider: Chunghwa Telecom
cellular system: WCDMA
signal strength: -95 dBm
signal quality: Poor
device type: WCDMA
device manufacturer: Huawei
device model: E220/E270/E800A
device firmware: 076.11.07.106
device IMEI/ESN: 351827019784694
SIM card IMSI: 466923100565274
This example shows the 3G connection profile settings for interface cellular2 on the ZyWALL. You
have to dial *99***1# to use profile 1, but authentication is not required. Dial *99***2# to use
profile 2 and authentication is required.
Router(config)# show interface cellular2 device profile
profile: 1
apn: internet
dial-string: *99***1#
authentication: none
user: n/a
password: n/a
profile: 2
apn: internet
dial-string: *99***2#
authentication: chap
user:
password: ***
The ZyWALL uses tunnel interf aces in Generic Routing Encapsulation (GRE), IPv6 in IPv4, and 6to4
tunnels. This section covers commands specific to tunnel interfaces. Tunnel interfaces also use
many of the general interface commands discussed at the beginning of Section 6.2 on page 57.
Use these commands to add, edit, activate, deactivate, or delete tunnel interfaces. You must use
the
configure terminal command to enter the configuration mode before you can use these
commands. GRE mode tunnels support ping check. See Section 6.2.6 on page 70 for more on ping
check.
Table 29 Tunnel Interface Commands
COMMANDDESCRIPTION
[no] interface tunnel_ifaceCreates the specified interface if necessary and enters sub-command
mode. The
tunnel_iface: Name of tunnel interface. tunnel([0-3]).
[no] shutdownDeactivates the specified interface. The
tunnel source
[ipv4|tunnel_bind_interface|_any]
tunnel destination ipv4Configures the outer destination IP address of the tunneled IPv4 packets.
ip address ipv4ipv4Sets the inner source IP of packets sent through the tunnel interface.
tunnel mode ip greSets this interface to use GRE tunnel mode.
[no] mtu <576..1480>Specifies the Maximum T ransmission Unit, which is the maximum number
[no] downstream <0..1048576>Specifies the downstream bandwidth for the specified interface. The
tunnel mode [ ipv6ip [ manual | 6to4
] ] ]
ipv6 address ipv6_addr_prefixSets an IPv6 address with prefix for the interface.
ipv6 6to4 [ prefix ipv6_addr_prefix
exitLeaves the sub-command mode.
show interface tunnel_ifaceDisplays the the specified tunnel’s settings.
show interface tunnel statusDisplays the status of the tunnel interfaces.
Configures the outer source IP address of the tunneled packets. Specify
an IPv4 address or use the IP address of an interface.
_any: Have automatically select the outer source IP. Not available for
ipv6ip mode tunnels.
of bytes in each packet moving through this interface. The ZyWALL
divides larger packets into smaller fragments. The
the MTU to 1480.
command sets the downstream bandwidth to 1048576.
Sets the interface to be an IPv6 over IPv4 tunnel.
manual: Use for a point-to-point manual tunnel for IPv6 transition. You
must also configure a policy route for the tunnel.
6to4: Use for a 6to4/6RD automatic tunnel.
For a 6to4 tunnel, sets the IPv6 address with prefix, remote gateway
prefix, or relay router IPv4 address.
Applies traffic priority when the interface sends TCP- ACK traffic, tr affic for
querying the content filter, or traffic for resolving domain names. It also
sets how much bandwidth the traffic can use and can turn on maximize
bandwidth usage.
T urns off traffic priority settings for when the interface sends the specified
type of traffic.
no command deletes the specified interface.
no command activates it.
no command resets
no
ZyWALL (ZLD) CLI Reference Guide
81
Chapter 6 Interfaces
6.7.1 Tunnel Interface Command Examples
This example creates a tunnel interface called tunnel0 that uses wan1 as the source,
168.168.168.168 as the destination, and 10.0.0.100 and 255.255.0.0 as the inner source IP.
Router(config)# show interface tunnel
tunnel interface: 1
interface name: tunnel0
local address: ge2
local address type: bind
remote address: 168.168.168.168
mode: gre
IP address: 10.0.0.100
netmask: 255.255.0.0
status: Inactive
active: no
6.8 USB Storage Specific Commands
Use these commands to configure settings that apply to the USB storage device connected to the
ZyWALL.
Note: For the ZyWALL which supports more than one USB ports, these commands only
apply to the USB storage device that is first attached to the ZyWALL.
Table 30 USB Storage General Commands
COMMANDDESCRIPTION
show usb-storageDisplays the status of the connected USB storage device.
[no] usb-storage activateEnables or disables the connected USB storage service.
usb-storage warn number
<percentage|megabyte>
usb-storage mountMounts the connected USB storage device.
usb-storage umountUnmounts the connected USB storage device.
[no] logging usb-storageSets to have the ZyWALL log or not log any information about the connected USB
show logging status usb-storage Displays the logging settings for the connected USB storage device.
logging usb-storage category
Sets a number and the unit (percentage or megabyte) to have the ZyWALL send a
warning message when the remaining USB storage space is less than the set value.
storage device(s) for the system log.
Configures the logging settings for the specified category for the connected USB
storage device.
Stops logging for the specified category to the connected USB storage device.
Configures the maximum storage space (in percentage) for storing system logs on
the connected USB storage device.
82
ZyWALL (ZLD) CLI Reference Guide
Chapter 6 Interfaces
Table 30 USB Storage General Commands (continued)
COMMANDDESCRIPTION
[no] diag-info copy usb-storage Sets to have the ZyWALL save or stop saving the current system diagnostics
information to the connected USB storage device. You may need to send this file to
customer support for troubleshooting.
show diag-info copy usb-storage Displays whether (enable or disable) the ZyWALL saves the current system
[no] corefile copy usb-storageSets to have the ZyWALL save or not save a process’s core dump to the connected
show corefile copy usb-storageDisplays whether (enable or disable) the ZyWALL saves core dump files to the
diagnostics information to the connected USB storage device.
USB storage device if the process terminates abnormally (crashes). You may need to
send this file to customer support for troubleshooting.
connected USB storage device.
6.8.1 USB Storage General Commands Example
This example shows how to display the status of the connected USB storage device.
You can install a compatible WLAN card to use the ZyWALL as an access point (AP) for a wireless
network.
The following table identifies the values required for several WLAN commands. Other input values
are discussed with the corresponding commands.
Table 31 Input Values for WLAN Interface Commands
LABELDESCRIPTION
psk-keyUse 8 to 63 case-sensitive alphanumeric characters or 64 hexadecimal characters. This is
used for WLAN interface commands. See Table 33 on page 85
ZyWALL (ZLD) CLI Reference Guide
83
Chapter 6 Interfaces
6.9.1 WLAN General Commands
Use these commands to configure global settings that apply to all of the wireless LAN interfaces you
create on the WLAN card.
Table 32 WLAN General Commands
COMMANDDESCRIPTION
wlan slot_nameSpecifies the slot the WLAN card is installed in and enters sub-command mode.
slot_name: The name of the slot where the WLAN card is installed in the ZyWALL. Use
slotx where x equals the number of the card slot.
[no] activateTurns the wireless device on. The
band <b | g | bg| bgn |
gn>
channel
<wireless_channel |
auto>
channel-width <auto |
20m | 40m>
guard-interval <short
| long>
[no] ampduFor an IEEE 802.11n interface, enables or disables grouping of several A-MPDUs
[no] amsdu
[no] block-ackTurns the IEEE 802.11n interface’s block ACK (BA) mechanism on or off. Block ACK lets
qos <none | wmm>Select the WLAN Qu ality of Se rvice priority for an IEEE 802.11n interface.
[no] ctsrts
<256..2346>
[no] frag <256..2346>Sets the threshold (number of bytes) for the fragmentation boundary for directed
[no] super
role apSets the ZyWALL to act as an AP (only the AP role is supported at the time of writing.
output-power [100% |
50% | 25% | 12.5%]
qos [none | wmm}Applies W i-Fi Multimedia Quality of Service (QoS) or no wireless QoS.
Sets which IEEE 802.11 wireless standard wireless clients can use to connect to the
wireless interface.
•b
•g
•b or g
•b, g, or n
•g or n.
Sets the wireless operating channel of an IEEE 802.11n interface.
wireless_channel: Specify the channel number. The numbers available vary by region.
Sets how wide a channel the IEEE 802.11n interface uses.
Sets the IEEE 802.11n interface’s gap between data transmissions from users to reduce
interference.
short: increases data throughput but may make data transfer more prone to errors.
long: prioritizes data integrity but reduces data transfer rates.
(Aggregate MAC Protocol Data Unit) into one larger frame for faster data transfer rates.
For an IEEE 802.11n interface, enables or disables grouping of several A-MSDUs
(Aggregate MAC Service Data Units) into one large A-MPDU (Aggregate MAC Protocol
Data Unit) for faster data transfer rates.
multiple frames be streamed out and acknowledged by a single frame. This cuts the wait
time between frames and increases data throughput.
none: Apply no priority to traffic.
wmm: Wi-Fi Multimedia has the priority of a data packet depend on the packet’s IEEE
802.1q or DSCP header. If a packet has no WMM value assigned to it, it is assigned the
default priority.
Sets the Clear To Send/Request To Send threshold. CTS/RTS reduces data coll is ion s
caused by wireless clients that are associated with the same AP but out of range of one
another. The no command turns off CTS/RTS.
messages. It is the maximum data fragment size that can be sent.
Enables super mode (fast frame and packet bursting).
Sets the wireless output power . Reducing output power can help re duce interference with
other nearby APs.
no command turns it off.
84
ZyWALL (ZLD) CLI Reference Guide
Table 32 WLAN General Commands (continued)
COMMANDDESCRIPTION
guard-interval [short
| long]
[no] amsduEnables Aggregated Mac Service Data Unit (AMSDU) for faster data transfer rates.
[no] ampduEnables Aggregated Mac Protocol Data Unit (AMPDU) for faster data transfer rates.
[no] block-ackAdds the block ACK (BA) mechanism to increase data output.
exitLeaves the sub-command mode.
Sets Guard Interval to Short (increases data throughput) or Long (prioritize data
integrity).
6.9.1.1 WLAN General Commands Example
This example sets wireless slot 1 to use the IEEE 802.11b and IEEE 802.11g bands, channel 5,
super mode, 50 % output power, and enables it.
Router(config)# wlan slot1
Router(config-wlan-slot)# band bg
Router(config-wlan-slot)# channel 5
Router(config-wlan-slot)# super
Router(config-wlan-slot)# output-power 50%
Router(config-wlan-slot)# activate
Router(config-wlan-slot)# exit
Router(config)#
Chapter 6 Interfaces
6.9.2 WLAN Interface Commands
Use these commands to configure global settings that apply to all of the wireless LAN interfaces you
create on the WLAN card.
Table 33 WLAN Interface Commands
COMMANDDESCRIPTION
[no] interface ap_interfaceCreates the specified interface if necessary and enters sub-command mode. The
no command deletes the specified interface.
ap_interface: The name of the WLAN Access Point interface. Use wlan-x-y
where x equals the number of the card slot and y equals the number of the
individual WLAN interface. For example, wlan-1-1.
[no] block-intraEnables intra-BSS blocking (prevents) wireless clients in this profile’s BSS from
communicating with one another.
group-key <30..30000>Sets the WPA2 group key update timer. This is the interval in seconds for how
often the AP sends a new group key out to all clients.
[no] hideObscures the SSID in the outgoing beacon frame so a station cannot obtain the
idle <30..30000>Sets the WPA2 idle timeout. The ZyWALL automatically disconnects a wireless
[no] ip address ip
subnet_mask
[no] ip gateway ip [metric
<0..15>]
SSID through scanning.
station that has been inactive for this number of seconds. The wireless station
needs to enter the username and password again before access to the wired
network is allowed.
Assigns the specified IP address and subnet mask to the specifi ed interface. The
no command clears the IP address and the subnet mask.
Adds the specified gateway for the interface. Sets the priority (relative to every
gateway on every interface) for the s pecif ied gate wa y. The lower the number, the
higher the priority. The
no command removes the gateway.
ZyWALL (ZLD) CLI Reference Guide
85
Chapter 6 Interfaces
Table 33 WLAN Interface Commands (continued)
COMMANDDESCRIPTION
[no] mtu <576..2304>Specifies the Maximum Tr ansmission Unit, which is the maximum number of bytes
in each packet moving through this interface. The ZyWALL divides larger packets
into smaller fragments. The
reauth <30..30000>Sets the WPA2 reauthentication timer. This is at what interval wireless stations
security mode {none | wep |
wpa | wpa-wpa2 | wpa2}
security wep <64 | 128>
default-key <1..4>
security wep mode <open |
share>
security wpa <tkip | aes> eap
internal profile-name tls-
cert certificate name
security wpa <tkip | aes> eap
external
security wpa <tkip | aes> psk
key psk-key
security wpa-wpa2 <tkip |
aes> eap internal profile-
name tls-cert certificate
name
security wpa-wpa2 <tkip |
aes> eap external
security wpa-wpa2 <tkip |
aes> psk key psk-key
security wpa2 <tkip | aes>
eap internal profile-name
tls-cert certificate name
security wpa2 <tkip | aes>
eap external
security wpa2 <tkip | aes>
psk key psk-key
[no] security dot1x acct ip
port <1..65535>
[no] security dot1x auth ip
port <1..65535>
[no] security dot1x activateEnables IEEE 802.1x accounting and authentication.
[no] security external acct
ip port <1..65535>
have to resend usernames and passwords in order to stay connected. If a RADIUS
server authenticates wireless stations, the reauthentication timer on the RADIUS
server has priority.
Sets what type of security the wireless interface uses.
Sets WEP encryption to use a 64 or 128 bit key and selects the default key.
Sets the WEP encryption to use open or shared key authentication.
Configures WPA enterprise security using TKIP or AES and an existing AAA
authentication method object (profile-name). Set the certificate the ZyW A LL
uses to authenticate itself to the wireless clients. The wireless clients must use
TTLS authentication protocol and PAP inside the TTLS secure tunnel.
Configures WPA enterprise security using TKIP or AES and an external server . Use
the security external command to specify the server’s address.
Configures WPA security using TKIP or AES and a Pre-Shared Key (PSK).
This allows users to either use WPA or WPA2 enterprise security to connect to the
wireless interface. You have to also configure to use either TKIP or AES and an
existing AAA authentication method object (profile-name). Set the certificate the
ZyWALL uses to authenticate itself to the wireless clients. The wireless clients
must use TTLS authentication protocol and PAP inside the TTLS secure tunnel.
Configures WPA or WPA2 enterprise security using TKIP or AES and an external
server. Use the security external command to specify the server’s address.
Configures WPA or WPA2 security using TKIP or AES and a Pre-Shared Key (PSK).
Configures WPA2 enterprise security using TKIP or AES and an existing AAA
authentication method object (profile-name). Select the certificate the ZyWALL
uses to authenticate itself to the wireless clients. The wireless clients must use
TTLS authentication protocol and PAP inside the TTLS secure tunnel.
Configures WPA2 enterprise security using TKIP or AES and an external server.
Use the security external
Configures WPA2 security using TKIP or AES and a Pre-Shared Key (PSK).
Sets the IP address and port number of an external accounting server.
Sets the IP address and port number of an external authentication (RADIUS)
server.
Sets the IP address and port number of an external accounting server.
no command resets the MTU to 1500.
command to specify the server’s address.
86
ZyWALL (ZLD) CLI Reference Guide
Chapter 6 Interfaces
Table 33 WLAN Interface Commands (continued)
COMMANDDESCRIPTION
[no] security external auth
ip port <1..65535>
no security {none | wep | wpa
| wpa-wpa2 | wpa2}
ssid ssidSets the (Service Set IDentity). This identifies the Service Set with which a
station-limit <1..255>Sets the highest number of wireless clients that are allowed to connect to the
wep-key <1..4> keyThere are four data encryption keys to secure your data from eavesdropping by
Sets the IP address and port number of an external authentication (RADIUS)
server.
Disables the specified security mode for the wireless interface.
wireless station is associated. Wireless stations associating to the ZyWALL must
have the same SSID.
ssid: Use up to 32 printable 7-bit ASCII characters as a name for the wireless
LAN.
wireless interface at the same time.
unauthorized wireless users. The values for the keys must be set up exactly the
same on the access points as they are on the wireless stations.
If you set WEP encryption to use a 64 bit key usin g the security mode and
security wep 64 commands, type any 5 characters (ASCII string) or 5 pairs of
hexadecimal characters ("0-9", "A-F") preceded by 0x for each key.
If you set WEP encryption to use a 128 bit key using the security mode and
security wep 128 commands, type 13 characters (ASCII string) or 13 pairs of
hexadecimal characters ("0-9", "A-F") preceded by 0x for each key.
6.9.2.1 WLAN Interface Commands Example
This example configures WLAN AP interface 2 for slot 1 to use SSID WLAN_test, WPA security
modes with a pre-shared key of 12345678, IP address 1.1.1.1, netmask 255.255.255.0, and a
gateway IP address of 1.2.3.4 with a priority of 10.
Use these commands to give specific wireless clients exclusive access to the ZyWALL (allow
association) or block specific devices from accessing the ZyWALL (deny association) based on the
devices’ MAC addresses.
Table 34 WLAN General Commands
COMMANDDESCRIPTION
[no] wlan mac-filter
mac_address [description
description]
[no] wlan mac-filter activate Turns the MAC address filter on or off.
Specifies the MAC address (in XX:XX:XX:XX:XX:XX format) of the wireless station that
is to be allowed or denied access to the ZyWALL. The no command r emo ves t he entry.
description: You can use alphanumeric and
can be up to 60 characters long.
()+/:=?!*#@$_%- characters, and it
ZyWALL (ZLD) CLI Reference Guide
87
Chapter 6 Interfaces
Table 34 WLAN General Commands (continued)
COMMANDDESCRIPTION
wlan mac-filter associate
<allow | deny>
show wlan mac-filter statusDisplays the MAC filter’s activation and association settings.
show wlan mac-filterDisplays the WLAN MAC filter entries.
Defines the filter action for the list of MAC addresses in the MAC address filter table.
Allow permits them to access to the ZyW ALL, MAC addresses not listed will be blocked.
Deny blocks the listed addresses from accessing the router, MAC addresses not listed
will be allowed to access the router.
6.9.3.1 WLAN MAC Filter Commands Example
This example creates a MAC filter entry for MAC address 01:02:03:04:05:06 and sets the ZyWALL
to allow wireless access from that entry’s MAC address only.
Router(config)# wlan mac-filter 01:02:03:04:05:06 description example
Router(config)# wlan mac-filter associate allow
Router(config)# wlan mac-filter activate
Router(config)# show wlan mac-filter status
Enable: yes
Association: allow
Router(config)# show wlan mac-filter
No. MAC Description
===========================================================================
1 01:02:03:04:05:06 example
6.10 VLAN Interface Specific Commands
This section covers commands that are specific to VLAN interfaces. VLAN interfaces also use many
of the general interface commands discussed at the beginning of Section 6.2 on page 57.
The following table identifies the values required for many of these commands. Other input values
are discussed with the corresponding commands.
Table 35 Input Values for VLAN Interface Commands
LABELDESCRIPTION
interface_nameVLAN interface: vlanx, x = 0 - 4094
Ethernet interface: For the ZyWALL USG 300 and above, use gex, x = 1 - N, where N
equals the highest numbered Ethernet interface for your ZyWALL model.
The ZyWALL USG 200 and below models use a name such as wan1, wan2, opt, lan1,
ext-wlan, or dmz.
This table lists the VLAN interface commands.
Table 36 interface Commands: VLAN Interfaces
COMMANDDESCRIPTION
interface interface_nameCreates the specified interface if necessary and enters sub-command mode.
[no] port interface_nameSpecifies the E thernet interface on which the VLAN interface runs. The no command
[no] vlan-id <1..4094>Specifies the VLAN ID used to identify the VLAN. The no command clears the VLAN ID.
show port vlan-idDisplays the Ethernet interface VLAN settings.
6.10.1 VLAN Interface Command Examples
The following commands show you how to set up VLAN vlan100 with the following parameters:
VLAN ID 100, interface ge1, IP 1.2.3.4, subnet 255.255.255.0, MTU 598, gateway 2.2.2.2,
description "I am vlan100” , upstream bandwidth 345, and downstream bandwidth 123.
Router# configure terminal
Router(config)# interface vlan100
Router(config-if-vlan)# vlan-id 100
Router(config-if-vlan)# port ge1
Router(config-if-vlan)# ip address 1.2.3.4 255.255.255.0
Router(config-if-vlan)# ip gateway 2.2.2.2
Router(config-if-vlan)# mtu 598
Router(config-if-vlan)# upstream 345
Router(config-if-vlan)# downstream 123
Router(config-if-vlan)# description I am vlan100
Router(config-if-vlan)# exit
6.11 Bridge Specific Commands
This section covers commands that are specific to bridge interfaces. Bridge interfaces also use
many of the general interface commands discussed at the beginning of Section 6.2 on page 57.
The following table identifies the values required for many of these commands. Other input values
are discussed with the corresponding commands.
Table 37 Input Values for Bridge Interface Commands
LABELDESCRIPTION
interface_nameThe name of the interface.
Ethernet interface: For the ZyWALL USG 300 and above, use gex, x = 1 - N, where N
equals the highest numbered Ethernet interface for your ZyWALL model.
The ZyWALL USG 200 and below models use a name such as wan1, wan2, opt,
lan1, ext-wlan, or dmz.
VLAN interface: vlanx, x = 0 - 4094
bridge interface: brx, x = 0 - N, where N depends on the number of bridge interfaces
your ZyWALL model supports.
This table lists the bridge interface commands.
Table 38 interface Commands: Bridge Interfaces
COMMANDDESCRIPTION
interface interface_nameCreates the specified interface if necessary and enters sub-command mode.
[no] join interface_name Adds the specified Ethernet interface or VLAN interface to the specified bridge. The no
command removes the specified interface from the specified bridge.
show bridge available memberDisplays the available interfaces that could be added to a bridge.
6.11 .1 Bridge Interface Command Examples
The following commands show you how to set up a bridge interface named br0 with the following
parameters: member ge1, IP 1.2.3.4, subnet 255.255.255.0, MTU 598, gateway 2.2.2.2, upstream
bandwidth 345, downstream bandwidth 123, and description “I am br0”.
Router# configure terminal
Router(config)# interface br0
Router(config-if-brg)# join ge1
Router(config-if-brg)# ip address 1.2.3.4 255.255.255.0
Router(config-if-brg)# ip gateway 2.2.2.2
Router(config-if-brg)# mtu 598
Router(config-if-brg)# upstream 345
Router(config-if-brg)# downstream 123
Router(config-if-brg)# description I am br0
Router(config-if-brg)# exit
6.12 Auxiliary Interface Specific Commands
The first table below lists the auxiliary interface commands, and the second table explains the
values you can input with these commands.
Table 39 interface Commands: Auxiliary Interface
COMMANDDESCRIPTION
interface dial aux
interface disconnect aux
interface auxEnters sub-command mode.
[no] authentication {chap-pap |
chap | pap | mschap | mschap-v2}
[no] dial-timeout <30..120>Specifies the number of seconds the auxiliary interface waits for an answer
[no] dialing-type {tone |
pulse}
[no] idle <0..360>Specifies the number of seconds the auxiliary interface waits for activity before
[no] initial-string
initial_string
[no] password passwordSpecifies the password of the auxiliary interface. The
Dials or disconnects the auxiliary interface.
Specifies the authentication type of the auxiliary interface. The
sets the authentication to chap-pap.
each time it tries to connect. The
Specifies the dial type of the auxiliary interface. The no command sets the dial
type to tone.
it automatically disconnects. The
Specifies the initial string of the auxiliary interface. The no command sets the
initial string to “ATZ”.
initial_string: You can use up to 64 characters. Semicolons (;) and
backslashes (\) are not allowed.
no command disables the timeout.
no command disables the idle timeout.
no command
no command clears the
password.
password: You can use up to 63 printable ASCII characters. Spaces are not
[no] phone-number phoneSpecifies the phone number of the auxiliary interface. You can use 1-20
numbers, commas (,), or plus signs (+). Use a comma to pause during dialing.
Use a plus sign to tell the external modem to make an international call. The
no command clears the phone number.
[no] port-speed {9600 | 19200 |
38400 | 57600 | 115200}
[no] username usernameSpecifies the username of the auxiliary interface. The
Specifies the baud rate of the auxiliary interface. The
baud rate to 115200.
no command sets the
no command clears the
username.
username: You c an use alphanumeric, undersco res (_), dashes (-), periods (.),
and
/@$ characters, and it can be up to 64 characters long.
6.12.1 Auxiliary Interface Command Examples
The following commands show you how to set up the auxiliary interface aux with the following
parameters: phone-number 0340508888, tone dialing, port speed 115200, initial-string ATZ,
timeout 30 seconds, username kk, password kk@u2online, chap-pap authentication, and
description “I am aux interface”.
Chapter 6 Interfaces
Router# configure terminal
Router(config)# interface aux
Router(config-if-aux)# phone-number 0340508888
Router(config-if-aux)# dialing-type tone
Router(config-if-aux)# port-speed 115200
Router(config-if-aux)# initial-string ATZ
Router(config-if-aux)# timeout 30
Router(config-if-aux)# username kk
Router(config-if-aux)# password kk@u2online
Router(config-if-aux)# authentication chap-pap
Router(config-if-aux)# description I am aux interface
Router(config-if-aux)# exit
The following commands show how to dial, disconnect, and stop the auxiliary interface.
Router# interface dial aux
Router# interface disconnect aux
ZyWALL (ZLD) CLI Reference Guide
91
Chapter 6 Interfaces
92
ZyWALL (ZLD) CLI Reference Guide
This chapter shows you how to configure trunks on your Zy WALL.
7.1 Trunks Overview
You can group multiple interfaces together into trunks to hav e multiple connections share the tr affic
load to increase overall network throughput and enhance network reliability. If one interface’s
connection goes down, the ZyWALL sends traffic through another member of the trunk. For
example, you can use two interfaces for WAN connections. Y ou can connect one interface to one ISP
(or network) and connect the another to a second ISP (or network). The ZyWALL can balance the
load between multiple connections. If one interface's connection goes down, the Z yWALL can
automatically send its traffic through another interface.
You can use policy routing to specify through which interface to send specific traffic types. You can
use trunks in combination with policy routing. You can also define multiple trunks for the same
physical interfaces. This allows you to send specific traffic types through the interface that works
best for that type of traffic, and if that interface’s connection goes down, the ZyWALL can still send
its traffic through another interface.
CHAPTER 7
Trunks
7.2 Trunk Scenario Examples
Suppose one of the ZyWALL's interfaces is connected to an ISP that is also your Voice over IP
(VoIP) service provider. You may want to set that interface as active and set another interface
(connected to another ISP) to passive. This way VoIP traffic goes through the interface connected
to the VoIP service provider whenever the interface’s connection is up.
Another example would be if you use multiple ISPs that provide different levels of service to
different places. Suppose ISP A has better connections to Europe while ISP B has better
connections to Australia. You could use policy routing and trunks to send traffic for your European
branch offices primarily through ISP A and traffic for your Australian branch offices primarily
through ISP B.
ZyWALL (ZLD) CLI Reference Guide93
Chapter 7 Trunks
7.3 Trunk Commands Input Values
The following table explains the values you can input with the interface-group commands.
Table 40 interface-group Command Input Values
LABELDESCRIPTION
group-nameA descriptive name for the trunk.
For the ZyW ALL USG 300 and above, use up to 31 char acters (a-zA -Z0-9_-). The name cannot
start with a number. This value is case-sensitive.
The ZyWALL USG 200 and lower models use WAN_TRUNK or WAN_TRUNK2-5.
interfacename
The name of an interface, it could be an Ethernet, PPP, VLAN or bridge interface. The possible
number of each interface type and the abbreviation to use are as follows.
Ethernet interface: For the ZyWALL USG 300 and above, use gex, x = 1 - N, where N equals
the highest numbered Ethernet interface for your ZyWALL model.
The ZyWALL USG 200 and lower models use a name such as wan1, wan2, opt, lan1, extwlan, or dmz.
PPPoE/PPTP interface: pppx, x = 0 - N, where N depends on the number of PPPoE/PPTP
interfaces your ZyWALL model supports.
VLAN interface: vlanx, x = 0 - 4094
bridge interface: brx, x = 0 - N, where N depends on the number of bridge interfaces your
ZyWALL model supports.
numThe interface’s position in the trunk’s list of members <1..8>.
<CR>Carriage Return (the “enter” key).
7.4 Trunk Commands Summary
The following table lists the interface-group commands. You must use the configure
terminal
Table 40 on page 94 for details about the values you can input with these commands.
Table 41 interface-group Commands Summary
COMMANDDESCRIPTION
show interface-group {system-default|userdefine|group-name}
[no] interface-group group-nameCreates a trunk name and enters the trunk sub-command mode where
algorithm {wrr|llf|spill-over}Sets the trunk’s load balancing algorithm.
exitLeaves the trunk sub-command mode.
flushDeletes a trunk’s interface settings.
interface {num|append|insert num}
interface-name [weight <1..10>|limit
<1..2097152>|passive]
command to enter the configuration mode before you can use these commands. See
Displays pre-configured system default trunks, your own user
configuration trunks or a specified trunk’s settings.
you can configure the trunk. The
This subcommand adds an interface to a trunk. Sets the interface’s
number. It also sets the interface’s weight and spillover limit or sets it
to be passive.
mode {normal|trunk}Sets the mode for a trunk. Do this first in the trunk’s sub-command
move <1..8> to <1..8>Changes a the interface order in a trunk.
[no] interface {num|interface-name}Removes an interface from the trunk.
system default-interface-group group-nameSets the ZyWALL to first attempt to use the the specified WAN trunk.
[no] system default-snatEnables or disables Source NAT (SNAT). When SNAT is enabled, the
show system default-snatDisplays whether the ZyWALL enable SNAT or not. The ZyWALL
show system default-interface-groupDisplays the WAN trunk the ZyWALL first attempts to use.
Use this command only if you use least load first or spill-over as the
trunk’s load balancing algorithm.
Set either inbound, outbound, or total (outbound and inbound)
traffic to which the ZyWALL will apply the specified algorithm.
Outbound traffic means the traffic travelling from an internal interface
(ex. LAN) to an external interface (ex. WAN). Inbound traffic means the
opposite.
mode.
ZyWALL uses the IP address of the outgoing interface as the source IP
address of the packets it sends out through the WAN interfaces.
performs SNAT by default for traffic going to or from the WAN
interfaces.
7.5 Trunk Command Examples
The following example creates a weighted round robin trunk for Ethernet interfaces ge1 and ge2.
The ZyWALL sends twice as much traffic through ge1.
The following example creates a least load first trunk for Ethernet interface ge3 and VLAN 5, which
will only apply to outgoing traffic through the trunk. The
through the least utilized of these interfaces.
The following example creates a spill-over trunk for Ethernet interfaces ge1 and ge3, which will
apply to both incoming and outgoing traffic through the trunk.. The
through ge1 until it hits the limit of 1000 kbps. The
through ge3.
You can have the ZyWALL send each local computer’s traffic through a single WAN interface for a
specified period of time. This is useful when a redirect server forwards a user request for a file and
informs the file server that a particular WAN IP address is requesting the file. If the user’s
subsequent sessions came from a different WAN IP address, the file server would deny the request.
Here is an example.
ZyWALL sends traffic
ZyWALL sends anything over 1000 kbps
Figure 14 Link Sticking
1LAN user A tries to download a file from server B on the Internet. The ZyW ALL uses WAN1 to send
the request to server B.
2However remote server B is actually a redirect server. So server B sends a file list to LAN user A.
The file list lets LAN user A’ s computer know that the desired file is actually on file server (C). At the
same time, register server B informs file server C that a computer located at the W AN1’s IP address
will download a file.
3The ZyWALL is using active/activ e load balancing. So when LAN user A tries to retrieve the file from
file server C, the request goes out through WAN2.
96
ZyWALL (ZLD) CLI Reference Guide
4File server C finds that the request comes from WAN2’s IP address instead of WAN1’s IP address
and rejects the request.
5If link sticking had been configured, the ZyWALL would have still used WAN1 to send LAN user A’s
request to file server C and the file server would have given the file to A.
7.7 Link Sticking Commands Summary
The following table lists the ip load-balancing link-sticking commands for link sticking. (The
link sticking commands have the prefix ip load-balancing because they affect the ZyWALL’s load
balancing behavior.) You must use the
mode before you can use these commands. See Table 40 on page 94 for details about the values
you can input with these commands.
Table 42 ip load-balancing link-sticking Commands Summary
COMMANDDESCRIPTION
[no] ip load-balancing link-sticking activateTurns link sticking on or off.
[no] ip load-balancing link-sticking timeout
timeout
show ip load-balancing link-sticking statusDisplays the current link sticking settings.
configure terminal command to enter the configuration
Sets for how many seconds (30-3600) the ZyWALL sends all of
each local computer’s traffic through one WAN interface.
Chapter 7 Trunks
7.8 Link Sticking Command Example
This example shows how to activate link sticking and set the timeout to 600 seconds (ten minutes).
Router(config)# ip load-balancing link-sticking activate
Router(config)# ip load-balancing link-sticking timeout 600
Router(config)# show ip load-balancing link-sticking status
active : yes
timeout : 300
ZyWALL (ZLD) CLI Reference Guide
97
Chapter 7 Trunks
98
ZyWALL (ZLD) CLI Reference Guide
This chapter shows you how to configure policies for IP routing and static routes on your ZyWALL.
8.1 Policy Route
Traditionally, routing is based on the destination address only and the Z yWALL takes the shortest
path to forward a packet. IP Policy Routing (IPPR) provides a mechanism to override the default
routing behavior and alter the packet forwarding based on the policy defined by the network
administrator. Policy-based routing is applied to incoming packets on a per interface basis, prior to
the normal routing.
8.2 Policy Route Commands
CHAPTER 8
Route
The following table identifies the values required for many of these commands. Other input values
are discussed with the corresponding commands.
Table 43 Input Values for General Policy Route Commands
LABELDESCRIPTION
address_objectThe name of the IP address (group) object. You may use 1-31 alphanumeric
address6_objectThe name of the IPv6 address (group) object. You may use 1-31 alphanumeric
interface_nameThe name of the interface.
characters, underscores(
number. This value is case-sensitive.
characters, underscores(
number. This value is case-sensitive.
Ethernet interface: For the ZyW ALL USG 300 and above, use gex, x = 1 - N, where N
equals the highest numbered Ethernet interface for your ZyWALL model.
The ZyWALL USG 200 and lower models use a name such as wan1, wan2, opt,
lan1, ext-wlan, or dmz.
virtual interface on top of Ethernet interface: add a colon (:) and the number of the
virtual interface. For example: gex:y, x = 1 - N, y = 1 - 4
VLAN interface: vlanx, x = 0 - 4094
virtual interface on top of VLAN interface: vlanx:y, x = 0 - 4094, y = 1 - 12
bridge interface: brx, x = 0 - N, where N depends on the number of bridge interfaces
your ZyWALL model supports.
virtual interface on top of bridge interface: brx:y, x = the number of the bridge
interface, y = 1 - 4
_), or dashes (-), but the first character cannot be a
_), or dashes (-), but the first character cannot be a
PPPoE/PPTP interface: pppx, x = 0 - N, where N depends on the number of PPPoE/
PPTP interfaces your ZyWALL model supports.
ZyWALL (ZLD) CLI Reference Guide99
Chapter 8 Route
Table 43 Input Values for General Policy Route Commands (continued)
LABELDESCRIPTION
policy_numberThe number of a policy route. 1 - X where X is the highest number of policy routes
the ZyWALL model supports. See the ZyWALL’s User’s Guide for details.
schedule_objectThe name of the schedule. You may use 1-31 alphanumeric characters,
underscores(
is case-sensitive.
service_nameThe name of the service (group). You may use 1-31 alphanumeric characters,
underscores(
is case-sensitive.
user_nameThe name of a user (group). You may use 1-31 alphanumeric characters,
underscores(
is case-sensitive.
destv6The IPv6 route prefix (subnet address) for the destination.
prefixThe IPv6 prefix length, 0 - 128.
gatewayv6The IPv6 address of the specified gateway.
ipv6_addrAn IPv6 address.
ipv6_global_address An IPv6 address excluding the link-local address (fe80::).
ipv6_link_localAn fe80:: IPv6 address.
_), or dashes (-), but the first character can not be a number. This value
_), or dashes (-), but the first character can not be a number. This value
_), or dashes (-), but the first character can not be a number. This value
The following table describes the commands available for policy route. You must use the
configure terminal command to enter the configuration mode before you can use these
commands.
Table 44 Command Summary: Policy Route
COMMANDDESCRIPTION
[no] bwm activateGlobally enables bandwidth management. You must globally activate
bandwidth management to have individual policy routes or application
patrol policies apply bandwidth management. The no command
globally disables bandwidth management.
[no] auto-destinationWhen you set tunnel as the next-hop type (using the next-hop
[no] auto-disableWhen you set interface or trunk as the next-hop type (using the
[no] bandwidth <1..1048576> priority
<1..1024> [maximize-bandwidth-usage]
[no] deactivateDisables the specified policy. The no command enables the specified
[no] description descriptionSets a descriptive name for the policy. The no command removes the
[no] destination {address_object|any}Sets the destination IP address the matched packets must have. The
Enters the policy-route sub-command mode to configure, add or insert
a policy.
tunnel command) for this route, you can use this command to have
the ZyWALL use the local network of the peer router that initiated an
incoming dynamic IPSec tunnel as the destination address of the policy
instead of what you configure by using the destination command.
The no command disables the setting.
next-hop interface or next-hop trunk command) for this route,
you can use this command to have the ZyWALL automatically disable
this policy route when the next-hop’s connection is down. The no
command disables the setting.
Sets the maximum bandwidth and priority for the policy. The no
command removes bandwidth settings from the rule. You can also turn
maximize bandwidth usage on or off.
policy.
name for the policy.
no command resets the destination IP address to the default (any). any means all IP addresses.
100
ZyWALL (ZLD) CLI Reference Guide
Loading...
+ hidden pages
You need points to download manuals.
1 point = 1 manual.
You can buy points or you can get point for every manual you upload.