1、中兴设备实验一(三层交换机基本操作和日常维护)

  • 格式:doc
  • 大小:33.50 KB
  • 文档页数:3

三层交换机基日常本操作和维护
1、设置系统名称
ZXR10>-----普通用户模式(用户模式)
ZXR10#------特权模式
ZXR10(config)#--------全局模式
ZXR10(config)#interface fei_1/1 //进入交换机fei_0/1口 ZXR10(config-if)#-------------子接口模式
ZXR10>enable //进入特权模式ZXR10#configure terminal //进入全局配置模式
ZXR10(config)#hostname ZTE //对系统性命名为ZTE
zte(config) #exit //退出用exit命令
2、设置系统日期和时间
ZXR10#clock set 15:52:35 apr 18 2011 //特权模式下
验证方法:
ZXR10#show clock-------显示设备当前的系统时间
3、设置设备特权模式密码
ZXR10(config)#enable secret zte //密文enable密码ZXR10(config)#enable password zte //明文
验证方法:
ZXR10(config)#exit
ZXR10#exit
按回车键
ZXR10>输入enable
Password:输入你的enable 密码。

4、设置登录标志
ZXR10(config)#banner incoming c
Enter TEXT message. End with the character 'c'.
hello,zte
C
ZXR10(config)#
验证:
ZXR10(config)#exit
ZXR10#exit
按回车键
出现:
Hello world!!--------欢迎语
ZXR10>
5、显示当前运行配置文件
ZXR10#show running-config
//特权模式下显示当前运行配置文件
ZXR10(config)# show running-config
//全局模式下显示当前运行配置文件
6、保存配置文件
ZXR10#write
7、显示启动配置文件
ZXR10(config)# show start running-config
ZXR10#show start running-config
8、要查看交换机的日志,可执行如下操作:
ZXR10#show logfile //所有可以使用show命令的模式下都可以使用此命令,用于查看交换机上的所有操作
举例:ZXR10#SHOW logfile
con0 11:11:31 04/18/2012 UTC show start running-config
con0 11:05:59 04/18/2012 UTC show running-config
con0 11:05:55 04/18/2012 UTC show ip route
con0 11:05:49 04/18/2012 UTC en
con0 11:05:47 04/18/2012 UTC
con0 03:46:45 04/18/2012 UTC /--- user log out ---/
con0 01:46:43 04/18/2012 UTC
ZXR10#show logging alarm //所有可以使用show命令的模式下都可以使用此命令,用于查看系统告警信息,还可配置具体的参数来查看某日某一等级的告警信息
举例:ZXR10#show logging alarm
An alarm 16389 level 6 occurred at 01:47:12 04/18/2012 UTC sent by MCP %ROS% SN
MP agent on host ZXR10 is undergoing a cold start
An alarm 279 level 3 cleared at 01:46:43 04/18/2012 UTC sent by MCP %BOARD% Ad
d board at 1
ZXR10#dir
Directory of flash:/
attribute size date time name
1 drwx 51
2 JAN-07-2001 16:32:56 IMG
2 drwx 512 JAN-07-2001 16:32:56 CFG
3 drwx 512 JAN-07-2001 16:32:56 DATA
65007616 bytes total (57985024 bytes free)
13、删除文件
ZXR10#cd cfg――――――――进入CFG文件目录下
ZXR10#dir ――――――――――――――查看文件
ZXR10# delete startrun.dat――――――――删除配置文件ZXR10#dir ―――――――――――――查看文件
ZXR10# cd /------------------------退回到FLASH根目录下13、配置TELNET用户名与密码
ZXR10(config)#username zte password zte。