交换、路由与防火墙手记(2)

由用户视图进入系统视图

<Quidway>system-view
System View: return to User View with Ctrl+Z.

<Quidway>mkdir temp
...

在VRP平台上输入常用LINUX命令
%Created dir unit1>flash:/temp.


<Quidway>rm temp
Rmdir unit1>flash:/temp?[Y/N]:y
...
%Removed directory unit1>flash:/temp.


<Quidway>pwd
unit1>flash:


<Quidway>dir
Directory of unit1>flash:/


   1 (*)   -rw-   4137527  Aug 25 2006 12:00:00   s3900si-vrp310-r1602p01.bin
   2 (*)   -rw-    867258  Aug 25 2006 12:00:00   hw-http3.1.8-0033sp01.web
   3       -rw-      2211  Aug 25 2006 12:00:00   vrpcfg.def
   4 (*)   -rw-      1603  Apr 02 2000 00:46:35   vrpcfg.cfg


7239 KB total (2217 KB free)


(*) -with main attribute   (b) -with backup attribute
(*b) -with both main and backup attribute


下面显示所有文件

<Quidway>dir /all
Directory of unit1>flash:/


   1 (*)   -rw-   4137527  Aug 25 2006 12:00:00   s3900si-vrp310-r1602p01.bin
   2 (*)   -rw-    867258  Aug 25 2006 12:00:00   hw-http3.1.8-0033sp01.web
   3       -rw-      2211  Aug 25 2006 12:00:00   vrpcfg.def
   4 (*)   -rw-      1603  Apr 02 2000 00:46:35   vrpcfg.cfg
   5       -rwh       151  Apr 02 2000 00:01:01   private-data.txt


7239 KB total (2217 KB free)


本博客所有内容是原创,如果转载请注明来源

http://blog.csdn.net/myhaspl/



<Quidway>mkdir temp

...

%Created dir unit1>flash:/temp.


<Quidway>

   


<Quidway>rename temp myhaspl

Rename unit1>flash:/temp to unit1>flash:/myhaspl?[Y/N]:y

...

%Renamed file unit1>flash:/temp to unit1>flash:/myhaspl.

<Quidway>

<Quidway>dir /all

Directory of unit1>flash:/


   1 (*)   -rw-   4137527  Aug 25 2006 12:00:00   s3900si-vrp310-r1602p01.bin

   2 (*)   -rw-    867258  Aug 25 2006 12:00:00   hw-http3.1.8-0033sp01.web

   3       -rw-      2211  Aug 25 2006 12:00:00   vrpcfg.def

   4 (*)   -rw-      1603  Apr 02 2000 00:46:35   vrpcfg.cfg

   5       -rwh       151  Apr 02 2000 00:01:01   private-data.txt

   6       drw-         -  Apr 02 2000 00:27:39   myhaspl


7239 KB total (2216 KB free)


(*) -with main attribute   (b) -with backup attribute

(*b) -with both main and backup attribute


<Quidway>


备份配置文件到交换机存储器的其它目录

<Quidway>copyvrpcfg.cfg flash:/myhaspl/backup.cfg

Copyunit1>flash:/vrpcfg.cfg to unit1>flash:/myhaspl/backup.cfg?[Y/N]:y

 

%Copy fileunit1>flash:/vrpcfg.cfg to unit1>flash:/myhaspl/backup.cfg...Done.


恢复配置文件

<Quidway>copy flash:/myhaspl/backup.cfg vrpcfg.cfg

<Quidway>reboot


注意,根目录是flash:/,通过dir命令可以显示

<Quidway>dir

Directory ofunit1>flash:/

 

   1 (*)  -rw-   4137527  Aug 25 2006 12:00:00   s3900si-vrp310-r1602p01.bin

   2 (*)  -rw-    867258  Aug 25 2006 12:00:00   hw-http3.1.8-0033sp01.web

   3      -rw-      2211  Aug 25 2006 12:00:00   vrpcfg.def

   4 (*)  -rw-      1603  Apr 02 2000 00:46:35   vrpcfg.cfg

   5      drw-         -  Apr 02 2000 00:27:39   myhaspl

 

7239 KB total(2211 KB free)

 

(*) -withmain attribute   (b) -with backupattribute

(*b) -withboth main and backup attribute


 

<Quidway>

显示vrp的版本号及路由器的软硬件信息

 

<Quidway>dispversion

HuaweiVersatile Routing Platform Software.

VRP Software,Version 3.10, Release 1602P01

Copyright (c)1998-2008 Huawei Technologies Co., Ltd. All rights reserved.

QuidwayS3928P-SI uptime is 0 week, 0 day, 1 hour, 9 minutes

 

QuidwayS3928P-SI with 1 Processor

64M     bytes DRAM

8196K   bytes Flash Memory

ConfigRegister points to FLASH

 

HardwareVersion is REV.C

CPLD Versionis CPLD 001

BootromVersion is 513

[Subslot 0]24 FE Hardware Version is REV.C

[Subslot 1] 4GE  Hardware Version is REV.C

 

 

其中,VRP核心版本号为3.10

VRP Software,Version 3.10

S3900的交换机核心芯片为:可编程芯片

CPLD Versionis CPLD 001

交换机硬件基本配置为:

1个处理器,64M内存,8196Kflash存储器

QuidwayS3928P-SI with 1 Processor

64M     bytes DRAM

8196K   bytes Flash Memory

你可能感兴趣的:(交换、路由与防火墙手记(2))