V200R001C01
Configuration Guide - Basic
Configurations
Issue 03
Date 2012-03-19
Copyright © Huawei Technologies Co., Ltd. 2012. All rights reserved.
No part of this document may be reproduced or transmitted in any form or by any means without prior written consent of Huawei Technologies Co., Ltd.
Trademarks and Permissions
and other Huawei trademarks are trademarks of Huawei Technologies Co., Ltd.
All other trademarks and trade names mentioned in this document are the property of their respective holders.
Notice
The purchased products, services and features are stipulated by the contract made between Huawei and the customer. All or part of the products, services and features described in this document may not be within the purchase scope or the usage scope. Unless otherwise specified in the contract, all statements, information, and recommendations in this document are provided "AS IS" without warranties, guarantees or representations of any kind, either express or implied.
The information in this document is subject to change without notice. Every effort has been made in the preparation of this document to ensure accuracy of the contents, but all statements, information, and recommendations in this document do not constitute the warranty of any kind, express or implied.
Huawei Technologies Co., Ltd.
Address: Huawei Industrial Base Bantian, Longgang Shenzhen 518129
People's Republic of China Website: http://www.huawei.com
About This Document
Related Version
The following table lists the product version related to this document.
Product Name Version
ATN 910 V200R001C01
Intended Audience
This document provides the basic concepts, configuration procedures, and configuration examples in different application scenarios of the VRP Overview, Establishment of the Configuration Environment, CLI Overview, Basic Configuration, User Management, File System, Management of Configuration Files, FTP, TFTP, Telnet and SSH, Upgrade and Maintenance features supported by the ATN 910 device.
This document is intended for: l Commissioning Engineer l Data Configuration Engineer l Network Monitoring Engineer l System Maintenance Engineer
Symbol Conventions
Symbol Description
DANGER
Indicates a hazard with a high level of risk, which if not avoided, will result in death or serious injury.
WARNING
Indicates a hazard with a medium or low level of risk, which if not avoided, could result in minor or moderate injury.
Symbol Description
CAUTION
Indicates a potentially hazardous situation, which if not avoided, could result in equipment damage, data loss, performance degradation, or unexpected results.
TIP Indicates a tip that may help you solve a problem or save time.
NOTE Provides additional information to emphasize or supplement
important points of the main text.
Command Conventions
Convention Description
Boldface The keywords of a command line are in boldface.
Italic Command arguments are in italics.
[ ] Items (keywords or arguments) in brackets [ ] are optional. { x | y | ... } Optional items are grouped in braces and separated by
vertical bars. One item is selected.
[ x | y | ... ] Optional items are grouped in brackets and separated by vertical bars. One item is selected or no item is selected. { x | y | ... }* Optional items are grouped in braces and separated by
vertical bars. A minimum of one item or a maximum of all items can be selected.
[ x | y | ... ]* Optional items are grouped in brackets and separated by vertical bars. Several items or no item can be selected.
GUI Conventions
Convention Description
Boldface Buttons, menus, parameters, tabs, window, and dialog titles are in boldface. For example, click OK.
> Multi-level menus are in boldface and separated by the ">" signs. For example, choose File > Create > Folder.
Change History
Updates between document issues are cumulative. Therefore, the latest document issue contains all updates made in previous issues.
Changes in Issue 03 (2012-03-19)
Known bugs are fixed.
Changes in Issue 02 (2012-01-06)
Known bugs are fixed.
Changes in Issue 01 (2011-10-28)
Contents
About This Document...ii
1 Establishment of the Configuration Environment...1
1.1 Introduction to Establishment of the Configuration Environment...2
1.1.1 Login Through the Console...2
1.1.2 Login Through Telnet...2
1.2 Logging In to the Device Through the Console Port...2
1.2.1 Establishing the Configuration Task...3
1.2.2 Establishing the Physical Connection...3
1.2.3 Configuring Terminals...4
1.2.4 Logging In to the Device...4
1.3 Logging In to Device Through Telnet...5
1.3.1 Establishing the Configuration Task...5
1.3.2 Establishing the Physical Connection...5
1.3.3 Configuring Login User Parameters...6
1.3.4 Logging In from the Telnet Client...6
1.4 Configuration Examples...6
1.4.1 Example for Logging In Through the Console Port...7
1.4.2 Example for Logging In Through Telnet...9
2 CLI Overview...12
2.1 CLI Introduction...13
2.1.1 Command Line Interface...13
2.1.2 Command Levels...13
2.1.3 Command Line Views...16
2.2 Online Help...17
2.2.1 Full Help...17
2.2.2 Partial Help...18
2.2.3 Error Messages of the Command Line Interface...18
2.3 Features of Command Line Interface...19
2.3.1 Editing...19
2.3.2 Displaying...19
2.3.3 Regular Expressions...20
2.3.5 Batch Command Execution...24
2.4 Shortcut Keys...24
2.4.1 Classifying Shortcut Keys...25
2.4.2 Defining Shortcut Keys...26
2.4.3 Use of Shortcut Keys...26
2.5 Configuration Examples...27
2.5.1 Example for Running Commands in Batches...27
2.5.2 Example for Using Tab...28
2.5.3 Example for Using Shortcut Keys...29
2.5.4 Copying Commands Using Shortcut Keys...29
3 Basic Configuration...31
3.1 Basic Configuration Introduction...32
3.2 Configuring the Basic System Environment...32
3.2.1 Establishing the Configuration Task...32
3.2.2 Switching the Language Mode...33
3.2.3 Configuring the Equipment Name...33
3.2.4 Setting the System Clock...34
3.2.5 Configuring a Header...35
3.2.6 Configuring Command Levels...35
3.2.7 Configuring the Undo Command to Match in the Previous View Automatically...36
3.3 Configuring Basic User Environment...37
3.3.1 Establishing the Configuration Task...37
3.3.2 Configuring the Password for Switching User Levels...38
3.3.3 Switching User Levels...38
3.3.4 Locking User Interfaces...39
3.4 Displaying System Status Messages...39
3.4.1 Displaying System Configuration...40
3.4.2 Displaying System Status...40
3.4.3 Collecting System Diagnostic Information...40
4 User Management...42
4.1 User Management Introduction...44
4.1.1 User Interface View...44
4.1.2 User Management...45
4.2 Configuring Console User Interface...46
4.2.1 Establishing the Configuration Task...47
4.2.2 Configuring Console Interface Attributes...47
4.2.3 Setting Console Terminal Attributes...48
4.2.4 Configuring User Priority...49
4.2.5 Configuring User Authentication...49
4.2.6 Checking the Configuration...50
4.3 Configuring VTY User Interface...51
4.3.2 Configuring Maximum VTY User Interfaces...51
4.3.3 (Optional)Configuring Limits for Incoming Calls and Outgoing Calls...52
4.3.4 Configuring VTY Terminal Attributes...53
4.3.5 Configuring User Authentication...54
4.3.6 Checking the Configuration...55
4.4 Managing User Interfaces...55
4.4.1 Establishing the Configuration Task...56
4.4.2 Sending Messages to Other User Interfaces...56
4.4.3 Clearing Online User...56
4.4.4 Checking the Configuration...57
4.5 Configuring User Authentication...57
4.5.1 Establishing the Configuration Task...57
4.5.2 Configuring Authentication Mode...58
4.5.3 Configuring Authentication Password...58
4.5.4 Setting Username and Password for AAA Local Authentication...59
4.5.5 Configuring Non-Authentication...60
4.5.6 Configuring User Priority...60
4.5.7 Checking the Configuration...61
4.6 Configuring Exclusive Configuration Access...61
4.6.1 (Optional) Viewing the Current Locked Configuration Set...61
4.6.2 Enabling Exclusive Configuration Access...61
4.6.3 (Optional) Setting the Unlocking Time...62
4.7 Configuring Local User Management...62
4.7.1 Establishing the Configuration Task...62
4.7.2 Creating a Local User Account...63
4.7.3 Configuring the Type of the Service That the Local User Accesses...64
4.7.4 Configuring the Local User Authority of Accessing the FTP Directory...64
4.7.5 Configuring Local User Status...65
4.7.6 Configuring the Local User Level...66
4.7.7 Setting the Maximum Number of Access Users with the Same User Name...66
4.7.8 Configuring a ATN equipment to Cut off Idle Access Users...67
4.7.9 Local Users Changing the Passwords...67
4.7.10 Checking the Configuration...68
4.8 Configuring an NM User to Log in to a Device in VTY Mode...68
4.8.1 Establishing the Configuration Task...68
4.8.2 Configuring an NM User...69
4.8.3 Configuring the Authentication Mode of an NM User...69
4.8.4 Switching to Machine-to-Machine Mode...70
4.8.5 Checking the Configuration...70
4.9 Configuration Examples...71
4.9.1 Example for Configuring Logging In to the ATN Through Password...71
4.9.3 Example for Configuring an NMS User to Manage Devices in Machine-to-machine Mode...73
5 File System...76
5.1 File System Introduction...77
5.1.1 File System...77
5.1.2 File System Supported by the ATN 910...77
5.1.3 File...77
5.1.4 Directory...78
5.2 Managing Storage Devices...78
5.2.1 Establishing the Configuration Task...78
5.2.2 Restoring Storage Devices with File System Troubles...78
5.2.3 Formatting Storage Devices...79
5.3 Managing the Directory...79
5.3.1 Establishing the Configuration Task...79
5.3.2 Viewing the Current Directory...80
5.3.3 Switching a Directory...80
5.3.4 Displaying a Directory or File...81
5.3.5 Creating a Directory...81
5.3.6 Deleting a Directory...81
5.4 Managing Files...82
5.4.1 Establishing the Configuration Task...82
5.4.2 Displaying Contents of Files...82
5.4.3 Copying Files...83
5.4.4 Moving Files...84
5.4.5 Renaming Files...84
5.4.6 Compressing Files...85
5.4.7 Deleting Files...85
5.4.8 Deleting Files in the Recycle Bin...85
5.4.9 Undeleting Files...86
5.4.10 Running Files in Batch...86
5.4.11 Configuring Prompt Modes...86
5.5 Example for Managing Files...87
6 Management of Configuration Files...89
6.1 Management of Configuration Files Introduction...90
6.1.1 Configuration Files...90
6.1.2 Configuration Files and Current Configurations...90
6.2 Managing Configuration Files...90
6.2.1 Establishing the Configuration Task...91
6.2.2 Configuring System Software for a ATN equipment to Load for the Next Startup...91
6.2.3 Configuring the Configuration File for ATN to Load for the Next Startup...92
6.2.4 Saving Configuration Files...92
6.2.5 Clearing a Configuration File...94
6.2.7 Checking the Configuration...95
7 FTP and TFTP...96
7.1 FTP and TFTP Introduction...97
7.1.1 FTP...97
7.1.2 TFTP...97
7.2 Configuring the ATN to be the FTP Server...97
7.2.1 Establishing the Configuration Task...98
7.2.2 (Optional) Specifying a Port Number for the FTP Server...98
7.2.3 Enabling the FTP Server...99
7.2.4 Configuring the Source IP Address of the FTP Server...99
7.2.5 (Optional) Configuring the Timeout Period...100
7.2.6 Configuring the Local Username and the Password...100
7.2.7 Configuring the Service Type and Authorization Information...101
7.2.8 Checking the Configuration...101
7.3 Configuring FTP ACL...102
7.3.1 Establishing the Configuration Task...102
7.3.2 Enabling the FTP Server...102
7.3.3 Configuring a Basic ACL...103
7.3.4 Configuring the Basic FTP ACL...103
7.3.5 Checking the Configuration...104
7.4 Configuring the ATN to Be the FTP Client...104
7.4.1 Establishing the Configuration Task...104
7.4.2 (Optional) Configuring Source IP Address and Interface of the FTP Client...105
7.4.3 Logging In to the FTP Server...106
7.4.4 Configuring Data Type and Transmission Mode for the File...106
7.4.5 (Optional) Viewing Online Help of the FTP Command...107
7.4.6 Uploading or Downloading Files...107
7.4.7 Managing Directories...108
7.4.8 Managing Files...108
7.4.9 (Optional) Changing Login Users...109
7.4.10 Disconnecting from the FTP Server...109
7.4.11 Checking the Configuration...110
7.5 Configuring the ATN to Be the TFTP Client...110
7.5.1 Establishing the Configuration Task...110
7.5.2 (Optional) Configuring a Source IP Address for a TFTP Client...111
7.5.3 Downloading Files Through TFTP...111
7.5.4 Uploading Files Through TFTP...112
7.6 Limiting the Access to the TFTP Server...112
7.6.1 Establishing the Configuration Task...112
7.6.2 Configuring the Basic ACL...113
7.6.3 Configuring the Basic TFTP ACL...114
7.7.1 Example for Configuring FTP...114
7.7.2 Example for Configuring the FTP Client...116
7.7.3 Example for Configuring TFTP...117
8 Telnet and SSH...120
8.1 Telnet and SSH Introduction...121
8.1.1 Overview of User Login...121
8.1.2 Telnet Terminal Services...121
8.1.3 SSH Terminal Services...123
8.2 Configuring Telnet Terminal Services...125
8.2.1 Establishing the Configuration Task...125
8.2.2 Enabling the Telnet Service...126
8.2.3 (Optional) Configuring a Source IP Address for an Telnet Client...127
8.2.4 Establishing a Telnet Connection...127
8.2.5 (Optional) Configuring a Telnet Server Port Number...127
8.2.6 (Optional) Scheduled Telnet Disconnection...128
8.2.7 Checking the Configuration...128
8.3 Configuring SSH Users...129
8.3.1 Establishing the Configuration Task...129
8.3.2 Creating SSH User...130
8.3.3 Configuring SSH for the VTY User Interface...130
8.3.4 Generating a Local RSA Key Pair...131
8.3.5 Configuring the Authentication Mode for SSH Users...131
8.3.6 (Optional) Configuring the Basic Authentication Information for SSH Users...133
8.3.7 (Optional) Authorizing SSH Users Through the Command Line...134
8.3.8 Configuring the Service Type of SSH Users...134
8.3.9 (Optional) Configuring the Authorized Directory of the SFTP Service for SSH Users...135
8.3.10 Checking the Configuration...135
8.4 Configuring the SSH Server Function...135
8.4.1 Establishing the Configuration Task...136
8.4.2 Enabling the STelnet Service...136
8.4.3 Enabling the SFTP Service...137
8.4.4 (Optional) Enabling the Earlier Version - Compatible Function...137
8.4.5 (Optional) Configuring the Number of the Port Monitored by the SSH Server...138
8.4.6 (Optional) Configuring the Interval for Updating the Key Pair on the SSH Server...138
8.4.7 Checking the Configuration...139
8.5 Configuring the STelnet Client Function...139
8.5.1 Establishing the Configuration Task...139
8.5.2 Enabling the First-Time Authentication on the SSH Client...140
8.5.3 (Optional) Assigning an RSA Public Key to the SSH Server...141
8.5.4 Enabling the STelnet Client...142
8.5.5 Checking the Configuration...143
8.6.1 Establishing the Configuration Task...143
8.6.2 (Optional) Configuring a Source IP Address for an SFTP Client...144
8.6.3 Configuring the First-Time Authentication on the SSH Client...144
8.6.4 (Optional) Assigning an RSA Public Key to the SSH Server...145
8.6.5 Enabling the SFTP Client...146
8.6.6 (Optional) Managing the Directory...147
8.6.7 (Optional) Managing the File...148
8.6.8 (Optional) Displaying the SFTP Client Command Help...149
8.6.9 Checking the Configuration...149
8.7 Configuration Examples...150
8.7.1 Example for Configuring Telnet Services...150
9 Device Maintenance...153
9.1 Introduction of Device Maintenance...154
9.1.1 Overview of Device Maintenance...154
9.1.2 Maintenance Features Supported by the ATN 910...154
9.2 Monitoring the Device Status...154
9.2.1 Displaying the System Version Information...154
9.2.2 Displaying Basic Information About the Router...155
9.2.3 Displaying the Electronic Label...155
9.2.4 Displaying the Threshold of the Memory Usage...156
9.2.5 Displaying the Threshold of CPU Usage...156
9.2.6 Displaying Alarm Information...156
9.2.7 Displaying the Board Temperature...157
9.2.8 Displaying the Board Voltage...157
9.2.9 Displaying the Power Supply Status...158
9.2.10 Displaying the Sequence Number of the MPU...158
9.3 Board Maintence ...158
9.3.1 Resetting a Board...158
10 Patch Management...160
10.1 Introduction of Patch Management...161
10.1.1 Overview of Patch Management...161
10.1.2 Patches Supported by the ATN 910...162
10.2 Checking the Running of Patch in the System...163
10.2.1 Establishing the Configuration Task...163
10.2.2 Checking the Running of Patch in the System...164
10.2.3 (Optional) Deleting a Patch...164
10.3 Loading a Patch...165
10.3.1 Establishing the Configuration Task...165
10.3.2 Loading a Patch...165
10.3.3 Checking the Configuration...166
10.4 Installing a Patch...166
10.4.2 Loading a Patch...167
10.4.3 Activating a Patch...167
10.4.4 Running a Patch...167
10.4.5 Checking the Configuration...168
10.5 (Optional) Unactivating the activating of Patch...168
10.5.1 Establishing the Configuration Task...168
10.5.2 Deactivating a Patch...169
10.5.3 Checking the Configuration...169
10.6 Configuration Examples of the Patch Management...169
10.6.1 Example for Installing a Patch...169
1
Establishment of the Configuration
Environment
About This Chapter
Before configuring ATN equipments, you need to establish the configuration environment.
1.1 Introduction to Establishment of the Configuration Environment
You can log in to ATN equipments through console port, or Telnet.
1.2 Logging In to the Device Through the Console Port
This section describes how to connect a terminal to a ATN equipment through the console port to establish the configuration environment.
1.3 Logging In to Device Through Telnet
This section describes how to connect a terminal to a ATN equipment through Telnet to establish the configuration environment.
1.4 Configuration Examples
This section provides examples for configuring users to log in to the ATN equipment through the console port or Telnet together with the configuration flowchart. The configuration examples explain networking requirements, configuration notes, and configuration roadmap.
1.1 Introduction to Establishment of the Configuration
Environment
You can log in to ATN equipments through console port, or Telnet.
1.1.1 Login Through the Console
When a ATN equipment is powered on for the first time or a ATN equipment needs to be locally configured, you can log in to the ATN equipment through the console port.
In the following cases, a ATN equipment can be configured only through the console port: l The ATN equipment is powered on for the first time.
l The subscriber cannot login through Telnet.
1.1.2 Login Through Telnet
If you know the IP address of a ATN equipment, you can log in to the ATN equipment through Telnet to perform local or remote configurations.
YYou need to pre-configure the IP addresses of interfaces, the user account, the authentication mode, and the incoming and outgoing call restriction through the console interface on the ATN equipment. Also, ensure that directly-connected or reachable ATN equipment exist between terminals and the ATN equipment.
The destination ATN equipment authenticates the user based on the configured parameters in three modes:
l Password authentication: indicates that the login user should enter the correct password. l AAA local authentication: indicates that the login user should enter the correct username
and password.
l None authentication: indicates that the login user need not enter the username or password. If the login succeeds, a command line prompt such as <HUAWEI> appears on the Telnet client interface.
Enter a command to check the running status of the ATN equipment or to configure the ATN equipment.
Enter "?" for help.
NOTE
Do not modify the IP address of the ATN equipment when you configure the ATN equipment through Telnet because the modification may terminate Telnet connection. Otherwise, set up the connection again after entering a new IP address.
1.2 Logging In to the Device Through the Console Port
This section describes how to connect a terminal to a ATN equipment through the console port to establish the configuration environment.
1.2.1 Establishing the Configuration Task
Before configuring log in to the ATN equipment through the console port, familiarize yourself with the applicable environment, complete the pre-configuration tasks, and obtain any data required for the configuration. This will help you complete the configuration task quickly and correctly.
Applicable Environment
If you log in to the ATN equipment for the first time or perform the local configuration, you need to log in to the ATN equipment through the console port.
NOTE
If you cannot use Telnet to log in to the ATN equipment, you need to log in to the ATN equipment through the console port.
Pre-configuration Tasks
Before configuring login to the ATN equipment through the console port, complete the following tasks:
l Preparing the PC/terminal (including serial port and RS-232 cables)
l Installing terminal emulation program on the PC (such as Windows XP HyperTerminal)
Data Preparation
To log in to the ATN equipment through the console port, you need the following data.
NOTE
If the AAA authentication mode is configured for users to log in to the ATN equipment through the console port, the correct username and password must be entered for a successful login.
No. Data
1 Terminal communication parameters l Baud rate
l Data bit l Parity l Stop bit
l Flow-control mode
2 (Optional) Username and password to be entered for a successful login in AAA authentication mode
1.2.2 Establishing the Physical Connection
This part describes how to physically connect a terminal to a ATN equipment before login to the ATN equipment through the console port.
Context
Do as follows on the ATN equipment:
Procedure
Step 1 Connect the COM port on the PC and the console port on the ATN equipment by a cable. Step 2 Power on all devices to perform a self-check.
----End
1.2.3 Configuring Terminals
This part describes how to configure the terminal before login to the ATN equipment through the console port.
Context
Do as follows on the PC:
Procedure
Step 1 Run the terminal emulation program on the PC, setting the communication parameters as follows:
l Baud rate: 38400 bps l Data bit: 8
l Stop bit: 1 l Parity: none l Flow control: none ----End
1.2.4 Logging In to the Device
This part describes how to log in to the ATN equipment through the console port.
Context
Do as follows on the PC:
Procedure
Step 1 Press Enter until a command line prompt such as <HUAWEI> appears. Now the user view is displayed for you to configure the ATN equipment.
NOTE
If the AAA or Password authentication mode is configured for users to log in to the ATN equipment through the console interface, the correct user name and password must be entered for a successful login. ----End
1.3 Logging In to Device Through Telnet
This section describes how to connect a terminal to a ATN equipment through Telnet to establish the configuration environment.
1.3.1 Establishing the Configuration Task
Before configuring login to the ATN equipment through Telnet, familiarize yourself with the applicable environment, complete the pre-configuration tasks, and obtain the required data. This can help you complete the configuration task quickly and accurately.
Applicable Environment
If you know the IP address of the ATN equipment, you can log in to the ATN equipment through Telnet for local or remote configuration.
Pre-configuration Tasks
Before configuring the ATN equipment through Telnet, complete the following tasks: l Powering on devices and performing a self-check
l Preparing the PC (including the serial port and Ethernet crossover/direct cable)
Data Preparation
To log in to the ATN equipment through Telnet, you need the following data.
No. Data
1 IP address of the PC
2 IP address of the Ethernet interface on the ATN equipment 3 User information accessed through Telnet:
l User name l Password
l Authentication mode
1.3.2 Establishing the Physical Connection
This part describes how to physically connect a terminal to a ATN equipment before login to the ATN equipment through Telnet.
Prerequisites
Procedure
Step 1 Connect the ATN equipment and the PC directly or connect the ATN equipment and the PC to the network through cables.
----End
1.3.3 Configuring Login User Parameters
This part describes how to configure user parameters for login to the ATN equipment through Telnet.
Context
Do as follows on the ATN equipment:
Procedure
Step 1 Configure the authentication mode of login users. Step 2 Configure the authority limitation of login user.
----End
Follow-up Procedure
For details, refer to Chapter 5 "User Management".
1.3.4 Logging In from the Telnet Client
This part describes how to log in to the ATN equipment through Telnet.
Context
Do as follows on the PC:
Procedure
Step 1 Run the Telnet program on the PC that functions as a client, and enter the IP address of the interface on the destination ATN equipment that provides the Telnet service.
Step 2 Enter the user name and password in the login window. After authentication, a command line prompt such as <HUAWEI> appears. Now enter the configuration environment in the user view. ----End
1.4 Configuration Examples
This section provides examples for configuring users to log in to the ATN equipment through the console port or Telnet together with the configuration flowchart. The configuration examples explain networking requirements, configuration notes, and configuration roadmap.
1.4.1 Example for Logging In Through the Console Port
In this example, you can configure the PC so as to log in to the ATN equipment through the console port.
Networking Requirements
Initialize the configuration of the ATN equipment when the ATN equipment is powered on for the first time.
Figure 1-1 Networking diagram of logging in through the console port
ATN PC
Configuration Roadmap
The configuration roadmap is as follows:
1. Connect the PC and the ATN equipment through the console port. 2. Configure the login on the PC end.
3. Log in to the ATN equipment.
Data Preparation
To complete the configuration, you need the terminal communication parameters (including baud rate, data bit, parity, stop bit, and flow control).
Procedure
Step 1 Connect the serial port of the PC (or terminal) to the console port of the ATN equipment through a standard RS-232 cable. The local configuration environment is established.
Step 2 Run the terminal emulation program on the PC. Set the terminal communication parameters to be 38400 bps, data bit to be 8, stop bit to be 1. Specify no parity and no flow control as shown from Figure 1-2 to Figure 1-4.
Figure 1-2 New connection
Figure 1-4 Setting the port communication parameters
Step 3 Power on the ATN equipment to perform a self-check and the system performs automatic configuration. When the self-check ends, you are prompted to press Enter until a command line prompt such as <HUAWEI> appears.
Enter the command to check the running status of the ATN equipment or configure the ATN equipment.
Enter "?" for help.
For details, refer to the following chapters. ----End
1.4.2 Example for Logging In Through Telnet
In this example, you can configure user parameters so as to log in to the ATN equipment from the PC or other terminals through Telnet.
Networking Requirements
You can log in to the ATN equipment on other network segments through the PC or other terminals to perform remote maintenance.
Figure 1-5 Establishing the configuration environment through WAN WAN ATN Target ATN PC
Configuration Roadmap
The configuration roadmap is as follows: 1. Establish the physical connection. 2. Configure user login parameters.
3. Log in to the ATN equipment from the client side.
Data Preparation
To complete the configuration, you need the following data l IP address of the PC
l IP address of the Ethernet interface on the ATN equipment
l User information accessed through Telnet (including the user name, password, and authentication mode)
Procedure
Step 1 Connect the PC and the ATN equipment to the network. Step 2 Configure login user parameters on the target ATN equipment.
# Configure the login address
<HUAWEI> system-view
[HUAWEI] interface ethernet 0/0/0 [HUAWEI-Ethernet0/0/0] undo shutdown
[HUAWEI-Ethernet0/0/0] ip address 202.38.160.92 255.255.0.0 [HUAWEI-Ethernet0/0/0] quit
# Configure login authentication mode
[HUAWEI] aaa
[HUAWEI-aaa] local-user huawei password cipher hello [HUAWEI-aaa] local-user huawei service-type telnet [HUAWEI-aaa] local-user huawei level 3
[HUAWEI-aaa] quit
[HUAWEI] user-interface vty 0 4
[HUAWEI-ui-vty0-14] authentication-mode aaa Step 3 Configure the client login.
Figure 1-6 Running the Telnet program on the PC
Click OK.
Enter the user name and password in the login window. After authentication, a command line prompt such as <HUAWEI> appears. Now enter the configuration environment in the user view. ----End
2
CLI Overview
About This Chapter
Users operate devices, that is, configure the device and perform routine maintenance, by entering command lines.
2.1 CLI Introduction
The command line interface (CLI) is the common tool for running commands.
2.2 Online Help
When you enter command lines or configure services, online help offers real-time help in addition to the configuration guide.
2.3 Features of Command Line Interface
You can edit command lines, display command lines, use the regular expression for command lines, and invoke historical commands.
2.4 Shortcut Keys
Using the system or user-defined shortcut keys makes it easier to enter commands.
2.5 Configuration Examples
2.1 CLI Introduction
The command line interface (CLI) is the common tool for running commands.
2.1.1 Command Line Interface
You can configure and manage a ATN equipment by using the CLI commands.
When a prompt appears, you enter the command line interface (CLI) and interact with ATN equipment through CLI.
The system provides a series of configuration commands. You can configure and manage the ATN equipment by entering commands on CLI.
The characteristics of CLI are as follows:
l Local or remote configuration through AUX port. l Local configuration through console port.
l Local or remote configuration through Telnet or Secure Shell (SSH). l A user interface view for specific configuration management.
l Hierarchical command protection for users of different levels, that is, running the commands of the corresponding level.
l None authentication, password authentication and Authentication, Authorization and Accounting (AAA) to prevent the unauthorized user from accessing the ATN equipment. l Entering "?" for online help at any time.
l Network testing commands such as tracert and ping for rapidly diagnosing a network. l Abundant debugging information to help in diagnosing the network.
l The telnet command for directly logging in to and manage other ATN equipment. l FTP service for file uploading and downloading.
l Running a history command, like DosKey.
l A command line interpreter provides intelligent command resolution methods such as key word fuzzy match and context conjunction. These methods make it easy for users to enter their commands.
NOTE
l The system supports the command with up to 512 characters. The command can be incomplete. l The system saves the incomplete command to the configuration files in the complete form; therefore,
the command may have more than 512 characters. When the system is restarted, however, the incomplete command cannot be restored. Therefore, pay attention to the length of the incomplete command.
2.1.2 Command Levels
The system adopts a hierarchical protection mode that has 16 command levels.
l Level 0-Visit level: Commands of this level include commands of network diagnosis tool (such as ping and tracert) and commands that start from the local device and visit external device (such as Telnet client side).
l Level 1-Monitoring level: Commands of this level, including the display commands, are used for system maintenance and fault diagnosis.
l Level 2-Configuration level: Commands of this level are service configuration commands that provide direct network service to the user, including routing and network layer commands.
l Level 3-Management level: Commands of this level are commands that influence the basic operation of the system and provide support to the service. They include file system commands, FTP commands, TFTP commands, configuration file switching commands, power supply control commands, backup board control commands, user management commands, level setting commands, system internal parameter setting commands, and debugging commands that are used for fault diagnosis.
CAUTION
Not all display commands are of the monitoring level. For example, the display current-configuration and display saved-current-configuration commands are of the management level. For the level of a command, see the ATN 910 Command Reference.
To implement efficient management, you can increase the command levels to 0-15. For the increase in the command levels, refer to Chapter 4 "Basic Configuration" Configuring Command Levels in the ATN 910 Configuration Guide - Basic Configurations.
NOTE
l The default command level may be higher than the command level defined according to the command rules in application.
l Login users have the same 16 levels as the command levels. The login users can use only the command of the levels that are equal to or lower than their own levels. For details of login user levels, refer to Chapter 5 "User Login."
Searching Commands Based on Command Levels
You can search for all commands of a specific level simultaneously. The procedure is as follows: 1. Open the command reference (.chm.) file.
Figure 2-1 Entering the search window
3. Enter a desired command level in the "Type in the word(s) to search for" textbox and click "List Topics". All commands of the specified level will be displayed as shown in Figure 2-2.
Figure 2-2 Searching commands based on a specific level
2.1.3 Command Line Views
The command line interface has different command views. All the commands are registered in one or more command views. You can run a command only when you enter the corresponding command view.
# Establish connection with the ATN equipment. If the ATN equipment adopts the default configuration, you can enter the user view with the prompt of <HUAWEI>.
<HUAWEI>
# Type system-view, and you can enter the system view.
<HUAWEI> system-view [HUAWEI]
# Type aaa in the system view, and you can enter the AAA view.
[HUAWEI] aaa [HUAWEI-aaa]
NOTE
The prompt <HUAWEI> indicates the default ATN equipment name. The prompt <> indicates the user view and the prompt [] indicates other views.
Some commands that are implemented in the system view can also be implemented in the other views; however, the functions that can be implemented are command view-specific. For example, the mpls command (for enabling MPLS) can be run in the system view to enable the MPLS capability globally. Although it can also be run in the interface view, the MPLS capability is enabled only on the interface.
2.2 Online Help
When you enter command lines or configure services, online help offers real-time help in addition to the configuration guide.
Context
The command line of ATN 910 provides three types of online help: l Full help
l Partial help
l Error Messages of the Command Line Interface
2.2.1 Full Help
When you enter a command line, you can view the description of keywords or parameters in the command line through the Full Help.
Context
You can obtain the full help of the command line in the following ways.
Procedure
l Enter "?" in any command line view to display all the commands and their simple descriptions.
<HUAWEI> ?
l Enter a command and "?" separated by a space. If the key word is at this position, all key words and their simple descriptions are displayed. For example:
<HUAWEI> language-mode ? Chinese Chinese environment English English environment
Chinese and English are keywords; Chinese environment and English environment describe the keywords respectively.
l Enter a command and "?" separated by a space, and if a parameter is at this position, the related parameter names and parameter descriptions are displayed. For example:
[HUAWEI] ftp timeout ?
INTEGER<1-35791> The value of FTP timeout, the default value is 30 minutes [HUAWEI] ftp timeout 35 ?
<cr>
In the preceding display, INTEGER<1-35791> describes the parameter value; The value of FTP timeout, the default value is 30 minutes is a simple description of the parameter usage; <cr> indicates that no parameter is at this position. The command is repeated in the next command line. You can press Enter to run the command.
2.2.2 Partial Help
When you enter a command line, you can obtain prompts on the keywords or parameters at the beginning of the string through the Partial Help.
Context
You can obtain the partial help of the command line in the following ways.
Procedure
l Enter a character string with a "?" closely following it to display all commands that begin with this character string.
<HUAWEI> d?
debugging delete dir display
l Enter a command and a character string with "?" closely following it to display all the key words that begin with this character string.
<HUAWEI> display b?
bfd bgp bootrom buffer bulk-stat
l Enter the first several letters of a key word in the command and then press Tab to display the complete key word on the condition that the letters uniquely identify the key word. Otherwise, if you continue to press Tab, different key words are displayed. You can select the needed key word.
----End
2.2.3 Error Messages of the Command Line Interface
If an entered command passes the syntax check, the system executes it. Otherwise, the system prompts an error message.
All the commands entered by the user are run correctly, if the grammar check has been passed. Otherwise, error messages are reported to the user. See Table 2-1 for the common error messages.
Table 2-1 Common error messages of the command line
Error messages Cause of the error
Unrecognized command The command cannot be found The key word cannot be found Wrong parameter Parameter type error
The parameter value exceeds the limit Incomplete command Incomplete command entered
Too many parameters Too many parameters entered Ambiguous command Indefinite parameters entered
2.3 Features of Command Line Interface
You can edit command lines, display command lines, use the regular expression for command lines, and invoke historical commands.
2.3.1 Editing
The editing function of command lines helps you edit command lines or obtain help by using certain keys.
The command line supports multi-line edition. The maximum length of each command is 512 characters.
Keys for editing that are often used are shown in Table 2-2. Table 2-2 Keys for editing
Key Function
Common key Inserts a character in the current position of the cursor if the editing buffer is not full and the cursor moves to the right. Otherwise, an alarm is generated.
Backspace Deletes the character on the left of the cursor that moves to the left. When the cursor reaches the head of the command, an alarm is generated.
Left cursor key ← or Ctrl_B
Moves the cursor to the left by the space of a character. When the cursor reaches the head of the command, an alarm is generated. Right cursor key → or
Ctrl_F
Moves the cursor to the right by the space of a character. When the cursor reaches the end of the command, an alarm is generated. Tab Press Tab after typing the incomplete key word and the system
runs the partial help:
l If the matching key word is unique, the system replaces the typed one with the complete key word and displays it in a new line with the cursor a space behind.
l If there are several matches or no match at all, the system displays the prefix first. Then you can press Tab to view the matching key word one by one. In this case, the cursor closely follows the end of the word and you can type a space to enter the next word.
l If a wrong key word is entered, press Tab and the word is displayed in a new line.
2.3.2 Displaying
All command lines have the same displaying feature. You can construct the displaying mode as required.
You can control the display of information on CLI as follows:
l Display prompt and help information in both Chinese and English.
l When the information displayed exceeds a full screen, it provides the pause function. In this case, the user has three choices as shown in Table 2-3.
Table 2-3 Keys for displaying
Key Function
Ctrl_C Stops the display and running of the command.
Space Continues to display the information on the next screen. Enter Continues to display the information on the next line.
2.3.3 Regular Expressions
The regular expression is a mode matching tool. You can construct the matching mode based on certain rules, and then match the mode with the target object.
The regular expression is an expression that describes a set of strings. It consists of common characters (such as letters from "a" to "z") and particular characters (also named metacharacters). The regular expression is a template according to which you can search for the required string. A regular expression can provide the following functions:
l Searching for and obtaining a sub-string that matches a rule in the string. l Substituting a string according to a certain matching rule.
Formal Language Theory of the Regular Expression
The regular expression consists of common characters and particular characters. l Common characters
Common characters are used to match themselves in a string, including all upper-case and lower-case letters, digits, punctuations, and special symbols. For example, a matches the letter "a" in "abc", 202 matches the digit "202" in "202.113.25.155", and @ matches the symbol "@" in "[email protected]".
l Particular characters
Particular characters are used together with common characters to match the complex or particular string combination. Table 2-4 describes particular characters and their syntax.
Table 2-4 Description of particular characters Particul ar characte r Syntax Example
\ Defines an escape character, which is used to mark the next character (common or particular) as the common character.
\* matches "*".
^ Matches the starting position of the string.
^10 matches "10.10.10.1" instead of "20.10.10.1".
$ Matches the ending position of the string.
1$ matches "10.10.10.1" instead of "10.10.10.2".
* Matches the preceding element zero or more times.
10* matches "1", "10", "100", and "1000".
(10)* matches "null", "10", "1010", and "101010".
+ Matches the preceding element one or more times
10+ matches "10", "100", and "1000".
(10)+ matches "10", "1010", and "101010".
? Matches the preceding element zero or one time.
10? matches "1" and "10". (10)? matches "null" and "10". . Matches any single character. 0.0 matches "0x0" and "020".
.oo matches "book", "look", and "tool".
() Defines a subexpression, which can be null. Both the expression and the subexpression should be matched.
100(200)+ matches "100200" and "100200200".
x|y Matches x or y. 100|200 matches "100" or "200". 1(2|3)4 matches "124" or "134", instead of "1234", "14", "1224", and "1334".
[xyz] Matches any single character in the regular expression.
[123] matches the character 2 in "255".
[^xyz] Matches any character that is not contained within the brackets.
[^123] matches any character except for "1", "2", and "3".
[a-z] Matches any character within the specified range.
[0-9] matches any character ranging from 0 to 9.
[^a-z] Matches any character beyond the specified range.
[^0-9] matches all non-numeric characters.
Particul ar characte r
Syntax Example
_ Matches a comma "," left brace "{", right brace "}", left parenthesis "(", and right parenthesis ")".
Matches the starting position of the input string.
Matches the ending position of the input string. Matches a space. _2008_ matches "2008", "space 2008 space", "space 2008", "2008 space", ",2008,", "{2008}", "(2008)", "{2008", and "(2008}". NOTE
Unless otherwise specified, all characters in the preceding table are displayed on the screen.
l Degeneration of particular characters
Certain particular characters, when being placed at the following positions in the regular expression, degenerate to common characters.
– The particular characters following "\" is transferred to match particular characters themselves.
– The particular characters "*", "+", and "?" placed at the starting position of the regular expression. For example, +45 matches "+45" and abc(*def) matches "abc*def". – The particular character "^" placed at any position except for the start of the regular
expression. For example, abc^ matches "abc^".
– The particular character "$" placed at any position except for the end of the regular expression. For example, 12$2 matches "12$2".
– The right bracket such as ")" or "]" being not paired with its corresponding left bracket "(" or "[". For example, abc) matches "abc)" and 0-9] matches "0-9]".
NOTE
Unless otherwise specified, degeneration rules are applicable when preceding regular expressions serve as subexpressions within parentheses.
l Combination of common and particular characters
In actual application, a regular expression combines multiple common and particular characters to match certain strings.
Specifying a Filtering Mode in Command
CAUTION
The ATN 910 uses a regular expression to implement the filtering function of the pipe character. A display command supports the pipe character only when there is excessive output information. When the output information is queried according to the filtering conditions, the first line of the command output starts with the information containing the regular expression.
The command can carry the parameter | count to display the number of matching entries. The parameter | count can be used together with other parameters.
For the commands supporting regular expressions, the three filtering methods are as follows: l | begin regular-expression: displays the information that begins with the line that matches
regular expression.
l | exclude regular-expression: displays the information that excludes the lines that match
regular expression.
l | include regular-expression: displays the information that includes the lines that match
regular expression.
NOTE
The value of regular-expression is a string of 1 to 255 characters.
Specify a Filtering Mode when Information is Displayed
When a lot of information is displayed, you can specify a filtering mode in the prompt "---- More ----".
l /regular-expression: displays the information that begins with the line that matches regular
expression.
l -regular-expression: displays the information that excludes lines that match regular
expression.
l +regular-expression: displays the information that includes lines that match regular
expression.
2.3.4 History Commands
The command line interface provides a function similar to DosKey, which can automatically save historical commands. You can invoke the historical commands saved on the command line interface at any time and run them again.
By default, the system saves 10 history commands at most for each user. The operations are as shown in Table 2-5.
Table 2-5 Access the history commands
Action Key or Command Result
Display the history commands.
display history-command
Display the history commands entered by users.
Access the last history command.
Up cursor key↑ or Ctrl_P
Display the last history command if there is an earlier history command. Otherwise, a bell is generated.
Access the next history
command.
Down cursor key ↓ or Ctrl_N
Display the next history command if there is a later history command. Otherwise, the command is cleared and a bell is generated.
NOTE
On the HyperTerminal of Windows 9X, cursor key ↑ is invalid as the HyperTerminals of Windows 9X define the keys differently. In this case, you can replace the cursor key ↑ with Ctrl_P.
When you use the history commands, note the following:
l The saved history commands are the same as that those entered by users. For example, if the user enters an incomplete command, the saved command also is incomplete.
l If the user runs the same command several times, the earliest command is saved. If the command is entered in different forms, they are considered as different commands. For example, if the display ip routing-table command is run several times, only one history command is saved. If the disp ip routing command and the display ip routing-table command are run, two history commands are saved.
2.3.5 Batch Command Execution
By running pre-defined command lines in batches, you can simplify the operation of entering common commands and improve efficiency.
Context
Log in to the ATN equipment from the client and do as follows:
Procedure
Step 1 Run the batch-cmd edit to edit commands to be run in batches. The batch-cmd edit command can be used by only one user at a time.
The maximum length of a command (including the incomplete command) to be entered is 512 characters.
When editing commands, press Enter to complete the editing of each command.
NOTE
After running the batch-cmd edit command to successfully edit the commands to be executed in batches, the system deletes the original commands to be run in batches.
The commands that are already edited are saved in memory and are deleted for ever when the system is restarted.
Step 2 After all commands are edited, you can press the shortcut buttons Ctrl+Z to exit the editing state and return to the user view.
Step 3 Run the batch-cmd execute to execute commands in batches.
The batch-cmd execute command can be used by only one user at a time.
The sequence of running commands is the same as the sequence of editing commands. ----End
2.4 Shortcut Keys
2.4.1 Classifying Shortcut Keys
There are two types of shortcut keys, namely, system shortcut keys and user-defined shortcut keys. Familiarize yourself with shortcut keys so as to use them accurately.
The shortcut keys in the system are classified into the following types:
l User-oriented and user-defined shortcut keys: CTRL_G, CTRL_L, CTRL_O, and CTRL_U. The user can correlate these shortcut keys with any commands. When the shortcut keys are pressed, the system automatically runs the corresponding command. For details of defining the shortcut keys, see 2.4.2 Defining Shortcut Keys.
l System-defined shortcut keys: These shortcut keys with fixed functions are defined by the system. Table 2-6 lists the system-defined shortcut keys.
NOTE
Different terminal software defines these keys differently. Therefore, the shortcut keys on the terminal may be different from those listed in this section.
Table 2-6 System-defined shortcut keys
Key Function
CTRL_A The cursor moves to the beginning of the current line. CTRL_B The cursor moves to the left by the space of a character. CTRL_C Terminates the running function.
CTRL_D Deletes the character where the cursor lies. CTRL_E The cursor moves to the end of the current line.
CTRL_F The cursor moves to the right by the space of a character. CTRL_H Deletes one character on the left of the cursor.
CTRL_K Stops the creation of the outbound connection.
CTRL_N Displays the next command in the history command buffer. CTRL_P Displays the previous command in the history command buffer. CTRL_R Repeats the display of the information of the current line. CTRL_T Terminates the outbound connection.
CTRL_V Pastes the contents on the clipboard.
CTRL_W Deletes a character string or character on the left of the cursor. CTRL_X Deletes all the characters on the left of the cursor.
CTRL_Y Deletes all the characters on the right of the cursor. CTRL_Z Returns to the user view.
CTRL_] Terminates the inbound or redirection connections. ESC_B The cursor moves to the left by the space of a word.
Key Function
ESC_D Deletes a word on the right of the cursor.
ESC_F The cursor moves to the right to the end of next word. ESC_N The cursor moves downward to the next line.
ESC_P The cursor moves upward to the previous line.
ESC_SHIFT_< Sets the position of the cursor to the beginning of the content to be pasted into the clipboard.
ESC_SHIFT_> Sets the position of the cursor to the end of the content to be pasted into the clipboard.
2.4.2 Defining Shortcut Keys
Only management-level users have the rights to define shortcut keys.
NOTE
When defining the shortcut keys, use double quotation marks to define the command if this command contains several commands words, that is, if spaces exist in the command.
Configure as follows in the system view.
Action Command
Define shortcut keys hotkey { CTRL_G | CTRL_L | CTRL_O | CTRL_U }
command-text
By default, CTRL_G, CTRL_L and CTRL_O correspond to the following commands respectively:
l CTRL_G: display current-configuration l CTRL_L: display ip routing-table l CTRL_O: undo debugging all
The default commands of the other shortcut keys are null.
2.4.3 Use of Shortcut Keys
You can use the shortcut key at any position that allows a command to be entered. The system executes an entered shortcut key and displays the corresponding command on the screen in the same way as you enter a complete command.
l If you have typed part of a command and have not pressed Enter, you can press the shortcut keys to clear the entered command and display the full corresponding command. This operation has the same effect as that of deleting all commands and then re-entering the complete command.
l The shortcut keys are run as the commands, the syntax is recorded to the command buffer and log for fault location and querying.
NOTE
The terminal in use may affect the functions of the shortcut keys. For example, if the customized shortcut keys of the terminal conflict with those of the ATN equipment, the input shortcut keys are captured by the terminal program and hence the shortcut keys do not function.
Run the following command in any view to display the use of shortcut keys.
Action Command
Check the usage of shortcut keys. display hotkey
2.5 Configuration Examples
This section provides several examples for using command lines.
2.5.1 Example for Running Commands in Batches
This part provides an example for running commands in batches. In this example, by editing the commands to be run in batches, you can configure the system to automatically run the commands in batches.
Context
During the preventive maintenance inspection (PMI), you can run commands in batches. That is, enter all PMI commands once and then send all the command output information to the PMI tool, which can improve the PMI efficiency.
Log in to the ATN equipment and do as follows:
Procedure
Step 1 Edit the display users, display startup, and display clock commands to be run in batches. <HUAWEI> batch-cmd edit
Info: Begin editing batch commands. Press "Ctrl+Z" to abort this session. display users
display startup display clock <HUAWEI>
Step 2 Run the commands in batches. <HUAWEI> batch-cmd execute
<HUAWEI>batch-cmd execute command: display users
User-Intf Delay Type Network Address AuthenStatus AuthorcmdFlag 0 CON 0 00:00:44 pass no Username : Unspecified
<HUAWEI>batch-cmd execute command: display startup MainBoard:
Startup system software:
Next startup system software: NULL
Startup saved-configuration file: flash:/vrpcfg.zip Next startup saved-configuration file: flash:/vrpcfg.zip Startup paf file: NULL
Next startup paf file: NULL Startup license file: NULL Next startup license file: NULL Startup patch package: NULL Next startup patch package: NULL <HUAWEI>batch-cmd execute command: display clock 2009-11-23 14:27:20-08:00
Monday
Time Zone(China Standard Time) : UTC-08:00 <HUAWEI>batch-cmd execute finished. ----End
2.5.2 Example for Using Tab
You can obtain prompts on keywords or check whether the entered keywords are correct by pressing Tab.
Context
Tab can be used in three ways as shown in the following example.
The matching key word is unique after the incomplete key word is typed.
1. Type the incomplete key word.
[HUAWEI]
info-2. Press Tab.
The system replaces the typed one with the complete key word and displays it in a new line with the cursor leaving a space behind
[HUAWEI] info-center
There are several matches or no match after the incomplete key word is typed.
info-center can be followed by three key words.[HUAWEI] info-center log?
logbuffer logfile loghost
1. Type the incomplete key word.
[HUAWEI] info-center l
2. Press Tab.
[HUAWEI] info-center log
The system displays the prefix first. The prefix in this example is "log". Continue to press Tab. The cursor is closely following the end of the word.
[HUAWEI] info-center loghost [HUAWEI] info-center logbuffer [HUAWEI] info-center logfile
Stop pressing Tab after the key word logfile that you need is displayed. 3. Type a space to enter the next word "channel".
A wrong key word is typed.
1. Type a wrong key word "loglog".
[HUAWEI] info-center loglog
2. Press Tab.
[HUAWEI] info-center loglog
The incorrect input "loglog" is displayed in a new line.
2.5.3 Example for Using Shortcut Keys
If the login ATN equipment is defined with shortcut keys, the shortcut keys can be used by any user regardless of the user level.
Context
Do as follows on the login ATN equipment:
Procedure
Step 1 Correlate Ctrl_U with the display ip routing-table command and run the shortcut keys. <HUAWEI> system-view
[HUAWEI] hotkey ctrl_u "display ip routing-table" Step 2 Press Ctrl+U when the prompt [HUAWEI] appears.
[HUAWEI] display ip routing-table
Route Flags: R - relay, D - download to fib
---Routing Tables: Public
Destinations : 8 Routes : 8
Destination/Mask Proto Pre Cost Flags NextHop Interface 51.51.51.9/32 Direct 0 0 D 127.0.0.1 InLoopBack0 100.2.0.0/16 Direct 0 0 D 100.2.150.51 Ethernet0/0/0 100.2.150.51/32 Direct 0 0 D 127.0.0.1 InLoopBack0 100.2.255.255/32 Direct 0 0 D 127.0.0.1 InLoopBack0 127.0.0.0/8 Direct 0 0 D 127.0.0.1 InLoopBack0 127.0.0.1/32 Direct 0 0 D 127.0.0.1 InLoopBack0 127.255.255.255/32 Direct 0 0 D 127.0.0.1 InLoopBack0 255.255.255.255/32 Direct 0 0 D 127.0.0.1 InLoopBack0 ---End
2.5.4 Copying Commands Using Shortcut Keys
You can copy commands by using shortcut keys in any view.
Context
Do as follows on the login ATN equipment:
Procedure
Step 1 Move the cursor to the beginning of the command and press ESC_Shift_<. Move the cursor to the end and press ESC_Shift_>.
Step 2 Run the display clipboard command to view the contents on the clipboard. <HUAWEI> display clipboard
--- CLIPBOARD---display ip routing-table
Step 3 Enter the command in any view, and press Ctrl_V to paste the contents of clipboard. <HUAWEI> display ip routing-table
3
Basic Configuration
About This Chapter
This chapter describes how to configure the basic system environment and the basic user environment.
3.1 Basic Configuration Introduction
This section describes the meaning and scope of the basic configuration.
3.2 Configuring the Basic System Environment
This section describes how to configure the basic system environment according to user habits or the requirements of the actual environment.
3.3 Configuring Basic User Environment
This section describes the configuration of the basic user environment for user level switching.
3.4 Displaying System Status Messages
This section describes the display commands that are used for displaying basic system configurations.
3.1 Basic Configuration Introduction
This section describes the meaning and scope of the basic configuration.
Before configuring services, users often need to perform basic configurations for actual operation and maintenance.
The ATN 910 provides configurations of two kinds of basic environments:
l Basic system environment: includes the language mode, host name, system name, system time, header text, and command level for actual environment.
l Basic user environment: includes password for changing levels and the terminal lock.
3.2 Configuring the Basic System Environment
This section describes how to configure the basic system environment according to user habits or the requirements of the actual environment.
3.2.1 Establishing the Configuration Task
Before configuring the basic system environment, familiarize yourself with the applicable environment, complete the pre-configuration tasks, and obtain the required data. This can help you complete the configuration task quickly and accurately.
Applicable Environment
Before configuring the services, you need to configure the basic system environments to meet the requirements of the actual environments.
By default, the ATN 910 supports commands of Level 0 to Level 3, namely, visit level, monitoring level, configuration level, and management level.
If the user needs to define more levels, or refine management privileges on the device, the user can extend the range of command line level from the range of Level 0 to Level 3 to the range of Level 0 to Level 15.
Pre-configuration Tasks
Before configuring basic system environment, complete the following task: l Powering on the ATN equipment
Data Preparation
To configure basic system environment, you need the following data.
No. Data
1 Language mode 2 System time
No. Data
3 Host name
4 Login information 5 Command level
3.2.2 Switching the Language Mode
You can switch between the Chinese mode and the English mode as required.
Context
Do as follows on the ATN equipment:
Procedure
Step 1 Run:
language-mode language-name The language mode is switched. By default, the English mode is used.
The help information on the ATN equipment can be in English and in Chinese. The language mode is stored in the system software and need not be loaded.
----End
3.2.3 Configuring the Equipment Name
You can change the equipment name as required. The new equipment name takes effect immediately.
Context
Do as follows on the ATN equipment:
Procedure
Step 1 Run: system-view
The system view is displayed. Step 2 Run:
sysname host-name
The equipment name is set.