Top Banner
ISSUE ISSUE Fixed Network Curriculum Development Section Fixed Network Curriculum Development Section ODO000103 File Management System ODO000103 File Management System 1.0 1.0
24

File Management System ISSUE1

Apr 11, 2015

Download

Documents

api-3758431
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: File Management System ISSUE1

ISSUEISSUE

Fixed Network Curriculum

Development Section

Fixed Network Curriculum

Development Section

ODO000103 File Management

System

ODO000103 File Management

System

1.01.0

Page 2: File Management System ISSUE1

Confidential Information of Huawei.

No Spreading without Permission.Security Level: Internal

2

Objectives Objectives

At the end of this session, you should be able to:

� Use the file system

� Use FTP/TFTP

� Manage the configuration file

Page 3: File Management System ISSUE1

Confidential Information of Huawei.

No Spreading without Permission.Security Level: Internal

3

Contents Contents

Chapter 1 File SystemChapter 1 File SystemChapter 1 File SystemChapter 1 File System

Chapter 2 FTP/TFTP OperationChapter 2 FTP/TFTP OperationChapter 2 FTP/TFTP OperationChapter 2 FTP/TFTP Operation

Chapter 3 Chapter 3 Chapter 3 Chapter 3 ConfigurationConfigurationConfigurationConfiguration File ManagementFile ManagementFile ManagementFile Management

Page 4: File Management System ISSUE1

Confidential Information of Huawei.

No Spreading without Permission.Security Level: Internal

4

File SystemFile System

�Overview

�Directory operations

� File operations

Page 5: File Management System ISSUE1

Confidential Information of Huawei.

No Spreading without Permission.Security Level: Internal

5

Overview Overview

� The file system allows you to manage the files and directories,

such as create a file system, create, delete, modify, and

rename a file and directory, and display the contents of a file.

Page 6: File Management System ISSUE1

Confidential Information of Huawei.

No Spreading without Permission.Security Level: Internal

6

Directory Operations Directory Operations

� Create a directory

� mkdir directory

<Quidway> mkdir dd

Created dir dd.

� Delete a directory

� rmdir directory

<Quidway> rmdir test

Rmdir test?[Y/N]:y

% Removed directory test

� Display the current working directory

� pwd

<Quidway> pwd

flash:/test

All the

commands are

performed in

the user view.

Page 7: File Management System ISSUE1

Confidential Information of Huawei.

No Spreading without Permission.Security Level: Internal

7

Directory Operations (Continued) Directory Operations (Continued)

� Display directories or files details

� dir

<Quidway> dir flash:/test/

Directory of flash:/test/

0 -rw- 4 Mar 01 2004 21:19:27 sample.txt

1 -rw- 80 Mar 09 2004 09:47:36 test.txt

� Change the current directory

� cd directory

<Quidway> cd test

<Quidway> pwd

flash:/test

All the

commands are

performed in

the user view.

Page 8: File Management System ISSUE1

Confidential Information of Huawei.

No Spreading without Permission.Security Level: Internal

8

File Operations File Operations

� Delete a file

� delete [ /unreserved ] filename

<Quidway> delete flash:/test/test.txt

Delete flash:/test/test.txt?[Y/N]

<Quidway>

� Undelete a deleted file

� undelete filename

<Quidway> undelete sample.bak

Undelete flash:/test/sample.bak ?[Y/N]:y

% Undeleted file flash:/test/sample.bak

� Empty the recycle bin

� reset recycle-bin [ filename ]

<Quidway> reset recycle-bin

All the

commands are

performed in

the user view.

Page 9: File Management System ISSUE1

Confidential Information of Huawei.

No Spreading without Permission.Security Level: Internal

9

File Operations (Cont.) File Operations (Cont.)

� Display the contents of a file

� more filename

<Quidway> more test.txt

AppWizard has created this test application for you.

This file contains a summary of what you will find in each of the files that

make up your test application.

Test.dsp

� Copy a file

� copy source-filename destination-filename

<Quidway> copy hda1:/sample.txt flash:/

Copy hda1:/sample.txt to flash:/sample.txt ?[Y/N]:Y

% Copyed file hda1:/sample.txt to flash:/sample.txt

All the

commands are

performed in

the user view.

Page 10: File Management System ISSUE1

Confidential Information of Huawei.

No Spreading without Permission.Security Level: Internal

