Table of Contents

Advertisement

Quidway S9300 Terabit Routing Switch
V100R001C03
Configuration Guide - Device Management
Issue
02
Date
2009-08-06
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.

Advertisement

Table of Contents
loading

Summary of Contents for Huawei S9300

  • Page 1 Quidway S9300 Terabit Routing Switch V100R001C03 Configuration Guide - Device Management Issue Date 2009-08-06 Huawei Proprietary and Confidential Copyright © Huawei Technologies Co., Ltd.
  • Page 2 Huawei Technologies Co., Ltd. provides customers with comprehensive technical support and service. For any assistance, please contact our local office or company headquarters. Huawei Technologies Co., Ltd. Address: Huawei Industrial Base Bantian, Longgang Shenzhen 518129 People's Republic of China Website: http://www.huawei.com...
  • Page 3: Table Of Contents

    1.3.3 Examples for Using Regular Expressions....................1-5 1.4 Displaying the Status of the S9300.......................1-12 1.4.1 Displaying Information About the S9300....................1-12 1.4.2 Displaying the Version.........................1-13 1.4.3 Displaying the Power Status of the S9300...................1-13 1.4.4 Displaying the Board Voltage......................1-13 1.4.5 Displaying the Temperature.........................1-14 1.4.6 Displaying the Fan Status........................1-14 1.4.7 Displaying the CPU Usage........................1-15...
  • Page 4 2.6.2 Example for Outputting Log Information to the Log Host..............2-20 3 Hardware Management......................3-1 3.1 Introduction to Hardware Management......................3-2 3.2 Hardware Management Supported by the S9300....................3-2 3.3 Logical Relationships Between Configuration Tasks..................3-2 3.4 Powering On and Off the Board........................3-2 3.4.1 Establishing the Configuration Task......................3-2 3.4.2 Powering Off a Board..........................3-3...
  • Page 5 4.4 Rebooting the S9300............................4-5 4.4.1 Establishing the Configuration Task......................4-5 4.4.2 (Optional) Rebooting the S9300 Through Command Lines..............4-5 4.4.3 (Optional) Rebooting the S9300 Immediately by Pressing the Power Button........4-6 4.4.4 (Optional) Rebooting the S9300 on Schedule Through Command Lines..........4-6 4.4.5 Checking the Configuration........................4-7 5 Debugging and Diagnosis......................5-1...
  • Page 6 Quidway S9300 Terabit Routing Switch Contents Configuration Guide - Device Management 6.6.6 Applying the Traffic Policy........................6-10 6.6.7 Checking the Configuration.........................6-11 6.7 Configuration Examples..........................6-12 6.7.1 Example for Configuring Local Port Mirroring...................6-12 6.7.2 Example for Configuring Remote Port Mirroring................6-15 6.7.3 Example for Configuring Flow Mirroring...................6-18...
  • Page 7 Figure 2-3 Typical networking of outputting information to the console............2-17 Figure 2-4 Typical networking of outputting log information to the log host...........2-20 Figure 4-1 Process of booting the S9300......................4-2 Figure 5-1 Process of outputting and displaying debugging information............5-2 Figure 5-2 Networking diagram of running the debugging command to locate faults........5-5 Figure 6-1 Networking diagram of port mirroring....................6-2...
  • Page 9 Quidway S9300 Terabit Routing Switch Configuration Guide - Device Management Tables Tables Table 1-1 Common display commands.......................1-2 Table 1-2 Description of metacharacters......................1-3 Table 1-3 Description of the display commands that can use regular expressions..........1-4 Table 2-1 Description of the severity levels of information.................2-2 Table 2-2 Association relationship between information channels and output directions........2-4...
  • Page 11: About This Document

    About This Document Purpose This document describes the device management features supported by the S9300 from the aspects of information query, software and hardware upgrade, device reboot, device diagnosis and debugging, and mirroring configurations. This document consists of the following contents:...
  • Page 12: Symbol Conventions

    3 Hardware Management This chapter describes basic hardware maintenance of the S9300, such as board power-on and power-off, electronic label backup, and board reset. 4 Rebooting This chapter describes how to reboot the S9300.
  • Page 13: General Conventions

    Quidway S9300 Terabit Routing Switch Configuration Guide - Device Management About This Document General Conventions The general conventions that may be found in this document are defined as follows. Convention Description Times New Roman Normal paragraphs are in Times New Roman.
  • Page 14 Quidway S9300 Terabit Routing Switch About This Document Configuration Guide - Device Management Keyboard Operations The keyboard operations that may be found in this document are defined as follows. Format Description Press the key. For example, press Enter and press Tab.
  • Page 15: Displaying The Device Status

    The section describes the regulations of regular expression. 1.3 Usage of Regular Expressions This section describes the usage of regular expressions. 1.4 Displaying the Status of the S9300 This chapter describes how to use display commands to view the version, CPU, memory, and voltage of a device.
  • Page 16: Display Commands

    As an important means to maintain and troubleshoot a network, the display commands can be used to collect current information about the version, device, and diagnosis of the S9300. Table 1-1 lists the display commands in common use. For details, refer to the Quidway S9300 Terabit Routing Switch - Command Reference.
  • Page 17: Usage Of Regular Expressions

    Quidway S9300 Terabit Routing Switch Configuration Guide - Device Management 1 Displaying the Device Status Table 1-2 Description of metacharacters Metacha Description racter Indicates an escape character. Matches any single character except "\n", including spaces. The character before it appears 0 times or multiple consecutive times in the target.
  • Page 18: Specifying The Filtering Mode On A Split Screen

    Table 1-3 lists the display commands using regular expressions. For details on the commands, refer to the Quidway S9300 Terabit Routing Switch - Command Reference. Table 1-3 Description of the display commands that can use regular expressions Command Description...
  • Page 19: Examples For Using Regular Expressions

    Quidway S9300 Terabit Routing Switch Configuration Guide - Device Management 1 Displaying the Device Status sysname Quidway vlan batch 44 66 77 100 150 300 rrpp working-mode GB diffserv domain default drop-profile default interface Vlanif44 ip address 101.0.0.4 255.255.255.0 interface Vlanif66 ip address 10.0.0.6 255.255.255.0...
  • Page 20 Quidway S9300 Terabit Routing Switch 1 Displaying the Device Status Configuration Guide - Device Management Displaying the Current Configuration # Run the display current-configuration command to display the current configuration. <Quidway> display current-configuration sysname Quidway vlan batch 44 66 77 100 150 300...
  • Page 21 Quidway S9300 Terabit Routing Switch Configuration Guide - Device Management 1 Displaying the Device Status interface GigabitEthernet2/0/14 interface GigabitEthernet2/0/15 port hybrid pvid vlan 150 port hybrid untagged vlan 150 interface GigabitEthernet2/0/16 interface GigabitEthernet2/0/17 interface GigabitEthernet2/0/18 interface GigabitEthernet2/0/19 interface GigabitEthernet2/0/20 interface GigabitEthernet2/0/21...
  • Page 22 Quidway S9300 Terabit Routing Switch 1 Displaying the Device Status Configuration Guide - Device Management interface GigabitEthernet2/0/0 interface GigabitEthernet2/0/1 interface GigabitEthernet2/0/2 interface GigabitEthernet2/0/3 interface GigabitEthernet2/0/4 port hybrid pvid vlan 44 port hybrid untagged vlan 44 combo copper interface GigabitEthernet2/0/5 interface GigabitEthernet2/0/6...
  • Page 23 Quidway S9300 Terabit Routing Switch Configuration Guide - Device Management 1 Displaying the Device Status accounting-scheme default domain default user-interface maximum-vty 15 user-interface con 0 user-interface vty 0 14 authentication-mode none user privilege level 15 idle-timeout 0 0 user-interface vty 16 20...
  • Page 24 Quidway S9300 Terabit Routing Switch 1 Displaying the Device Status Configuration Guide - Device Management rrpp working-mode GB diffserv domain default drop-profile default ip address 101.0.0.4 255.255.255.0 ip address 10.0.0.6 255.255.255.0 ip address 100.0.0.10 255.255.255.0 ip address 102.0.0.15 255.255.255.0 ip address 100.1.1.119 255.255.255.0...
  • Page 25 Quidway S9300 Terabit Routing Switch Configuration Guide - Device Management 1 Displaying the Device Status interface GigabitEthernet2/0/9 interface GigabitEthernet2/0/10 port default vlan 100 interface GigabitEthernet2/0/11 interface GigabitEthernet2/0/12 interface GigabitEthernet2/0/13 interface GigabitEthernet2/0/14 interface GigabitEthernet2/0/15 port default vlan 150 interface GigabitEthernet2/0/16 interface GigabitEthernet2/0/17...
  • Page 26: Displaying The Status Of The S9300

    This chapter describes how to use display commands to view the version, CPU, memory, and voltage of a device. 1.4.1 Displaying Information About the S9300 1.4.2 Displaying the Version 1.4.3 Displaying the Power Status of the S9300 1.4.4 Displaying the Board Voltage 1.4.5 Displaying the Temperature 1.4.6 Displaying the Fan Status 1.4.7 Displaying the CPU Usage...
  • Page 27: Displaying The Version

    Version information is displayed. You can run the display version command in any view to view the version of the S9300. subrack- id / slot-id can be specified to view the version of the board in a specified slot. At present, the S9300 supports only version 0.
  • Page 28: Displaying The Temperature

    Quidway S9300 Terabit Routing Switch 1 Displaying the Device Status Configuration Guide - Device Management Context Do as follows on the S9300 whose board voltage is to be viewed. Procedure Step 1 Run: display voltage { all | slot slot-id } The board voltage is displayed.
  • Page 29: Displaying The Cpu Usage

    Procedure Step 1 Run: display fan [ slot-id | all ] The fan status is displayed. You can use the command in any view to view the fan status of the S9300. ----End 1.4.7 Displaying the CPU Usage Context Do as follows on the S9300 whose CPU usage is to be viewed.
  • Page 30: Displaying The Memory Usage

    CPU Usage Stat. Tick : 0x172(CPU Tick High) 0xbe157ad5(CPU Tick Low) 1.4.8 Displaying the Memory Usage Context Do as follows on the S9300 whose memory usage is to be viewed. Procedure Run: display memory-usage [ slave | slot slot-id ] The memory usage is displayed.
  • Page 31: Displaying The Interface Status

    The version of System Management Software (SMS) and the version of the on-board Controller Area Network bus (CANbus) are displayed. You can use the command in any view to view the environment version of the S9300. ----End 1.4.10 Displaying the Interface Status Context Do as follows on the S9300 whose interface status is to be viewed.
  • Page 32: Displaying Electronic Labels

    IP Sending Frames' Format is PKTFMT_ETHNT_2, Hardware address is 00e0-fc01-0203 1.4.11 Displaying Electronic Labels Context Do as follows on the S9300 whose electronic labels are to be viewed. Procedure Step 1 Run: display elabel [ slot-id [ brief ] ] [ backplane ] Electronic labels are displayed.
  • Page 33: Displaying Alarm Information

    CLEICode= BOM= 1.4.12 Displaying Alarm Information Context Do as follows on the S9300 whose alarm information is to be viewed. Procedure Step 1 Run: display alarm { all | slot slot-id ] Alarm information during the running of the S9300 is displayed.
  • Page 34: Displaying The Health Status

    Diagnostic information about the S9300 is displayed. ----End 1.4.14 Displaying the Health Status Context Do as follows on the S9300 whose health status is to be viewed: Procedure Step 1 Run: display health The health status of the S9300 is displayed.
  • Page 35 Quidway S9300 Terabit Routing Switch Configuration Guide - Device Management 1 Displaying the Device Status 1.2V normal 1.4406 0.9604 1.2054 3.3V normal 3.9592 2.6460 3.3320 2.5V normal 2.9988 1.9992 2.5284 normal 14.3590 9.5450 12.1180 1.8V normal 2.1560 1.4406 1.8130 1.1V normal 1.3230...
  • Page 36: Displaying Information About A Transceiver On The Interface

    Configuration Guide - Device Management ------------------------------------------------------------------------------- 1.4.15 Displaying Information About a Transceiver on the Interface Context Do as follows on the S9300 whose transceiver on the interface is viewed: Procedure Step 1 Run: display transceiver interface Information about a transceiver on the interface is displayed.
  • Page 37: Information Center Configuration

    This section describes the basic principle and concepts of the information center. 2.2 Information Center Supported by the S9300 This section describes the information center features supported by the S9300. 2.3 Configuring the Information Center This section describes how to configure the information center.
  • Page 38: Introduction

    2.1 Introduction This section describes the basic principle and concepts of the information center. The information center works as the information hub of the S9300. By classifying and filtering output information, the information center helps the network administrator and developers to monitor the network operation and analyze the network fault.
  • Page 39 Quidway S9300 Terabit Routing Switch Configuration Guide - Device Management 2 Information Center Configuration Threshol Severity Level Description Error Improper operation or abnormal process of the device, which does not inflict heavy losses on the follow-up services, is still worth intense attention and in-depth analysis.
  • Page 40: Figure 2-1 Functions Of The Information Center

    Quidway S9300 Terabit Routing Switch 2 Information Center Configuration Configuration Guide - Device Management example, you can enable log information to be output to the log cache through Channel 6 rather than Channel 4. Figure 2-1 Functions of the information center...
  • Page 41 Information is saved to the log host in the file format for convenient browse. trapbuffer trapbuffer Outputs information to the trap buffer that can receive trap information. The S9300 assigns a specified area in itself as the trap buffer for recording the information. logbuffer logbuffer Outputs information to the log buffer that can receive log information.
  • Page 42: Table 2-3 Description Of Each Field In The Format Of Log Information

    HOSTNAME Host name By default, the system name is Quidway. Huawei identifier Indicates that the log is output by Huawei products. Version number Identifies the version of the log format. Module name Indicates the name of the module that outputs information to the information center.
  • Page 43: Figure 2-2 Output Format Of Trap Information

    Quidway S9300 Terabit Routing Switch Configuration Guide - Device Management 2 Information Center Configuration Output Format of Trap Information Figure 2-2 Output format of trap information TimeStamp HostName ModuleName/Severity/Brief : Description Table 2-4 describes each field in the format of trap information.
  • Page 44: Configuring The Information Center

    2.3.1 Establishing the Configuration Task Application Environment To collect debugging, log, or trap information during the running of the S9300, and to output the information to the terminal for display or to the buffer or host for storage, you need configure the information center.
  • Page 45: Optional) Naming The Information Channel

    The channel that outputs debugging information, log information, and trap information is named. ----End 2.3.4 Definining the Contents of the Information Channel Context Do as follows on the S9300 where the contents of the information channel need to be defined: Procedure Step 1 Run: system-view...
  • Page 46: Optional) Setting The Timestamp Format Of Output Information

    ----End 2.3.5 (Optional) Setting the Timestamp Format of Output Information Context Do as follows on the S9300 where the timestamp format of output information needs to be set: Procedure Step 1 Run: system-view The system view is displayed.
  • Page 47: Optional) Configuring Information Output Modes

    Sent messages = 10563, Received messages = 10601 IO Reg messages = 0 IO Sent messages = 39 For details about the display, refer to the Quidway S9300 Terabit Routing Switch - Command Reference. 2.4 (Optional) Configuring Information Output Modes This section describes how to configure information output modes of the information center.
  • Page 48: Outputting Information To The Console

    (Optional) Language used in log information and the address of the log host (Optional) Size of the log buffer and the trap buffer 2.4.2 Outputting Information to the Console Context Do as follows on the S9300 where information needs to be output to the console: Procedure Step 1 Run: system-view The system view is displayed.
  • Page 49: Outputting Information To The Telnet Terminal

    The terminal is enabled to display debugging information, log information, or trap information. ----End 2.4.3 Outputting Information to the Telnet Terminal Context Do as follows on the S9300 where information needs to be output to the Telnet terminal: Procedure Step 1 Run: system-view The system view is displayed.
  • Page 50: Outputting Information To The Log Buffer

    The SNMP agent function is enabled. ----End 2.4.5 Outputting Information to the Log Buffer Context Do as follows on the S9300 where information needs to be output to the log buffer: Procedure Step 1 Run: system-view The system view is displayed.
  • Page 51: Checking The Configuration

    Quidway S9300 Terabit Routing Switch Configuration Guide - Device Management 2 Information Center Configuration Context Do as follows on the S9300 where information needs to be output to the log host: Procedure Step 1 Run: system-view The system view is displayed.
  • Page 52: Maintaining The Information Center

    Debugging affects the performance of the S9300. Therefore, after debugging, if no special requirements are specified, disable it immediately, when the S9300 is running. As shown in Figure 2-3, there is a reachable route between Eth 0/0/0 on the S9300 and the log host. The S9300, as shown in Figure 2-3, is at the debugging stage.
  • Page 53: Figure 2-3 Typical Networking Of Outputting Information To The Console

    At the same time, the network administrator doubts whether the FTP server module on the S9300 is faulty, and needs to debug the FTP server module and view debugging information, log information, and trap information on the FTP server module. If the network administrator logs in to the S9300 through the console interface, debugging information, log information, and trap information needs to be output from the FTP server module to the console interface.
  • Page 54 2 Information Center Configuration Configuration Guide - Device Management Procedure Step 1 Enable the information center. # Enable the information center. By default, the information center of the S9300 is enabled. <Quidway> system-view [Quidway] info-center enable Info:Information center is enabled Step 2 Output information to the log host.
  • Page 55 Configuration Guide - Device Management 2 Information Center Configuration <Quidway> system-view [Quidway] info-center loghost 1.0.0.2 # Set the interface that outputs information from the S9300 to the log host to Eth 0/0/0. [Quidway] info-center loghost source ethernet0/0/0 # Verify the configuration. [Quidway] display info-center...
  • Page 56: Example For Outputting Log Information To The Log Host

    It is required that log information about all modules with severity levels of 1 to 8 be output from Ethernet 0/0/0 on the S9300 to the log host. In addition, trap information and debugging information should not be output from the S9300 to the log host.
  • Page 57 Info:Information center is enabled Step 2 Configure the information channel. # Ouput log information with severity levels 1 to 8 from all modules on the S9300 through the loghost information channel to the log host. Disable the sending of debugging information and trap information through the loghost information channel to the log host.
  • Page 58 Quidway S9300 Terabit Routing Switch 2 Information Center Configuration Configuration Guide - Device Management # Enable the terminal display of the console. Enable the corresponding terminal display to check the information type as required. [Quidway] info-center console channel 0 [Quidway] quit <Quidway>...
  • Page 59: Hardware Management

    3 Hardware Management Hardware Management About This Chapter This chapter describes hardware management on the S9300, including power on and power off of boards, electronic label backup, board reset, and master/slave switchover of the main control boards. 3.1 Introduction to Hardware Management This section describes the hardware management of the S9300.
  • Page 60: Introduction To Hardware Management

    3.2 Hardware Management Supported by the S9300 This section describes the hardware management operations supported by the S9300. The S9300 supports the following hardware operations: Powering on and powering off the board...
  • Page 61: Powering Off A Board

    Before pulling out a running board, you must power off the board. For the procedure for pulling out a board, refer to the Quidway S9300 Terabit Routing Switch Quick Installation Guide. Do as follows in any view of the S9300:...
  • Page 62: Checking The Configuration

    Quidway S9300 Terabit Routing Switch 3 Hardware Management Configuration Guide - Device Management power on slot slot-id The board is powered on. ----End 3.4.4 Checking the Configuration Context Configuring power-on and power-off of the board is complete. Procedure Step 1 Run the display power [ system ] command in any view to check power status of the board.
  • Page 63: Backing Up Electronic Labels

    3.5.2 Backing Up Electronic Labels Context The S9300 supports the electronic labels to be backed up to a CF card, an FTP server, or a TFTP server. You can perform any of the following steps as required. Backing up electronic labels to a CF card...
  • Page 64: Setting The Rotating Speed Of A Fan

    Slot number of the fan module and the rotating speed of the fan 3.6.2 Setting the Rotating Speed of a Fan Context Do as follows on the S9300 where you need to set the rotating speed of fans: Procedure Step 1 Run: system-view The system view is displayed.
  • Page 65: Checking The Configuration

    Quidway S9300 Terabit Routing Switch Configuration Guide - Device Management 3 Hardware Management set fan-speed slot slot-id percent percent The rotating speed of the fan is adjusted. By default, fans adjust their rotating speed automatically. Only users of level 2 and level 3 can change the rotating speed of fans manually.
  • Page 66: Resetting The Lpu

    CAUTION When the LPU works abnormally, try to find and remove the fault rather than resetting the LPU directly to avoid service interruption. Do as follows on the S9300 whose LPU needs to be reset: Procedure Step 1 Run: reset slot slot-id The LPU in the specified slot is reset.
  • Page 67: Resetting The Slave Main Control Unit

    None. Data Preparation None 3.8.2 Resetting the Slave Main Control Unit Context Do as follows on the S9300 whose slave main control board needs to be reset: Procedure Step 1 Run: system-view The system view is displayed. Step 2 Run: slave restart The slave main control board is reset.
  • Page 68: Establishing The Configuration Task

    3.9.3 Performing Master/Slave Switchover 3.9.4 Checking the Configuration 3.9.1 Establishing the Configuration Task Applicable Environment When double main control boards are installed on the S9300, you can configure forcible master/ slave switchover through command lines. Pre-configuration Tasks None. Data Preparation None 3.9.2 Enabling the Master/Slave Switchover...
  • Page 69: Checking The Configuration

    Configuration Guide - Device Management 3 Hardware Management The file system of the S9300 is in use. For example, a file or directory in the CF card is being created, deleted, saved, or moved. The S9300 is loading or deleting information about the LPU, including the following operations: The LPU is pulled out or plugged in with power on.
  • Page 71: Rebooting

    Configuration Guide - Device Management 4 Rebooting Rebooting About This Chapter This chapter describes how to reboot the S9300. 4.1 Process of Booting the S9300 This section describes the process of the S9300. 4.2 Process of Booting the BootROM The section describes the process of booting the bootrom.
  • Page 72: Process Of Booting The S9300

    The software running on the S9300 includes the BootROM software and system software. The BootROM software is classified into the basic BootROM and the BootLoad. After the S9300 is powered on, the basic BootROM starts to run and then boots the BootLoad. Then, the BootLoad boots the system software.
  • Page 73: Process Of Booting The Bootrom

    When Start Memory 5-Step Test ? ('t' or 'T' is test): is displayed, you can enter t to continue to check memory. Alternatively, you can enter skip to ignore checking. If you need to check the memory of the S9300 after entering skip, press the shortcut keys Ctrl +T within two seconds. The terminal displays the following message:...
  • Page 74: Process Of Booting The System Software

    : 1024MB Memory Speed : 667MHz Press Ctrl+B within 3 seconds. The S9300 prompts you to enter a password for entering the Bootload menu. The terminal displays the following message: password: If you enter a correct password, you can enter the Bootload menu. The default password is 7800.
  • Page 75: Rebooting The S9300

    Quidway S9300 Terabit Routing Switch Configuration Guide - Device Management 4 Rebooting The S9300 implements the Virtual Operating System (VOS) by adopting the technology of Distributed Object-oriented Programmable Realtime Architecture (DOPRA). The process of booting the system software is as follows: Starting at 0x400000...
  • Page 76: Optional) Rebooting The S9300 Immediately By Pressing The Power Button

    Be cautious to use the reboot command because it can break down the whole network for a short period of time. Before you reboot the S9300 through the reboot command, the system compares the current configuration with that saved in the configuration file. If they are not consistent, the system prompts you to save the current configuration.
  • Page 77: Checking The Configuration

    Be cautious to use the schedule reboot command because it can break down the whole network for a short period of time. Before you run the schedule reboot command to reboot the S9300 on schedule, check whether configuration files need be saved and ensure that correct files are used for rebooting the S9300.
  • Page 78 Quidway S9300 Terabit Routing Switch 4 Rebooting Configuration Guide - Device Management For detailed explanations on command output, refer to the Quidway S9300 Terabit Routing Switch Command Reference. Huawei Proprietary and Confidential Issue 02 (2009-08-06) Copyright © Huawei Technologies Co., Ltd.
  • Page 79: Debugging And Diagnosis

    This chapter describes the principle and methods of debugging devices. 5.1 Introduction to the Debugging Function 5.2 Debugging the S9300 This section describes how to debug the S9300. 5.3 Configuration Examples This section provides a configuration example of the debugging function.
  • Page 80: Introduction To The Debugging Function

    Configuration Guide - Device Management 5.1 Introduction to the Debugging Function The S9300 provides the debugging for the supported protocols and functions. You can diagnose and locate faults on the S9300 through the debugging function. You can control whether to output and display debugging information through two switches,...
  • Page 81: Enabling Debugging

    Quidway S9300 Terabit Routing Switch Configuration Guide - Device Management 5 Debugging and Diagnosis Applicable Environment To debug a feature of the S9300, you can enable the debugging function. Pre-configuration Tasks None. Data Preparation To enable the debugging function on the S9300, you need the following data.
  • Page 82: Disabling Debugging

    Quidway S9300 Terabit Routing Switch 5 Debugging and Diagnosis Configuration Guide - Device Management Context Do as follows on the S9300 that is enabled with the debugging function to set the S9300 to output the debugging information to a terminal: Procedure Step 1 Run: system-view The system view is displayed.
  • Page 83: Configuration Examples

    S9300 (S9300-B) and Router fails; however, you cannot definitely know on which device the fault occurs. After confirming that ARP entries are correct and the boards on S9300-B are in the normal state, you can run the debugging command to enable ICMP module debugging because the ping command is executed based on ICMP messages.
  • Page 84 IP address of Router (2.1.1.2/8) Procedure Step 1 Enable the terminal display function. # Run the terminal monitor and the terminal debugging commands on S9300-B to enable S9300-B to display debugging information. <Quidway> terminal monitor Info:Current terminal monitor is on <Quidway>...
  • Page 85 Quidway S9300 Terabit Routing Switch Configuration Guide - Device Management 5 Debugging and Diagnosis Configuration Files None. Issue 02 (2009-08-06) Huawei Proprietary and Confidential Copyright © Huawei Technologies Co., Ltd.
  • Page 87: Mirroring Configuration

    This section describes the basic concepts of port mirroring and flow mirroring. 6.2 Mirroring Features Supported by the S9300 This section describes the mirroring features supported by the S9300. 6.3 Logical Relationships Between Configuration Tasks This section describes the logical relationships between the configuration tasks.
  • Page 88: Introduction To Mirroring

    This section describes the mirroring features supported by the S9300. Port Mirroring For port mirroring, the S9300 copies the packets passing through a mirroring interface and then sends the packets to a specified observing interface for analysis and monitoring. During port mirroring, all the packets passing through a mirroring interface are copied to an observing interface.
  • Page 89: Figure 6-2 Networking Diagram Of Flow Mirroring

    If a monitoring host is connected to the device where an observing interface is located – over a Layer 2 network, the S9300 adds a VLAN tag to packets sent from a mirroring interface and then broadcasts the packets in the VLAN through the observing interface.
  • Page 90: Logical Relationships Between Configuration Tasks

    6.4.4 Checking the Configuration 6.4.1 Establishing the Configuration Task Applicable Environment To analyze or monitor the packets passing through an interface on the S9300, you can configure local port mirroring when a monitoring device is directly connected to an observing interface. Pre-configuration Tasks...
  • Page 91: Configuring A Local Observing Interface

    6 Mirroring Configuration Data Direction to which packets are mirrored 6.4.2 Configuring a Local Observing Interface Context Do as follows on the S9300 where local port mirroring needs to be configured. Procedure Step 1 Run: system-view The system view is displayed.
  • Page 92: Checking The Configuration

    6.5.1 Establishing the Configuration Task Applicable Environment To analyze or monitor the packets passing through an interface on the S9300, you can configure remote port mirroring when a monitoring device is connected to an observing interface over a Layer 2 or Layer 3 network.
  • Page 93: Configuring A Remote Observing Interface

    You can use remote port mirroring in the following modes: IP mode In IP mode, the S9300 adds a GRE header to the packets to be mirrored so that the packets can reach the remote monitoring device across a Layer 3 network. The destination IP address of the remote monitoring device is specified by dest-ip-address.
  • Page 94: Checking The Configuration

    6.6.7 Checking the Configuration 6.6.1 Establishing the Configuration Task Applicable Environment To analyze or monitor the packets of the same attributes passing through an interface on the S9300, you can configure flow mirroring. Pre-configuration Tasks None Data Preparation To configure flow mirroring, you need the following data.
  • Page 95: Configuring An Observing Interface

    Quidway S9300 Terabit Routing Switch Configuration Guide — Device Management (V100R001_01). 6.6.4 Creating a Traffic Behavior Context Do as follows on the S9300 where a traffic behavior needs to be created. Issue 02 (2009-08-06) Huawei Proprietary and Confidential Copyright © Huawei Technologies Co., Ltd.
  • Page 96: Creating A Traffic Policy

    6.6.3 Configuring Complex Traffic Classification. ----End 6.6.5 Creating a Traffic Policy Context Do as follows on the S9300 where a traffic policy for flow mirroring needs to be created. Procedure Step 1 Run: system-view The system view is displayed. Step 2 Run: traffic policy policy-name A traffic policy is created and the traffic policy view is displayed.
  • Page 97: Checking The Configuration

    Quidway S9300 Terabit Routing Switch Configuration Guide - Device Management 6 Mirroring Configuration Procedure Step 1 Run: system-view The system view is displayed. Step 2 Run: interface interface-type interface-number The flow mirroring interface view is displayed. Step 3 Run: traffic-policy policy-name { inbound | outbound } The traffic policy in which a traffic classifier is bound to a traffic behavior is applied to the flow mirroring interface.
  • Page 98: Configuration Examples

    The R&D department and marketing department access the S9300 through GE 1/0/1 and GE1/0/2; a data detection device, that is, a server, is connected to GE 1/0/3 of the S9300. It is required that the server should monitor received and sent packets of the R&D department and marketing department through local port mirroring.
  • Page 99 # Configure GE 1/0/3 on the S9300 as a local observing interface. [S9300] observe-port 1 interface gigabitethernet1/0/3 Step 3 Configure local mirroring interfaces. # Configure GE 1/0/1 on the S9300 as a local mirroring interface to monitor received and sent packets of the finance department. [S9300] interface GigabitEthernet 1/0/1...
  • Page 100 GE1/0/3 is the sum of packets on GE 1/0/1 and GE 1/0/2. On the server, you can view that all the packets received and sent on GE 1/0/1 and GE 1/0/2. This indicates that packets on GE 1/0/1 and GE 1/0/2 are mirrored by the S9300. <S9300> display interface GigabitEthernet 1/0/1...
  • Page 101 Quidway S9300 Terabit Routing Switch Configuration Guide - Device Management 6 Mirroring Configuration interface Vlanif3 ip address 192.168.1.1 255.255.255.0 interface GigabitEthernet1/0/1 port link-type trunk port trunk pvid vlan 1 port trunk allow-pass vlan 1 port-mirroring to observe-port 1 both interface GigabitEthernet1/0/2...
  • Page 102 Quidway S9300 Terabit Routing Switch 6 Mirroring Configuration Configuration Guide - Device Management Data Preparation To complete the configuration, you need the following data: ID of the VLAN to which packets are mirrored Index of the observing interface Procedure Step 1 Configure each interface to ensure that the routes between Layer 2 devices are reachable.
  • Page 103 Quidway S9300 Terabit Routing Switch Configuration Guide - Device Management 6 Mirroring Configuration Step 3 Configure a remote mirroring interface. # Configure GE 1/0/2 on S9300A as a remote mirroring interface to monitor received and sent packets of the marketing department.
  • Page 104 The R&D department and marketing department are connected to GE 1/0/1 and GE1/0/2 of the S9300 through LSWA and LSWB. It is required that the S9300 should monitor the packets with the 802.1p priority as 6 and the outgoing interface as GE 1/0/3 of the R&D department and marketing department through local port mirroring.
  • Page 105 Configuration Guide - Device Management 6 Mirroring Configuration Create a VLAN on the S9300 and add GE 1/0/1, GE 1/0/2, and GE 1/0/3 to the VLAN. Configure GE 1/0/3 as an observing interface. Create a traffic classifier and set the traffic classification rule of matching the packets with the 802.1p priority as 6.
  • Page 106 1 # Check the number of packets forwarded by the S9300 on GE 1/0/1, GE 1/0/2, and GE 1/0/3, or check all the packets received from and sent to GE 1/0/1 and GE 1/0/2 on the server. This indicates that packets on GE 1/0/1 and GE 1/0/2 are mirrored by the S9300.
  • Page 107 Quidway S9300 Terabit Routing Switch Configuration Guide - Device Management 6 Mirroring Configuration IP Sending Frames' Format is PKTFMT_ETHNT_2, Hardware address is 00e0-fc00-1704 Port Mode: FORCE FIBER Speed : 1000, Loopback: NONE Duplex: FULL, Negotiation: ENABLE : NORMAL Last 300 seconds input rate 9849952 bits/sec, 19238 packets/sec...
  • Page 108 Quidway S9300 Terabit Routing Switch 6 Mirroring Configuration Configuration Guide - Device Management return 6-22 Huawei Proprietary and Confidential Issue 02 (2009-08-06) Copyright © Huawei Technologies Co., Ltd.

Table of Contents