
ZXR10--设备基本操作(ZXR10-路由交换机基本操作和配置)--课件.ppt
48页ZXR10 路由交换机基本操作和配置V2.1课程目标n通过本章的学习,你可以获得以下收获:l掌握ZXR10的基本操作l掌握文件管理系统的操作l掌握接口配置方式l掌握权限分级配置l观察ZXR10基本信息目录nZXR10的基本操作的基本操作nZXR10系统模式nZXR10的文件系统n系统参数配置nCLI权限分级配置n端口及接口配置n系统信息ZXR10配置方式n串口连接配置串口连接配置nTELNET连接配置连接配置nSSH连接配置连接配置nSNMP连接配置连接配置示例 – 串口连接1,将PC机与ZXR10进行正确连线之后,点击系统的[开始→程序→附件→通讯→超级终端],进行超级终端连接2,弹出连接描述对话框时,为新建的连接输入名称并为该连接选择图标 3,选择连接串行口4,设置所选串行口的端口属性示例 – Telnet连接n在主机上运行telnet命令n点击确定按钮,显示TELNET窗口CLI特征ZXR10#cl? clear clock ZXR10#clock ? set Set the time and date ZXR10#clock set? setZXR10#clock set ? hh:mm:ss Current TimeZXR10#clock set 17:30:00 ?ZXR10#clok ^ % Invalid input detected at '^' marker. 错误提示错误提示帮助帮助ZXR10>e?enable exitZXR10>en?enableZXR10>enPassword:ZXR10#ZXR10#shZXR10#show ruZXR10#show running-config使用Tab键使简写命令完整显示命令简写命令简写目录nZXR10的基本操作nZXR10系统模式系统模式nZXR10的文件系统n系统参数配置nCLI权限分级配置n端口及接口配置n系统信息System command modesn系统上电后通过终端连接启动命令行界面(CLI)1.用户模式2.特权模式(enable模式) 3.全局配置模式4.接口配置模式5. Vlan 配置模式6.通道配置模式7.路由配置模式8. BOOTP模式……用户模式1: 用户模式l登录系统时,将自动进入用户模式;l用户模式下可以执行ping,telnet等命令,还可以查看一些系统信息。
ZXR10>?Exec commands:disable Turn off privileged commandsenable Turn on privileged commandsExit Exit from the EXECLogin Login as a particular userlogout Exit from the EXECPing Send echo messagesping6 Send IPv6 echo messagesQuit Quit from the EXECshow Show running system informationtelnet Open a telnet connectiontelnet6 Open a telnet6 connectiontrace Trace route to destinationtrace6 Trace route to destination using IPv6who List users who are logining on特权模式2:特权模式:特权模式n在用户模式下输入enable命令和相应口令后,即可进入特权模式n特权模式下可以查看配置信息,也可以进入配置模式进行相关命令配置ZXR10>enablePassword: (The input password will not be displayed on the screen)ZXR10#ZXR10# ?Exec commands: cd Change current working directory clear Reset functions clock Manage the system clock configure Enter configuration mode copy Copy from one file to another debug Debugging functions--More--配置模式3. 配置模式l全局配置模式l接口配置模式lVlan配置模式l通道配置模式l路由配置模式ZXR10# configure terminalZXR10(config)#ZXR10(config)# interface fei_2/1 ZXR10(config-if)#…ZXR10(config)# router ospf 1ZXR10(config-router)#…BOOTP模式4. BOOTP模式n不使用CLI命令 n系统维护操作n系统异常时升级版本n配置系统密码System Bootstrap, ZXR10-T1200 System Boot Version: 1.0Creation date: Apr 18 2007, 10:55:19Copyright (c) 2005 by ZTEPress any key to stop for change parameters...8[ZXR10 Boot]:[ZXR10 Boot]:c'.' = clear field; '-' = go to previous field; ^D = quitBoot Location [0:Net,1:Flash] : 0(0 indicates booting from the background TFTP,and 1 indicates booting from the FLASH)Client IP [0:bootp]: 168.4.168.168(Corresponding to the address of the management Ethernet port)Netmask: 255.255.0.0……目录nZXR10的基本操作nZXR10系统模式nZXR10的文件系统的文件系统n系统参数配置nCLI权限分级配置n端口及接口配置n系统信息Flash文件系统ZXR10# dir --Displays files, subdirectory informationDirectory of flash:/Attribute size date time name1 drwx 4096 JUN-27-2007 15:28:56 cfg2 drwx 4096 JUN-27-2007 15:28:56 data3 drwx 4096 JUL-08-2007 07:51:56 img130015232 bytes total (82857984 bytes free)ZXR10# cd img --Into a file directoryZXR10# pwd --Displays current directory pathflash:/imgZXR10#dir Directory of flash:/imgattribute size date time name1 drwx 4096 JUL-08-2007 07:51:56 .2 drwx 4096 JUL-08-2007 07:51:56 ..3 -rwx 16364919 MAY-11-2007 11:37:06 ZXR10.ZAR130015232 bytes total (82857984 bytes free)nIMG 系统映象文件即版本信息 ZXR10.zarnCFG 配置文件 STARTRUN.DATnDATA 记录异常信息 ***.zte系统配置文件n启动文件(startrun.dat) --存在FLASH中,断电重启仍然在n运行文件(running) --存在内存中,断电重启不在Consoleshowrunning-configRAMflashOr startrun.datRunning-Config保存配置文件 将现行配置(将现行配置( running)保存到启动配置文件(保存到启动配置文件( startrun.dat)中,下次重中,下次重启时使用该配置。
启时使用该配置ZXR10#ZXR10# writeBuilding configuration.....[ok]ZXR10#文件备份n点击菜单项Security,选择User/Rights…n把路由器作为FTP客户端与后台FTP服务器进行通信,执行wftpd32.exe文件备份n在User/Rights安全设置对话框中进行以下操作, i.点击New User…按钮新建一个用户,如target,并设置密码 ii.在User Name下拉框中选中用户名target iii. 在Home Directory框中输入存放版本文件或配置文件的目录文件备份n为防止配置信息遭到破坏,可以将其备份,备份操作可用copy命令实现n举例 用户名是who,密码是who,现要将设备文件系统cfg目录中的startrun.dat文件上传至IP地址为192.168.4.244的ftp服务器上,操作如下:ZXR10# copy < source-device> < source-file> < destination-device> < destination-file>ZXR10#copy root /cfg/startrun.dat ftp://192.168.4.244/startrun.dat@who:whoStarting copying file.file copying successful.文件恢复n执行如下命令可将FLASH中的配置文件从后台TFTP服务器恢复出来n举例 到IP地址为192.168.4.244的TFTP服务器上下载名称为“startrun.dat”的文件,并重命名为“startrun.bak”:ZXR10# copy < source-device> < source-file> < destination-device> < destination-file>ZXR10# copy ftp: //192.168.4.244/startrun.dat@who:who root /cfg/startrun.bakStarting copying file.file copying successful.目录nZXR10的基本操作nZXR10系统模式nZXR10的文件系统n系统参数配置系统参数配置nCLI权限分级配置n端口及接口配置n系统信息配置基本系统信息ZXR10(config)# hostname zte-universityzte-university(config)# exitzte-university# writeBuilding configuration.....[ok]zte-university#系统主机名系统主机名ZXR10(config)# banner incoming #You have entered a secured system.Authorized access only!#ZXR10(config)#系统启动问候语系统启动问候语系统时间ZXR10#clock set 23:12:01 feb 23 2001n配置系统时间ZXR10# clock set
密码ZXR10(config)#ZXR10(config)# enable secret zteZXR10(config)#n设置登录各级权限的密码ZXR10(config)# enable secret [level <1~15>]{0
用户可以执行privilege命令配置或删除某个命令的权限l用户权限分级管理用户权限分级管理 功能主要包括:用户配置及删除、用户权限设定、用户登录认证及授权用户的权限级别分为0-15级共16个级别,默认权限为1,其中0级最低,15级最高,用户权限与用户名、密码信息统一管理配置CLI权限分级ZXR10# enable [ < level> ]ZXR10# disable [ < level> ]n提高或降低当前权限等级,范围0~15,缺省为15n设置特权模式密码ZXR10(config)# enable secret [ level < 1-15> ] { 0 < password> | 5
CLI权限分级配置实例n修改设备上show clock命令的权限级别,5级n修改设备上clock timezone命令的权限级别,7级ZXR10(config)# privilege show all level 5 show clockZXR10(config)# privilege configure level 7 clockZXR10(config)# privilege configure level 7 clock timezonen创建A、B类两用户,用户名分别为ZTE_A、ZTE_B,用户权限级别分别为15级和5级ZXR10(config)# username ZTE_A password ZTE_A_15 privilege 15ZXR10(config)# username ZTE_B password ZTE_B_5 privilege 5n设置将用户权限级别提高到8级时的enable密码ZXR10(config)# enable secret level 8 level-8查看用户权限—ZTE-An查看用户名ZTE_A的用户权限:Username: ZTE_APassword:ZXR10#show privilegeCurrent privilege level is 15n显示用户ZTE_A在特权配置模式下能够操作的命令ZXR10# ?Exec commands:alarm-confirm Confirm the alarm by flowidcd Change current directorycfm Executing CFM detecting functionsClear Reset functionsclock Manage the system clockconfigure Enter configuration modecopy Copy from one file to another by ftp/tftpcp Copy from one file to another locallydebug Debugging functionsdelete Delete a file--More—查看命令权限—ZTE-An显示用户ZTE_A在全局配置模式下能够操作的命令ZXR10# configure terminalEnter configuration commands, one per line. End with CTRL/Z.ZXR10(config)# ?Configure commands:aaa-accounting-template AAA accounting template configurationsaaa-authentication-template AAA authentication template configurationsaaa-authorization-template AAA authorization template configurationsalarm Configure the alarm parametersarp Enter ARP configuration modebanner Terminal line bannerbfd Configure bfdCfm Enter CFM configuration modeclass-map Configure H-QoS class mapclear Clear controller-counter infoclock Configure board clock--More—查看用户权限—ZTE-Bn查看用户名ZTE_B的用户权限:Username: ZTE_BPassword:ZXR10# show privilegeCurrent privilege level is 5n显示用户ZTE_B在特权配置模式下能够操作的命令ZXR10# ?Exec commands:cd Change current directoryclock Manage the system clockconfigure Enter configuration modedebug Debugging functionsdir List files on a filesystemdisable Turn off privileged commandsenable Turn on privileged commandsexit Exit from the EXECkick-off Kick off DHCP usersl2trace Trace route to destination查看命令权限—ZTE-Bn显示用户ZTE_B在全局配置模式下能够操作的命令ZXR10# configure terminalEnter configuration commands, one per line. End with CTRL/Z.ZXR10(config)# ?Configure commands:clear Clear controller-counter infoend Exit from configure modeexit Exit from configure modeshow Show running system informationZXR10(config)#ZXR10(config)# show ?clock Show current system clockprivilege Show current privilege levelZXR10(config)# show clock ?detail Display detailed informationpiu Show interface subcard clock mode查看用户权限—ZTE-Bn将用户名ZTE_B的权限级别提升至8级Username: ZTE_BPassword:ZXR10#show privilegeCurrent privilege level is 5ZXR10# enable 8Password:ZXR10# show privilegeCurrent privilege level is 8n显示用户ZTE_B在全局配置模式下能够操作的命令ZXR10(config)#?Configure commands:clear Clear controller-counter infoclock Configure board clockend Exit from configure modeexit Exit from configure modeno Negate a command or set its defaultsshow Show running system informationZXR10(config)# clock ?timezone Configure time zone目录nZXR10的基本操作nZXR10系统模式nZXR10的文件系统n系统参数配置nCLI权限分级配置n端口及接口配置端口及接口配置n系统信息端口类型nFEI: 快速以太网端口nGEI: 千兆以太网端口nXGEI: 万兆以太网端口命名规则 <端口类型>_<槽位号>/<端口号>以太网端口配置1. 进入端口配置模式ZXR10(config)# interface < interface-name>2. 打开以太网端口ZXR10(config-if)# no shutdown3. 启用以太网端口自动协商ZXR10(config-if)# negotiation auto4. 设置以太网端口双工模式ZXR10(config-if)# duplex {half|full}5. 设置以太网端口速率ZXR10(config-if)# speed {10|100|1000}查看端口信息ZXR10(config)# show interface gei_2/1gei_2/1 is down, line protocol is downDescription is noneKeepalive set:10 secThe port is electricDuplex halfMdi type:autovlan mode is access, pvid 2Vrpf All Discard Count:0 BW 1000000 KbitsLast clearing of "show interface" counters never120 seconds input rate 0 Bps, 0 pps120 seconds output rate 0 Bps, 0 ppsInterface peak rate : input 0 Bps, output 0 BpsInterface utilization: input 0%, output 0%/* Statistic of input/output transmit message,including statistic of error message */Input:Packets : 338 Bytes: 41572Unicasts : 0 Multicasts: 328 Broadcasts: 10… …查看以太网端口状态信息ZXR10(config)# show interface [