10

Storage Device Operations Storage Device Operations

� Format a storage device

� format device-name

<Quidway> format flash:

All data on flash: will be lost , proceed with format ? [Y/N]:y/

%Format flash: completed.

� Fix the storage device that malfunctions in the file system.

� fixdisk device-name

<Quidway> fixdisk flash:

Fixdisk flash: will take long time if needed.

Fixdisk flash: completed.

All the

commands are

performed in

the user view.

Page 11: File Management System ISSUE1

Confidential Information of Huawei.

No Spreading without Permission.Security Level: Internal

11

Contents Contents

Chapter 1 File SystemChapter 1 File SystemChapter 1 File SystemChapter 1 File System

Chapter 2 FTP/TFTP OperationChapter 2 FTP/TFTP OperationChapter 2 FTP/TFTP OperationChapter 2 FTP/TFTP Operation

Chapter 3 Configuration File ManagementChapter 3 Configuration File ManagementChapter 3 Configuration File ManagementChapter 3 Configuration File Management

Page 12: File Management System ISSUE1

Confidential Information of Huawei.

No Spreading without Permission.Security Level: Internal

12

Chapter 2 NE5000E/NE80E FTP/TFTP OperationsChapter 2 NE5000E/NE80E FTP/TFTP Operations

� Introduction to FTP/TFTP

� FTP operations

�TFTP operations

Page 13: File Management System ISSUE1

Confidential Information of Huawei.

No Spreading without Permission.Security Level: Internal

13

Introduction to FTP/TFTP Introduction to FTP/TFTP

� FTP is an application layer protocol in the TCP/IP protocol

suite, designed to provide file transport services between

remote hosts. The FTP protocol is implemented based on an

appropriate file system, and usually on TCP.

� TFTP (Trivial File Transfer Protocol) is a simple file transfer

protocol. Compared with FTP, TFTP has no complex

interactive storage interface and authentication control, and is

suitable for use in the environment where no complex

interaction is required between the client and server. It is

implemented based on UDP.

Page 14: File Management System ISSUE1

Confidential Information of Huawei.

No Spreading without Permission.Security Level: Internal

14

FTP OperationsFTP Operations

� Routers and switches Support FTP Server and FTP Client.

� TFTP Protocol Configuration

� Start the FTP server

� ftp server enable (System View)

� Configure the Authentication and Authorization of the FTP server

� Only these users who have passed the authentication and been authorized

can use the services of the FTP server.

� Below is an example of configuring the authentication and authorization of

the FTP server (aaa is available on AR46 series routers).

– [Quidway] aaa

– [Quidway-aaa] local-user quidway

– [Quidway-aaa] local-user quidway service-type ftp

– [Quidway-aaa] local-user quidway password simple huawei

– [Quidway-aaa] local-user quidway ftp-directory flash:/ftp/quidway

Page 15: File Management System ISSUE1

Confidential Information of Huawei.

No Spreading without Permission.Security Level: Internal

15

FTP Operations (Continued) FTP Operations (Continued)

� Display and debug the FTP server

� Display the FTP server

� display ftp-server

<Quidway> display ftp-server

FTP server is running

Max user number 5

User count 0

T imeout value(in minute) 30

� Display on-line FTP users

� display ftp-users

<Quidway> display ftp-users

username host port idle topdir

ftp 192.168.200.100 1130 0 hda1:

Page 16: File Management System ISSUE1

Confidential Information of Huawei.

No Spreading without Permission.Security Level: Internal

16

TFTP Operations TFTP Operations

� VRP can only be the client terminal of TFTP and perform transmission

in binary mode.

� TFTP protocol configuration

� Download files through TFTP

� tftp ip-address get source-filename [ destination-filename ] (in user view)

� An example for downloading files via TFTP:

� Download the vrpcfg.txt file in the root directory of the TFTP server to the

local hard disk. The IP address of the TFTP server is 1.1.254.2. Save the

file as vrpcfg.bak after downloading.

� <Quidway> tftp 1.1.254.2 get vrpcfg.txt vrpcfg.bak

Page 17: File Management System ISSUE1

Confidential Information of Huawei.

No Spreading without Permission.Security Level: Internal

17

TFTP Operations (Continued) TFTP Operations (Continued)

� Upload files through the TFTP

� tftp ip-address put source-filename [ destination-filename ] (user View)

