Date post: | 04-Jan-2016 |
Category: |
Documents |
Upload: | howard-holt |
View: | 263 times |
Download: | 11 times |
Routing Switch Basic Operation and Configuration
Objectives
Grasp the configuration methods of routing switch Grasp the basic configuration on routing switch Interface configuration Watch on the information
Contents
ZXR10 Configuration Methods ZXR10 System modes ZXR10 file system System Parameters Configuration CLI Authority Grade Interface Configuration Port Mirroring System Information
ZXR10 Configuration Methods
Configuration through
COM port
Configuration in Telnet
Configuration through
Secure Shell (SSH)
Configuration through
SNMP
Example -- Serial Port Connection 1 , After connecting PC to Router
correctly, click Start > Programs > Accessories >Communications > HyperTerminal
2 , Open the HyperTerminal, Input the connection name and select the desired icon
3 , Select Com port, which is used for connection with router, click OK
4 , Configure port attributes of the selected serial port
Example--Telnet Connection
Run telnet command on local host computer.
Click OK. The CLI window appears
CLI Feature
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.
Error Hint
Help Information
ZXR10>e?
enable exit
ZXR10>en?
enable
ZXR10>en
Password:
ZXR10#
ZXR10#shZXR10#show ruZXR10#show running-config
Use Tab key to complete the command
Command Abbreviation
Contents
ZXR10 Configuration Methods ZXR10 System modes ZXR10 file system System Parameters Configuration CLI Authority Grade Interface Configuration Port Mirroring System Information
System command modes
After powering on the system, start the Command Line Interface (CLI) via the terminal.
1 . User mode
2 . Privilege mode (enable mode)
3 . Global configuration mode
4 . Interface configuration mode
5. Vlan configuration mode
6 . Controller configuration mode
7 . Route configuration mode
8. BOOTP mode
……
User Mode
1: User Mode When logging in to the system, the user enters the user mode
automatically. In user mode, a user can run commands, such as ping and telnet
and also can view some system information.
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
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
Privileged Mode
2:Privileged Mode In user mode, enter enable command and corresponding password to enter privileged mode In privileged mode, a user can view more detailed configuration information and also can enter configuration mode to configure entire router.
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--
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--
Configuration Mode
3. Global Configuration Mode Global configuration mode Interface configuration mode Vlan configuration mode Controller configuration mode Routing protocol configuration mode
ZXR10# configure terminalZXR10(config)#ZXR10(config)# interface fei_2/1 ZXR10(config-if)#…ZXR10(config)# router ospf 1ZXR10(config-router)#…
ZXR10# configure terminalZXR10(config)#ZXR10(config)# interface fei_2/1 ZXR10(config-if)#…ZXR10(config)# router ospf 1ZXR10(config-router)#…
BOOTP Mode
4. BOOTP Mode In BOOTP mode CLI command can not be used There are a set of commands to implement limited system maintain
function Upgrading Version at Abnormality Configuring system password
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……
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……
Contents
ZXR10 Configuration Methods ZXR10 System modes ZXR10 File system System Parameters Configuration CLI Authority Grade Interface Configuration Port Mirroring System Information
Flash file system
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:/img
ZXR10#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)
IMG System mapping files, ZXR10.zar CFG Configuration files STARTRUN.DAT DATA Records alarm information ***.zte
System configuration file
startrun.dat -- The startrun.dat configuration has been written into FLASH ,
and still exists after power-off and restart
running -- The running configuration has been written into memory,
and ceases to exists after power-off and restart
Console
showrunning-config
RAM flash
Startrun.datRunning-Config
Save configuration file
Save running configuration to startup configuration file, then it can be used when the system reboot.
ZXR10#ZXR10# writeBuilding configuration.....[ok]
ZXR10#
ZXR10#ZXR10# writeBuilding configuration.....[ok]
ZXR10#
Backing Up Configuration File
Click Security, and select User/Rights…
Configuring a Router as FTP Client, Execute wftpd32.exe, and WFTPD window
Backing Up Configuration File Execute the following steps in User/Rights Security Dialog,
i. Click New User to create a new user, such as target, and set password.
ii. Select target in the pull down list box of User Name.
iii. Input the directory of edition files or configuration files in the box of Home Directory, such as IMG catalog in D disk
Backing Up Configuration File To prevent the configuration file being destroyed, use the copy
command to back up it
Example
User name is who, and password is who. User uploads the file startrun.dat from the directory cfg to the ftp server with IP address 192.168.4.244
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.
ZXR10#copy root /cfg/startrun.dat ftp://192.168.4.244/startrun.dat@who:whoStarting copying file.file copying successful.
Recovering Configuration File To recover the configuration file in FLASH from background FTP
server, use the following command.
Example
User name is who, and password is who. User downloads the file startrun.dat from the ftp server with IP address 192.168.4.244, and rename it as “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.
ZXR10# copy ftp: //192.168.4.244/startrun.dat@who:who root /cfg/startrun.bakStarting copying file.file copying successful.
Contents
ZXR10 Configuration Methods ZXR10 System modes ZXR10 File system System Parameters Configuration CLI Authority Grade Interface Configuration Port Mirroring System Information
Set Basic System Information
ZXR10(config)# hostname zte-university
zte-university(config)# exit
zte-university# write
Building configuration...
..
[ok]
zte-university#
Router Name
ZXR10(config)# banner incoming #
You have entered a secured system.Authorized access only!
#
ZXR10(config)#
Welcome Words
System Time
ZXR10#clock set 23:12:01 feb 23 2001
Configuring System Time
ZXR10# clock set <hh:mm:ss><month><day><year>
Example : Configure the system time as 23:12: 01 on Feb, 23, 2001
Password
ZXR10(config)#ZXR10(config)# enable secret zteZXR10(config)#
Configures the authority grade of commands
ZXR10(config)# enable secret [level <1~15>]{0 <password>| 5 <password>|<password>}
Telnet User Name and Password
ZXR10(config)# username <username> password <password>
ZXR10(config)# username who password who
Contents
ZXR10 Configuration Methods ZXR10 System modes ZXR10 File system System Parameters Configuration CLI Authority Grade Interface Configuration Port Mirroring System Information
CLI Authority Grade
Command Line Interface (CLI) sets the different authority grades for different users, thus to control the command authority usage. Higher authority grade users can use more commands than common authority grade users. Administrator sets the different authority grade to each command.
COMMAND WITH AUTHORITY GRADE
Each command has its default authority grade,15. After device starting-up, administrator can modify the authority grade using configuration command.
USER WITH AUTHORITY GRADE Administrator has right to configure the user authority grade.
The authority grade of terminal is not changed after logging on successfully.
Administrator authority grade is 15.
Configuring CLI Authority Grade
ZXR10# enable [ < level> ]
ZXR10# disable [ < level> ]
Increases or decreases the current authority grade and enters into privileged configuration mode
Sets password for logging on each authority grade
ZXR10(config)# enable secret [ level < 1-15> ] { 0 < password> | 5 <password> | < password> }
Configures user name, password and authority grade of Telnet user.
ZXR10(config)# username < username> password < password> [ privilege <0-15> ]
Configures the authority grade of commands
ZXR10(config)# privilege < logic-mode> [ all] level < 0-15> <command-keywords>
Shows authority grade of the current terminal and configuration information.
ZXR10# show privilege [{cur-mode | show-mode} {detail| level <1~15>| mode <command-keywords>}]
CLI Authority Grade Configuration Example
Set different user right levels for two types of users of the device: Type A user: the highest level is Level 15 (supreme
level), and can perform all operations including view and configuration;
Type B user: the highest level is Level 5, but can view system clock of the device using the “show clock” command;
Type B user can increase its level to Level 8 using the “enable” command, thus it can set the time zone.
CLI Authority Grade Configuration Example
Configure the authority grade of commands started from show clock as 5 Configure the authority grade of clock and clock timezone commands as 7
ZXR10(config)# privilege show all level 5 show clockZXR10(config)# privilege configure level 7 clockZXR10(config)# privilege configure level 7 clock timezone
Set telnet user A name as ZTE_A, and password as ZTE_A_15, authority grade as 15
Set telnet user B name as ZTE_B, and password as ZTE_B_5, authority grade as 5
ZXR10(config)# username ZTE_A password ZTE_A_15 privilege 15ZXR10(config)# username ZTE_B password ZTE_B_5 privilege 5
Set the password of authority grade 8 as level-8
ZXR10(config)# enable secret level 8 level-8
Show CLI Authority Grade – User A
Shows authority grade of telnet user ZTE-A
Username: ZTE_APassword:ZXR10#show privilegeCurrent privilege level is 15
Shows commands that user ZTE_A can use under the privileged configuration mode
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—
Show CLI Authority Grade – User A
Shows commands that user ZTE_A can use under the global configuration mode
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—
Show CLI Authority Grade – User B
Shows authority grade of telnet user ZTE-B
Username: ZTE_BPassword:ZXR10# show privilegeCurrent privilege level is 5
Shows commands that user ZTE_B can use under the privileged configuration mode
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
Show CLI Authority Grade – User B
Shows commands that user ZTE_B can use under the global configuration mode
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 information
ZXR10(config)#ZXR10(config)# show ?clock Show current system clockprivilege Show current privilege level
ZXR10(config)# show clock ?detail Display detailed informationpiu Show interface subcard clock mode
Show CLI Authority Grade – User B
Increase the level of ZTE_B to Level 8
Username: ZTE_BPassword:ZXR10#show privilegeCurrent privilege level is 5
ZXR10# enable 8Password:ZXR10# show privilegeCurrent privilege level is 8
Shows commands that user ZTE_B can use under the global configuration mode
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
Contents
ZXR10 Configuration Methods ZXR10 System modes ZXR10 File system System Parameters Configuration CLI Authority Grade Interface Configuration Port Mirroring System Information
Interface Type
FEI: Fast Ethernet Interface GEI: Gigabit Ethernet Interface XGEI: 10 Gigabit Ethernet Interface
Naming Rules
<Interface type>_<Slot ID>/<Port ID>
ex: gei_1/1
Ethernet Interface Configuration
1. Enters into interface configuration mode
ZXR10(config)# interface < interface-name>
2. Enables an Ethernet port
ZXR10(config-if)# no shutdown
3. Enabling Auto-Negotiation
ZXR10(config-if)# negotiation auto
4. Enabling Duplex Mode
ZXR10(config-if)# duplex {half|full}
5. Enabling Ethernet Port Rate
ZXR10(config-if)# speed {10|100|1000}
Viewing Port Information
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… …
Views status information of Ethernet port
ZXR10(config)# show interface [<port-name>]
Viewing Port Information
ZXR10(config)# show running-config interface fei_2/4Building configuration...interface fei_2/4negotiation autobroadcast-limit 10switchport access vlan 1switchport qinq normal
Views configuration information of Ethernet port
ZXR10(config)# show running-config interface <port-name>
Contents
ZXR10 Configuration Methods ZXR10 System modes ZXR10 File system System Parameters Configuration CLI Authority Grade Interface Configuration Port Mirroring System Information
Port Mirroring
Port mirroring function copies the data of one or more ports (mirrored ports) in the switch to a designated port (monitoring port).
It can retrieve the data of mirrored port in the monitoring port by mirroring. Through which it can perform network flow analysis and error diagnosis.
Port mirroring rules: It supports up to 8 groups of port mirroring, each can support up to
8 mirrored ports. In one interface board, one group of port mirroring can be
configured at maximum. Supports cross-interface-board port mirroring, for example,mirrored
port and the monitoring port can be in different interface boards, here, the switch can be configured with one port mirroring at most.
Monitor the data transmitted or received by the mirrored port only.
Configuring Port Mirroring
ZXR10(config)# show monitor session {all|<session-number>}
Views configuration and status of port mirroring
Sets monitoring port
ZXR10(config-gei_1/x)# monitor session <session-number> destination
Sets mirrored port
ZXR10(config-gei_1/x)# monitor session <session-number> source [direction {both|cpu-rx|cup-tx|tx|rx}]
Creates a session
ZXR10(config)# monitor session <session-number>
Port Mirroring Configuration Example
ZXR10(config)# interface gei_1/1ZXR10(config-gei_1/1)# monitor session 1 source direction rxZXR10(config)# interface gei_1/2ZXR10(config-gei_1/2)# monitor session 1 sourceZXR10(config)# interface gei_3/3ZXR10(config-gei_3/3)# monitor session 1 destination
Port gei_3/3 is connected with a monitoringcomputer;To the data received by gei_1/1, as well as the data received and transmitted by gei_1/2
ZXR10(config)# show monitor session 1Session 1-----------------------------------------------Source Ports: Port: gei_1/1 Monitor Direction: rx Port: gei_1/2 Monitor Direction: bothDestination Port: Port: gei_3/3-----------------------------------------------
Contents
ZXR10 Configuration Methods ZXR10 System modes ZXR10 File system System Parameters Configuration CLI Authority Grade Interface Configuration Port Mirroring System Information
System Information--Hardware VersionZXR10# show version hardware
[MEC, panel 2, master]Main processor: PowerPC MPC8541 ProcessorSystem Memory : 1024M bytes , System Flash : 64M bytesSystem Serial : 15206 , System BaudRate : 9600System Nvram : 8192 bytes , Temperature : 26 Celsius degreeCPUcard CPLD : V1.4 , CPLD Version : V1.2System SD : 0M bytesBoard Serial : N/ABoard Name : RS-8902-MCS
[NPCI, panel 1]Main processor: PowerPC MPC8347EAT ProcessorSystem Memory : 1024M bytes , System Flash : 16M bytesBoard Type : UMTE , Port Number : 12CPLD Version : V1.2Temperature : 31 Celsius degreeBoard Name : RS-89E3-12GE-RJ4SFPNetwork Processor : OnlineNetwork Processor Status : ENABLENetwork Processor Temperature : No.1: 49 Celsius degree,47 Celsius degree
System Information--Software VersionZXR10# show version softwareZXR10 8902 Software, Version ZXR10 G-Series&8900&6900 V2.8.02.C.50.P07, RELEASESOFTWARECopyright (c) 2001-2009 by ZTE CorporationCompiled Jan 11 2011, 12:12:47ZXR10 Router Operating System Software, ZTE CorporationZXR10 ROS Version V4.08.24R1System image files are local: //flash/img/zxr10.zar
ZXR10# show version mec 2 PanelNo 2 MEC (Master) version information: PCB Version: 071200 FPGA Version: Vf.f CPLD Version: V1.2 Processor version information: Boot Version: V2.00 DRAM memory size: 1024M Bytes Flash memory size : 64M Bytes NVRAM memory size : 8192K Bytes
ZXR10# show version npc 1 PanelNo 1 NPC main version information: PCB Version: 071201 FPGA Version: V1.0 CPLD Version: V1.2 Processor1 (Master NP) version information: Boot Version: V1.85 DRAM memory size : 1024M Bytes
System Information--Configuration and CPU
ZXR10# show run Building configuration...……
interface vlan 1 ip address 10.40.87.189 255.255.252.0……
ZXR10# show processorM: Master processorS: Slave processorPhyMem: Physical memory (megabyte)
Panel CPU(5s) CPU(1m) CPU(5m) PhyMem Buffer Memory
MP(M) 2 8% 6% 6% 1024 0% 42.161%NP(M) 1 12% 13% 12% 1024 0% 26.532%
Hardware Information--Temperature
ZXR10# show temperature environment
Temperature:32 Celsius degree/89 fahrenheit degree
ZXR10# show temperature mec master
Temperature:26 Celsius degree/78 fahrenheit degree
ZXR10# show temperature sfc slave Panel Local ( / ) Remote ( / )℃℉ ℃℉SFC 2 39 102 39 102
ZXR10# show temperature cpu master Panel Local ( / ) Remote ( / )℃℉ ℃℉UPC 1 40 104 48 118
Low threshold: -40C/-40FFirst high threshold: 55C/131FSecond high threshold: 70C/158
ZXR10# show temperature cpu slave Panel Local ( / ) Remote ( / )℃℉ ℃℉UPC 2 46 106 48 118
Configure the low temperature threshold of sfc master board is –40 .℃ZXR10(config)# alarm temperature on
ZXR10(config)# environZXR10(config-environ)# temper-threshold sfc master local lowthreshold -40
Hardware Information--Fans and Power
ZXR10# show fanCabinetFan: 1 2 3 4 5 6 is normal.TrunkFanTop: 1 2 3 4 5 6 7 8 is normal.TrunkFanBottom: 1 2 3 4 5 6 7 8 is normal.
ZXR10# show powerAC power onlinePowerACVoltage: 227 VPowerACCurrent: 2.00 Athe current power: 454.0 WPower Module 1 work normallyPower Module 2 3 work normal
Questions
How many methods are there to set enable password and what are them ?
How many configuration files are there in the router? And the difference between them?