� An example for TFTP uploading files

� Upload the vrpcfg.txt file in the root directory of the Flash to the default

path of the TFTP server. The IP address of the TFTP server is 1.1.254.2.

Save the file as vrpcfg.bak on the TFTP server.

� <Quidway> tftp 1.1.254.2 put flash:/vrpcfg.txt vrpcfg.bak

Page 18: File Management System ISSUE1

Confidential Information of Huawei.

No Spreading without Permission.Security Level: Internal

18

Contents Contents

Chapter 1 File SystemChapter 1 File SystemChapter 1 File SystemChapter 1 File System

Chapter 2 FTP/TFTP OperationChapter 2 FTP/TFTP OperationChapter 2 FTP/TFTP OperationChapter 2 FTP/TFTP Operation

Chapter 3 Configuration File ManagementChapter 3 Configuration File ManagementChapter 3 Configuration File ManagementChapter 3 Configuration File Management

Page 19: File Management System ISSUE1

Confidential Information of Huawei.

No Spreading without Permission.Security Level: Internal

19

Chapter 3 NE5000E/NE80E Configuration File

Management

Chapter 3 NE5000E/NE80E Configuration File

Management

� Introduction to the configuration file

�Use the configuration file

Page 20: File Management System ISSUE1

Confidential Information of Huawei.

No Spreading without Permission.Security Level: Internal

20

Introduction to the Configuration File Introduction to the Configuration File

� Contents and format of the configuration file

� The configuration file is saved in the text format

� In general, these sections are arranged in the sequence of global

configuration, physical interface configuration, logical interface

configuration, and route protocol configuration.

� Display the current and initial configurations of the router

� Display the current configuration of the router

� display current-configuration [ controller | interface interface-type

[ interface-number ] | configuration [ configuration-type ] ]

� The corresponding name in the CISCO IOS: show running-configuration

� Display the initial configuration of the router

� display saved-configuration

� The corresponding name in the CISCO IOS: show startup-configuration

� Note: The current-configuration is the configuration file running in the RAM,

while the saved-configuration is the file saved in the Flash. The performance

of the command SAVE means to copy the current-configuration file to the

saved-configuration file.

Page 21: File Management System ISSUE1

Confidential Information of Huawei.

No Spreading without Permission.Security Level: Internal

21

Introduction to the Configuration File (Continued)Introduction to the Configuration File (Continued)

� Display the running configuration of the current view/interface view

(HUAWEI features)

� display this

� Execute the command in the current view to display the running

configuration of the view; execute the command in the current interface

view to display the configuration information of the interface.

� Modify and save the current configuration

� save [ cfgfile ]

� The corresponding command in the Cisco IOS: copy running-

configuration startup-configuration

� The default name of the saved file in the Flash is vrpcfg.txt (or

vrpcfg.cfg). You can also specify a name for the saved file, so that you

can save multiple configuration files in the FLASH, and select the

desired one to load when starting up the equipment.

Page 22: File Management System ISSUE1

Confidential Information of Huawei.

No Spreading without Permission.Security Level: Internal

22

Introdution to the Configutation File (Continued) Introdution to the Configutation File (Continued)

� Erase the configuration file

� reset saved-configuration

� The corresponding command in the Cisco IOS: erase

� This command only deletes the configuration files saved in the

Flash. To delete the running configuration in RAM, you must

reboot the equipment.

Warning: the command will empty all the configuration files,

so it should be used cautiously.

Page 23: File Management System ISSUE1

Confidential Information of Huawei.

No Spreading without Permission.Security Level: Internal

23

配置文件使用配置文件使用配置文件使用配置文件使用配置文件使用配置文件使用配置文件使用配置文件使用

� Configure the file name of the system software used for the next

startup

� startup system-software sysfile

� allows you to save multiple VRP applications in the storage device, and

to set the system file name for next startup

� Configure the file name of the configuration file used for next startup

� startup saved-configuration cfgfile

� allows to you to save multiple configuration files in the storage device,

and to set the configuration file name for next startup

� Compare the configuration files saved in the storage with the current

configuration

� compare configuration [ line-number1 line-number2 ]

� The line-number1 is a running-configuration file, while the line-number2

is a startup-configuration file

Page 24: File Management System ISSUE1

Confidential Information of Huawei.

No Spreading without Permission.Security Level: Internal

24