Configuration Guide - Interface Management(V200R002C00_02)

download Configuration Guide - Interface Management(V200R002C00_02)

of 90

description

CLI Huawei

Transcript of Configuration Guide - Interface Management(V200R002C00_02)

  • Huawei AR150&200 Series Enterprise RoutersV200R002C00

    Configuration Guide - InterfaceManagement

    Issue 02Date 2012-03-30

    HUAWEI TECHNOLOGIES CO., LTD.

  • Copyright Huawei Technologies Co., Ltd. 2012. All rights reserved.No part of this document may be reproduced or transmitted in any form or by any means without prior writtenconsent of Huawei Technologies Co., Ltd. Trademarks and Permissions

    and other Huawei trademarks are trademarks of Huawei Technologies Co., Ltd.All other trademarks and trade names mentioned in this document are the property of their respective holders. NoticeThe purchased products, services and features are stipulated by the contract made between Huawei and thecustomer. All or part of the products, services and features described in this document may not be within thepurchase scope or the usage scope. Unless otherwise specified in the contract, all statements, information,and recommendations in this document are provided "AS IS" without warranties, guarantees or representationsof any kind, either express or implied.

    The information in this document is subject to change without notice. Every effort has been made in thepreparation of this document to ensure accuracy of the contents, but all statements, information, andrecommendations in this document do not constitute the warranty of any kind, express or implied. Huawei Technologies Co., Ltd.Address: Huawei Industrial Base

    Bantian, LonggangShenzhen 518129People's Republic of China

    Website: http://www.huawei.comEmail: [email protected]

    Issue 02 (2012-03-30) Huawei Proprietary and ConfidentialCopyright Huawei Technologies Co., Ltd.

    i

  • About This Document

    Intended AudienceThis document provides the basic concepts, configuration procedures, and configurationexamples of the interfaces supported by the AR150/200.This document is intended for:l Data configuration engineersl Commissioning engineersl Network monitoring engineersl System maintenance engineers

    Symbol ConventionsThe symbols that may be found in this document are defined as follows.

    Symbol Description

    DANGERIndicates a hazard with a high level of risk, which if notavoided, will result in death or serious injury.

    WARNINGIndicates a hazard with a medium or low level of risk, whichif not avoided, could result in minor or moderate injury.

    CAUTIONIndicates a potentially hazardous situation, which if notavoided, could result in equipment damage, data loss,performance degradation, or unexpected results.

    TIP Indicates a tip that may help you solve a problem or savetime.

    NOTE Provides additional information to emphasize or supplementimportant points of the main text.

    Huawei AR150&200 Series Enterprise RoutersConfiguration Guide - Interface Management About This Document

    Issue 02 (2012-03-30) Huawei Proprietary and ConfidentialCopyright Huawei Technologies Co., Ltd.

    ii

  • Command ConventionsThe command conventions that may be found in this document are defined as follows.

    Convention DescriptionBoldface The keywords of a command line are in boldface.Italic Command arguments are in italics.[ ] Items (keywords or arguments) in brackets [ ] are optional.{ x | y | ... } Optional items are grouped in braces and separated by

    vertical bars. One item is selected.[ x | y | ... ] Optional items are grouped in brackets and separated by

    vertical bars. One item is selected or no item is selected.{ x | y | ... }* Optional items are grouped in braces and separated by

    vertical bars. A minimum of one item or a maximum of allitems can be selected.

    [ x | y | ... ]* Optional items are grouped in brackets and separated byvertical bars. Several items or no item can be selected.

    & The parameter before the & sign can be repeated 1 to n times.# A line starting with the # sign is comments.

    Interface Numbering ConventionsInterface numbers used in this manual are examples. In device configuration, use the existinginterface numbers on devices.

    Change HistoryUpdates between document issues are cumulative. Therefore, the latest document issue containsall updates made in previous issues.

    Changes in Issue 02 (2012-03-30)Based on issue 01 (2011-12-30), the document is updated as follows:The following information is added:l 5.4.6 Configuring a Capability on an G.SHDSL Interfacel 5.4.7 Setting the SNR on a G.SHDSL Interface

    Huawei AR150&200 Series Enterprise RoutersConfiguration Guide - Interface Management About This Document

    Issue 02 (2012-03-30) Huawei Proprietary and ConfidentialCopyright Huawei Technologies Co., Ltd.

    iii

  • Changes in Issue 01 (2011-12-30)Initial commercial release.

    Huawei AR150&200 Series Enterprise RoutersConfiguration Guide - Interface Management About This Document

    Issue 02 (2012-03-30) Huawei Proprietary and ConfidentialCopyright Huawei Technologies Co., Ltd.

    iv

  • Contents

    About This Document.....................................................................................................................ii1 Interface Overview........................................................................................................................1

    1.1 Interface Types...................................................................................................................................................21.2 Interface Numbering...........................................................................................................................................4

    2 Interface Basic Configuration.....................................................................................................62.1 Basic Interface Configuration.............................................................................................................................72.2 Basic Interface Configuration Supported by the AR150/200.............................................................................72.3 Configuring an Interface Description.................................................................................................................72.4 Configuring the Interval for Collecting Traffic Statistics on an Interface..........................................................8

    2.4.1 Establishing the Configuration Task.........................................................................................................82.4.2 Setting the Global Interval for Collecting Traffic Statistics......................................................................92.4.3 Setting the Interval for Collecting Statistics of Traffic on an Interface....................................................92.4.4 Checking the Configuration.....................................................................................................................10

    2.5 Maintaining Interface Basic Configuration......................................................................................................112.5.1 Monitoring Interface Information............................................................................................................112.5.2 Clearing Statistics....................................................................................................................................12

    3 Ethernet Interface Configuration.............................................................................................133.1 Introduction to Ethernet Interfaces...................................................................................................................143.2 Ethernet Interface Features Supported by the AR150/200...............................................................................153.3 Configuring General Attributes of Ethernet Interfaces....................................................................................15

    3.3.1 Establishing the Configuration Task.......................................................................................................153.3.2 (Optional) Configuring a Port Group......................................................................................................163.3.3 Configuring the Auto-Negotiation Mode................................................................................................173.3.4 Setting the Duplex Mode for an Ethernet Interface.................................................................................183.3.5 Setting the Rate for an Ethernet Interface................................................................................................193.3.6 Configuring the Outbound and Inbound Bandwidth Utilization of an Ethernet interface......................203.3.7 Configuring the Network Cable Type for an Ethernet Interface.............................................................203.3.8 Checking the Configuration.....................................................................................................................21

    3.4 Configuring Layer 2 Ethernet Interface............................................................................................................223.4.1 Establishing the Configuration Task.......................................................................................................22

    3.5 Configuring Port Isolation................................................................................................................................233.5.1 Configuring Flow Control.......................................................................................................................24

    Huawei AR150&200 Series Enterprise RoutersConfiguration Guide - Interface Management Contents

    Issue 02 (2012-03-30) Huawei Proprietary and ConfidentialCopyright Huawei Technologies Co., Ltd.

    v

  • 3.5.2 Checking the Configuration.....................................................................................................................253.6 Maintaining an Ethernet Interface....................................................................................................................26

    3.6.1 Configuring Loopback Detection............................................................................................................263.6.2 Configuring Cable Detection...................................................................................................................27

    3.7 Configuration Examples...................................................................................................................................273.7.1 Example for Configuring the Auto-Negotiation Rate Range..................................................................273.7.2 Example for Configuring Port Isolation..................................................................................................29

    4 ADSL Interface Configuration..................................................................................................324.1 ADSL Overview...............................................................................................................................................334.2 ADSL Features Supported by the AR150/200.................................................................................................344.3 Setting Parameters for an ADSL Interface.......................................................................................................36

    4.3.1 Establishing the Configuration Task.......................................................................................................364.3.2 Deactivating an ADSL Interface.............................................................................................................374.3.3 Setting Parameters for an ADSL Interface..............................................................................................384.3.4 Activating an ADSL Interface.................................................................................................................394.3.5 Checking the Configuration.....................................................................................................................40

    4.4 Configuration Examples...................................................................................................................................414.4.1 Example for Configuring an ADSL Interface.........................................................................................41

    5 G.SHDSL Interface Configuration...........................................................................................455.1 G.SHDSL Overview.........................................................................................................................................465.2 G.SHDSL Features Supported by the AR150/200...........................................................................................475.3 Setting the Working Mode for a G.SHDSL Interface......................................................................................495.4 Setting Parameters for a G.SHDSL Interface...................................................................................................49

    5.4.1 Establishing the Configuration Task.......................................................................................................495.4.2 Deactivating a G.SHDSL Interface.........................................................................................................505.4.3 Configuring G.SHDSL Interface Binding...............................................................................................515.4.4 Setting the Transmission Standard for a G.SHDSL Interface.................................................................525.4.5 Setting the PSD Mode for a G.SHDSL Interface....................................................................................525.4.6 Configuring a Capability on an G.SHDSL Interface...............................................................................535.4.7 Setting the SNR on a G.SHDSL Interface...............................................................................................555.4.8 (Optional) Enabling the Line Probing Function......................................................................................565.4.9 Activating a G.SHDSL Interface.............................................................................................................575.4.10 Checking the Configuration...................................................................................................................57

    5.5 Configuration Examples...................................................................................................................................585.5.1 Example for Configuring G.SHDSL Interfaces......................................................................................59

    6 Logical Interface Configuration................................................................................................636.1 Introduction to Logical Interfaces....................................................................................................................646.2 Features of the AR150/200 Logical Interfaces.................................................................................................646.3 Configuring a Sub-interface.............................................................................................................................64

    6.3.1 Configuring an Ethernet Sub-interface....................................................................................................656.3.1.1 Establishing the Configuration Task..............................................................................................65

    Huawei AR150&200 Series Enterprise RoutersConfiguration Guide - Interface Management Contents

    Issue 02 (2012-03-30) Huawei Proprietary and ConfidentialCopyright Huawei Technologies Co., Ltd.

    vi

  • 6.3.1.2 Creating an Ethernet Sub-interface.................................................................................................656.3.1.3 Configuring an IP address for an Ethernet Sub-interface...............................................................666.3.1.4 (Optional) Configuring the Traffic Statistics Function on an Ethernet Sub-interface....................666.3.1.5 Configuring an Ethernet Sub-interface for Dot1q VLAN Termination.........................................676.3.1.6 Checking the Configuration............................................................................................................68

    6.3.2 Configuring an Eth-Trunk Sub-interface.................................................................................................686.3.2.1 Establishing the Configuration Task..............................................................................................686.3.2.2 Creating an Eth-Trunk Sub-interface..............................................................................................696.3.2.3 Configuring an IP address for an Eth-Trunk Sub-interface............................................................706.3.2.4 Configuring an Eth-Trunk Sub-interface for Dot1q VLAN Termination......................................706.3.2.5 Checking the Configuration............................................................................................................71

    6.3.3 Configuring ATM Sub-interfaces............................................................................................................726.4 Configuring a Loopback Interface....................................................................................................................72

    6.4.1 Establishing the Configuration Task.......................................................................................................726.4.2 Creating a Loopback Interface and Configuring Its IP Address..............................................................736.4.3 Checking the Configuration.....................................................................................................................73

    6.5 Configuring a NULL Interface.........................................................................................................................746.5.1 Establishing the Configuration Task.......................................................................................................746.5.2 Entering the Null Interface View.............................................................................................................746.5.3 Checking the Configuration.....................................................................................................................75

    6.6 Configuring an MP Group Interface.................................................................................................................756.7 Configuring a Dialer Interface..........................................................................................................................776.8 Configuring Virtual-Ethernet Interfaces...........................................................................................................78

    6.8.1 Establishing the Configuration Task.......................................................................................................786.8.2 Creating a VE Interface...........................................................................................................................786.8.3 Checking the Configuration.....................................................................................................................79

    6.9 Configuring Virtual-Template Interfaces.........................................................................................................796.9.1 Establishing the Configuration Task.......................................................................................................806.9.2 Configuring the IP Address of a VT Interface.........................................................................................806.9.3 (Optional) Setting the Maximum Number of Links Supported by a VT Interface.................................816.9.4 Checking the Configuration.....................................................................................................................82

    Huawei AR150&200 Series Enterprise RoutersConfiguration Guide - Interface Management Contents

    Issue 02 (2012-03-30) Huawei Proprietary and ConfidentialCopyright Huawei Technologies Co., Ltd.

    vii

  • 1 Interface OverviewAbout This Chapter

    This section describes common interface types and the interface numbering method.1.1 Interface TypesInterfaces on the router are used to exchange data and interact with other network devices, andare classified into physical interfaces and logical interfaces.1.2 Interface NumberingThis section describes the interface numbering scheme on the AR routers.

    Huawei AR150&200 Series Enterprise RoutersConfiguration Guide - Interface Management 1 Interface Overview

    Issue 02 (2012-03-30) Huawei Proprietary and ConfidentialCopyright Huawei Technologies Co., Ltd.

    1

  • 1.1 Interface TypesInterfaces on the router are used to exchange data and interact with other network devices, andare classified into physical interfaces and logical interfaces.

    Physical InterfacesPhysical interfaces exist on boards.Physical interfaces are classified into the following types:l LAN-side interface: is used by the router to exchange data with network devices on LANs.l WAN-side interface: is used by the router to exchange data with devices on external

    networks.

    Table 1-1 Physical interface typesType Sub-type Description

    LAN-sideinterface

    Fast Ethernet (FE)interface

    A LAN-side FE interface works at the data linklayer, provides a maximum of 100 Mbit/stransmission rate, processes Layer 2 protocolpackets, and implements Layer 2 forwarding.

    WAN-sideinterface

    FE interface A WAN-side FE interface works at the networklayer, can be assigned an IP address, provides amaximum of 100 Mbit/s transmission rate,processes Layer 3 protocol packets, and providesthe routing function.

    Asymmetric DigitalSubscriber Line (ADSL)interface

    An ADSL interface provides asymmetrictransmit and receive rates and implements fastdata transmission over copper twisted pairs byemploying high frequencies that are not used byregular telephone lines.NOTE

    Only the AR157 AR206, AR207, AR207V, andAR207V-P support ADSL interfaces.

    G.Single-pair High-speed Digital SubscriberLine (G.SHDSL)interface

    A G.SHDSL interface provides symmetrictransmit and receive rates and implements fastdata transmission over copper twisted pairs byemploying high frequencies that are not used byregular telephone lines.NOTE

    Only the AR208E series support G.SHDSL interfaces.

    Huawei AR150&200 Series Enterprise RoutersConfiguration Guide - Interface Management 1 Interface Overview

    Issue 02 (2012-03-30) Huawei Proprietary and ConfidentialCopyright Huawei Technologies Co., Ltd.

    2

  • Type Sub-type Description

    Voice Interfaces Voice interfaces are classified into the followinginterfaces:l An FXS interface connects to a POTS phone.

    To achieve high transmission efficiency onan FXS interface, properly set parameters forthe FXS interface on the AR150/200,including physical attributes, electricalattributes, and KC attributes.

    l An FXO interface connects to a PSTN. Toachieve high transmission efficiency on anFXO interface, properly set parameters forthe FXO interface on the AR150/200,including the gain, impedance, ring current,and feed.

    NOTEOnly the AR207V and AR207V-P support voiceinterfaces.

    Logical InterfacesLogical interfaces are manually configured interfaces and can be used to exchange data but donot exist physically.

    Table 1-2 Logical interface typesType Sub-type Description

    LAN-sideinterface

    LAN-side Eth-Trunkinterface

    A LAN-side Eth-Trunk interface has Layer 2features and is formed by binding multiple Layer2 Ethernet interfaces to provide more bandwidthand higher transmission reliability.

    WAN-sideinterface

    Virtual templateinterface

    A virtual template interface is used when PPPneeds to transmit packets of other link layerprotocols.

    Virtual Ethernet interface A virtual Ethernet interface is used when theEthernet needs to transmit packets of other linklayer protocols.

    MP group interface An MP group interface is dedicated to MPapplications, can be used to perform MP binding,and is usually used in scenarios requiringdynamic bandwidth.

    Dialer interface A dialer interface implements the dialer controlcenter (DCC) function. A physical interface canbe bound to a dialer interface to inherit theconfiguration of the dialer interface.

    Huawei AR150&200 Series Enterprise RoutersConfiguration Guide - Interface Management 1 Interface Overview

    Issue 02 (2012-03-30) Huawei Proprietary and ConfidentialCopyright Huawei Technologies Co., Ltd.

    3

  • Type Sub-type DescriptionWAN-side Eth-Trunkinterface

    A WAN-side Eth-Trunk interface has Layer 3features and is formed by binding multiple Layer3 Ethernet interfaces to provide more bandwidthand higher transmission reliability.

    Tunnel interface A tunnel interface has Layer 3 features, transmitspackets, and identifies and processes packetstransmitted over a tunnel.

    VLANIF interface A VLANIF interface has Layer 3 features andenables VLANs to communicate after beingassigned an IP address.

    Sub-interface A sub-interface is configured on a main interfaceto allow the local device to communicate withmultiple peer devices.

    Multilink Frame Relay(MFR) interface

    An MFR interface is formed by binding multiplephysical interfaces including channelized serialinterfaces to provide more bandwidth.

    Loopback interface A loopback interface is always Up and can beconfigured with a 32-bit subnet mask.

    Null interface A null interface is used to filter routes becauseany data packets received by the null interfaceare discarded.

    Bridge interface A bridge interface has Layer 3 features andenables users on different network segments ona transparent bridge to communicate after beingassigned an IP address.

    1.2 Interface NumberingThis section describes the interface numbering scheme on the AR routers.On the AR routers, interfaces are numbered in the format of slot ID/subcard ID/interfacesequence number.l Slot ID

    The slot ID specifies the ID of the slot where a card resides. The SRU of the AR200 is integrated with the chassis, so the slot ID is fixed as 0.

    l Subcard IDThe subcard ID specifies the ID of a subcard. The cards of AR routers series routers do notsupport subcards. Therefore, the subcard ID of the AR routers is fixed as 0.

    l Interface sequence numberThe interface sequence number indicates the number of each interface on a card. There is only one row of interfaces on the interface card. These interfaces are numbered

    from left to right starting with 0.

    Huawei AR150&200 Series Enterprise RoutersConfiguration Guide - Interface Management 1 Interface Overview

    Issue 02 (2012-03-30) Huawei Proprietary and ConfidentialCopyright Huawei Technologies Co., Ltd.

    4

  • 0 1 2 3

    There are two rows of interfaces on the interface card. These interfaces are numberedfrom bottom to top and left to right starting with 0.

    1 3 5 7 9 11

    0 2 4 6 8 10

    Huawei AR150&200 Series Enterprise RoutersConfiguration Guide - Interface Management 1 Interface Overview

    Issue 02 (2012-03-30) Huawei Proprietary and ConfidentialCopyright Huawei Technologies Co., Ltd.

    5

  • 2 Interface Basic ConfigurationAbout This Chapter

    This chapter describes common interface types and how to view the interface information andconfigure the interval for collecting the interface traffic.2.1 Basic Interface ConfigurationThis section describes the basic interface configuration of the AR150/200.2.2 Basic Interface Configuration Supported by the AR150/200This section describes the basic interface configurations supported by the AR150/200.2.3 Configuring an Interface DescriptionThis section describes how to configure interface descriptions that help you to recognize thefunctions of the interfaces.2.4 Configuring the Interval for Collecting Traffic Statistics on an InterfaceThis section describes how to configure the interval for collecting traffic statistics on allinterfaces or a specified interface. Traffic statistics help you to monitor network conditions.2.5 Maintaining Interface Basic ConfigurationFor maintenance purposes, you need to monitor interface information and clear interfacestatistics to collect new statistics.

    Huawei AR150&200 Series Enterprise RoutersConfiguration Guide - Interface Management 2 Interface Basic Configuration

    Issue 02 (2012-03-30) Huawei Proprietary and ConfidentialCopyright Huawei Technologies Co., Ltd.

    6

  • 2.1 Basic Interface ConfigurationThis section describes the basic interface configuration of the AR150/200.To maintain many interfaces, you need to describe these interfaces. Interface descriptions recordthe use of interfaces and help rapidly identify interfaces.To set the interval for collecting the statistics of traffic on the interface so that you can easilycollect the interface traffic and rate, you can configure the function of collecting the statistics oftraffic on the interface.

    2.2 Basic Interface Configuration Supported by theAR150/200

    This section describes the basic interface configurations supported by the AR150/200.The AR150/200 supports the configuration of interface description and interval for collectingthe statistics on interface traffic.In the system view and interface view, you can configure the interval for collecting the statisticsof traffic on the interface. In this manner, you can flexibly collect the statistics of the traffic rateof all or partial interfaces.

    2.3 Configuring an Interface DescriptionThis section describes how to configure interface descriptions that help you to recognize thefunctions of the interfaces.

    ContextTo maintain a large number of interfaces, you need to set interface descriptions to accuratelyand rapidly recognize the interfaces.

    ProcedureStep 1 Run:

    system-view

    The system view is displayed.Step 2 Depending on the type of interface, adjust the command to enter the interface view.

    Run the interface interface-type interface-number command to enter the interface view.Step 3 Run:

    description interface-description

    The description of the interface is configured.----End

    Huawei AR150&200 Series Enterprise RoutersConfiguration Guide - Interface Management 2 Interface Basic Configuration

    Issue 02 (2012-03-30) Huawei Proprietary and ConfidentialCopyright Huawei Technologies Co., Ltd.

    7

  • ExampleRun the display interface description command. If the description of the interface is displayed,it means that the configuration succeeds. For example: display interface description ethernet 2/0/0PHY: Physical *down: administratively down ^down: standby (l): loopback (s): spoofing (b): BFD down (d): Dampening Suppressed Interface PHY Protocol Description Eth2/0/0 up up HUAWEI, AR Series, Ethernet2/0/0 Interface

    2.4 Configuring the Interval for Collecting Traffic Statisticson an Interface

    This section describes how to configure the interval for collecting traffic statistics on allinterfaces or a specified interface. Traffic statistics help you to monitor network conditions.

    2.4.1 Establishing the Configuration TaskBefore configuring the interval for collecting traffic statistics on an interface, familiarize yourselfwith the applicable environment, pre-configuration tasks, and required data.

    Applicable EnvironmentTo easily collect the traffic volume and rate on interfaces, you can configure the interval forcollecting traffic statistics. You can collect traffic statistics on all interfaces or a specified interface by configuring theinterval for collecting traffic statistics in the system view or interface view.

    NOTE

    l The interval set in the interface view takes effect on the current interface.l The interval set in the system view takes effect on all the interfaces that use the default interval set in

    the interface view.

    Pre-configuration TasksBefore configuring the interval for collecting the traffic statistics on an interface, complete thefollowing task:l Powering on and starting the router

    Data PreparationTo configure the interval for collecting the traffic statistics on an interface, you need thefollowing data.

    Huawei AR150&200 Series Enterprise RoutersConfiguration Guide - Interface Management 2 Interface Basic Configuration

    Issue 02 (2012-03-30) Huawei Proprietary and ConfidentialCopyright Huawei Technologies Co., Ltd.

    8

  • No. Data1 Interface type and number2 Interval for collecting the traffic statistics

    2.4.2 Setting the Global Interval for Collecting Traffic StatisticsThe global interval for collecting traffic statistics takes effect on all the interfaces that use thedefault interval. This helps you configure the interval for collecting traffic statistics for multipleinterfaces at a time.

    ContextPerform the following steps on the router to configure the global interval for collecting trafficstatistics.

    ProcedureStep 1 Run:

    system-view

    The system view is displayed.Step 2 Run:

    set flow-stat interval interval

    The global interval for collecting traffic statistics is configured.----End

    2.4.3 Setting the Interval for Collecting Statistics of Traffic on anInterface

    The procedure that follows sets the interval for collecting traffic statistics on a single interface.After the interval is configured, you can view the traffic volume and rate on the interface.

    ContextPerform the following steps on the router to configure interval for collecting traffic statistics onan interface:

    ProcedureStep 1 Run:

    system-view

    The system view is displayed.Step 2 Run:

    interface interface-type interface-number

    Huawei AR150&200 Series Enterprise RoutersConfiguration Guide - Interface Management 2 Interface Basic Configuration

    Issue 02 (2012-03-30) Huawei Proprietary and ConfidentialCopyright Huawei Technologies Co., Ltd.

    9

  • The interface view is displayed.Step 3 Run:

    set flow-stat interval interval

    The interval for collecting traffic statistics on the interface is configured.----End

    2.4.4 Checking the ConfigurationAfter configuring the interval for collecting traffic statistics on an interface, you need to checkwhether the configuration is correct. In addition, you can view the traffic volume and rate onthe interface.

    PrerequisitesThe interval for collecting traffic statistics on an interface or the global interval has beenconfigured.

    Procedurel Run thel In the system view, run the display this command to check the global interval for collecting

    traffic statistics.l Run the display interface [ interface-type [ interface-number ] | slot slot-id ] command to

    check the interval for collecting traffic statistics on an interface.----End

    ExampleRun the display this command to view the global interval for collecting traffic statistics. Runthe display interface [ interface-type [ interface-number ] | slot slot-id ] command to view theglobal interval for collecting the traffic statistics. You can see that the interval for collectingtraffic statistics on all the interfaces that previously use the default interval changes to the globalinterval. If a non-default interval is configured on an interface, the interval remains unchanged.[Huawei] display this# set flow-stat interval 100#return display interface ethernet 0/0/0Ethernet0/0/0 current state : UP Line protocol current state : UP Description:HUAWEI, AR Series, Ethernet0/0/0 Interface Switch Port, PVID : 1, TPID : 8100(Hex), The Maximum Frame Length is 1628 IP Sending Frames' Format is PKTFMT_ETHNT_2, Hardware address is 00e0-fc01-0005 Last physical up time : 2011-01-27 14:26:10 Last physical down time : 2011-01-27 14:26:06 Current system time: 2011-01-27 14:38:18 Port Mode: COMMON COPPER Speed : 100, Loopback: NONE Duplex: FULL, Negotiation: ENABLE Mdi : AUTO Last 100 seconds input rate 104 bits/sec, 0 packets/sec Last 100 seconds output rate 584 bits/sec, 0 packets/sec Input peak rate 1104 bits/sec,Record time: 2011-01-28 16:25:35 Output peak rate 1832 bits/sec,Record time: 2011-01-28 16:26:03

    Huawei AR150&200 Series Enterprise RoutersConfiguration Guide - Interface Management 2 Interface Basic Configuration

    Issue 02 (2012-03-30) Huawei Proprietary and ConfidentialCopyright Huawei Technologies Co., Ltd.

    10

  • Input: 2671 packets, 1234002 bytes Unicast: 0, Multicast: 2671 Broadcast: 0, Jumbo: 0 Discard: 0, Total Error: 0 CRC: 0, Giants: 0 Jabbers: 0, Throttles: 0 Runts: 0, Alignments: 0 Symbols: 0, Ignoreds: 0 Frames: 0 Output: 41054 packets, 5892638 bytes Unicast: 0, Multicast: 41054 Broadcast: 0, Jumbo: 0 Discard: 0, Total Error: 0 Collisions: 0, ExcessiveCollisions: 0 Late Collisions: 0, Deferreds: 0 Buffers Purged: 0 Input bandwidth utilization threshold : 100.00% Output bandwidth utilization threshold: 100.00% Input bandwidth utilization : 0% Output bandwidth utilization : 0.01%

    2.5 Maintaining Interface Basic ConfigurationFor maintenance purposes, you need to monitor interface information and clear interfacestatistics to collect new statistics.

    2.5.1 Monitoring Interface InformationMonitoring interface statistics helps you know the traffic volume and rate on interfaces, and thusanalyze network conditions.

    ContextRunning the display interface command, you can view the current status and description of theinterface and the statistics of the received and sent packets.

    Procedurel Run the display interface [ interface-type [ interface-number ] | slot slot-id ] command to

    check the current operating status of the interface and statistics collected on the interface.l Run the display interface brief command in any view to check the brief information about

    all the interfaces on the device, including the physical status, protocol status, and bandwidthutilization of the interface.

    l Run the display ip interface [ interface-type interface-number ] command in any view tocheck the IP configuration of the interface.

    l Run one of the following commands in any view to check brief IP configuration of theinterface. display ip interface brief [ interface-type [ interface-number ] ]

    ----End

    Huawei AR150&200 Series Enterprise RoutersConfiguration Guide - Interface Management 2 Interface Basic Configuration

    Issue 02 (2012-03-30) Huawei Proprietary and ConfidentialCopyright Huawei Technologies Co., Ltd.

    11

  • 2.5.2 Clearing StatisticsInterface traffic statistics provide the traffic volume and rate on an interface. To collect trafficstatistics generated in a period, clear the previous statistics.

    Context

    CAUTIONStatistics cannot be restored after you clear them. So, confirm the action before you use thecommand.

    To clear the interface statistics collected using the NMS or the display interface command, runthe following commands in the user view to clear previous traffic statistics on the interface.

    Procedurel Run the reset counters interface [ interface-type [ interface-number ] ] command in the

    user view to clear the interface statistics collected using the display interface command.l Run the reset reset counters if-mib interface [ interface-type [ interface-number ] ]

    command in the user view to clear the interface statistics collected using the NMS.----End

    Huawei AR150&200 Series Enterprise RoutersConfiguration Guide - Interface Management 2 Interface Basic Configuration

    Issue 02 (2012-03-30) Huawei Proprietary and ConfidentialCopyright Huawei Technologies Co., Ltd.

    12

  • 3 Ethernet Interface ConfigurationAbout This Chapter

    This chapter describes functions and configuration of Ethernet interfaces and providesconfiguration examples.

    3.1 Introduction to Ethernet InterfacesEthernet is flexible, simple, and easy to implement, and therefore it becomes an important localarea network (LAN) networking technology.3.2 Ethernet Interface Features Supported by the AR150/200This section describes the ethernet interface features supported by the AR150/200.3.3 Configuring General Attributes of Ethernet InterfacesThis section describes how to configure general attributes of Layer 2 and Layer 3 Ethernetinterfaces.3.4 Configuring Layer 2 Ethernet InterfaceThis section describes the configurations supported only by Layer 2 Ethernet interfaces,including port isolation and traffic control.3.5 Configuring Port IsolationPort isolation isolates interfaces in a VLAN.3.6 Maintaining an Ethernet InterfaceEthernet interface maintenance tasks include loopback detection and cable detection.3.7 Configuration ExamplesThis section provides examples for configuring auto-negotiation and port isolation.

    Huawei AR150&200 Series Enterprise RoutersConfiguration Guide - Interface Management 3 Ethernet Interface Configuration

    Issue 02 (2012-03-30) Huawei Proprietary and ConfidentialCopyright Huawei Technologies Co., Ltd.

    13

  • 3.1 Introduction to Ethernet InterfacesEthernet is flexible, simple, and easy to implement, and therefore it becomes an important localarea network (LAN) networking technology.The AR150/200 provides two types of Ethernet interfaces:l Layer 2 Ethernet interface (LAN-side Ethernet interface): works at the data link layer to

    process Layer 2 protocol packets.l Layer 3 Ethernet interface (WAN-side Ethernet interface): works at the network layer to

    process Layer 3 protocol packets and provide routing capabilities. A Layer 3 Ethernetinterface can be assigned an IP address.

    Layer 2 Ethernet interfaces on the AR150/200 include fast Ethernet (FE) interfaces. Layer 2 FEinterfaces are electrical interfaces. Table 3-1 lists attributes of the Layer 2 Ethernet interfacessupported by the AR150/200.

    Table 3-1 Attributes of Layer 2 Ethernet interfacesInterfaceType

    Rate (Mbit/s)

    Auto-Negotiation Non-Auto NegotiationFullDuplex

    HalfDuplex

    FullDuplex

    HalfDuplex

    Ethernetelectricalinterface

    10 Yes Yes Yes Yes100 Yes Yes Yes Yes

    Layer 3 Ethernet interfaces on the AR150/200 include fast Ethernet (FE) interfaces. Layer 3 FEinterfaces are electrical interfaces. Table 3-2 lists attributes of the Layer 3 Ethernet interfacessupported by the AR150/200.

    NOTE

    By default, Ethernet0/0/0 is a Layer 2 Ethernet interface. On the AR150/200, you can use the undoportswitch command to change the working mode of Ethernet0/0/0 from Layer 3 mode to Layer 2 mode.

    Table 3-2 Attributes of Layer 3 Ethernet interfacesInterfaceType

    Rate (Mbit/s)

    Auto-Negotiation Non-Auto NegotiationFullDuplex

    HalfDuplex

    FullDuplex

    HalfDuplex

    Ethernetelectricalinterface

    10 Yes Yes Yes Yes100 Yes Yes Yes Yes

    Huawei AR150&200 Series Enterprise RoutersConfiguration Guide - Interface Management 3 Ethernet Interface Configuration

    Issue 02 (2012-03-30) Huawei Proprietary and ConfidentialCopyright Huawei Technologies Co., Ltd.

    14

  • NOTE

    By default, an Ethernet interface works in auto-negotiation mode. The default mode is recommended. Ifauto-negotiation succeeds, interfaces on both ends work at the same duplex mode and rate.

    3.2 Ethernet Interface Features Supported by the AR150/200This section describes the ethernet interface features supported by the AR150/200.

    NOTE

    All Ethernet interfaces on the AR150/200 are FE interfaces.

    Port GroupThe port group function of the AR150/200 allows you to configure multiple interfaces in a portgroup at the same time. A command executed in the port group view applies to all the interfacesin the port group.

    Auto-NegotiationThe auto-negotiation function allows interfaces on both ends of a link to select the same operatingparameters by exchanging information. In auto-negotiation mode, interfaces negotiate theiroperating parameters, including the duplex mode, rate, and flow control. If the negotiationsucceeds, the two interfaces use the same operating parameters.

    Port IsolationThe simplest method of isolating interfaces on the AR150/200 is to add different interfaces todifferent VLANs, but this wastes VLAN resources. The port isolation function allows you toadd interfaces to a port isolation group so that these interfaces can be isolated from each other.Therefore, this function helps implement secure and flexible networking schemes.

    NOTE

    Layer 2 Ethernet interfaces support port isolation.

    3.3 Configuring General Attributes of Ethernet InterfacesThis section describes how to configure general attributes of Layer 2 and Layer 3 Ethernetinterfaces.

    3.3.1 Establishing the Configuration TaskBefore configuring attributes for an Ethernet interface, familiarize yourself with the applicableenvironment, complete the pre-configuration tasks, and obtain the data required for theconfiguration. This will help you complete the configuration task quickly and accurately.

    Applicable EnvironmentThe configuration task is required in the following cases:

    Huawei AR150&200 Series Enterprise RoutersConfiguration Guide - Interface Management 3 Ethernet Interface Configuration

    Issue 02 (2012-03-30) Huawei Proprietary and ConfidentialCopyright Huawei Technologies Co., Ltd.

    15

  • l You can configure the description for an Ethernet interface to facilitate identification,maintenance, and configuration of the interface.

    l By default, an Ethernet interface automatically identifies the network cable type. If theinterface cannot identify the cable type, set the cable type manually.

    l You can configure the auto-negotiation mode, duplex mode, rate, and bandwidth utilizationparameters on an interface.

    NOTE

    All parameters in this section have default values, and these default values are recommended.

    Pre-configuration TasksBefore configuring attributes for an Ethernet interface, complete the following task:l Powering on the router and starting the router

    Data PreparationTo configure attributes for an Ethernet interface, you need the following data.

    No. Data1 Number of an Ethernet interface

    3.3.2 (Optional) Configuring a Port GroupBy configuring a port group, you can configure interfaces in batches.

    ContextTo perform the same configurations on multiple interfaces, add these interfaces to a port group.In the port group view, you only need to run configuration commands one time, and theconfigurations apply to all the interfaces in the port group. This reduces the configurationworkload.

    Procedurel Create a permanent port group

    1. Run:system-view

    The system view is displayed.2. Run:

    port-group port-group-name

    A permanent port group is created and the port group view is displayed.3. Run:

    group-member { interface-type interface-number1 [ to interface-type interface-number2 ] } &

    An Ethernet interface is added to the permanent port group.l Create a temporary port group

    Huawei AR150&200 Series Enterprise RoutersConfiguration Guide - Interface Management 3 Ethernet Interface Configuration

    Issue 02 (2012-03-30) Huawei Proprietary and ConfidentialCopyright Huawei Technologies Co., Ltd.

    16

  • 1. Run:system-view

    The system view is displayed.2. Run:

    port-group group-member { interface-type interface-number1 [ to interface-type interface-number2 ] } &

    A temporary port group is created and the port group view is displayed.----End

    Checking the ConfigurationAfter a port group is configured, run the following commands to check the configuration.Run the display port-group command to check the names of all created port groups. display port-groupgroup1

    Run the display port-group all command to check the configurations of all port groups. display port-group allPortgroup: group1Ethernet0/0/0Ethernet0/0/1

    3.3.3 Configuring the Auto-Negotiation ModeThe auto-negotiation function allows interfaces on both ends of a link to select the same operatingparameters by exchanging information.

    ContextIn auto-negotiation mode, interfaces negotiate their operating parameters, including the duplexmode, rate, and flow control. If the negotiation succeeds, the two interfaces use the sameoperating parameters. In non-auto negotiation mode, the operating parameters must be setmanually.

    ProcedureStep 1 Run:

    system-view

    The system view is displayed.Step 2 Run:

    interface { ethernet | gigabitethernet } interface-number

    The Ethernet interface view is displayed.Step 3 Run:

    negotiation auto

    The Ethernet interface works in auto-negotiation mode.By default, an Ethernet interface works in auto-negotiation mode.

    Huawei AR150&200 Series Enterprise RoutersConfiguration Guide - Interface Management 3 Ethernet Interface Configuration

    Issue 02 (2012-03-30) Huawei Proprietary and ConfidentialCopyright Huawei Technologies Co., Ltd.

    17

  • NOTEInterfaces on both ends of a link must work in the same negotiation mode.

    ----End

    3.3.4 Setting the Duplex Mode for an Ethernet InterfaceEthernet interfaces on both ends of a link must work in the same duplex mode.

    ContextAn Ethernet interface works in either half duplex or full duplex mode:l In half duplex mode, an Ethernet interface only receives or sends data at a time, and the

    transmission distance is limited.l In full duplex mode, an Ethernet interface can receive and send data at the same time, and

    the maximum throughput is double that in half duplex mode. There is no limit on themaximum transmission distance.

    You can set the duplex mode for an interface in either auto-negotiation or non-auto negotiationmode.l In auto-negotiation mode, interfaces on both ends of a link negotiate their duplex mode. If

    the negotiated duplex mode is not the required mode, you can set the duplex mode for thetwo interfaces. For example, two interfaces negotiate to work in half duplex mode, but theyare required to work in full duplex mode (they both support full duplex), run the autoduplex full command to set the full duplex mode for the two interfaces.

    l In non-auto negotiation mode, you can set the required duplex mode for interfaces.

    Procedurel Setting the duplex mode in auto-negotiation mode

    1. Run:system-view

    The system view is displayed.2. Run:

    interface { ethernet | gigabitethernet } interface-number

    The Ethernet interface view is displayed.3. Run:

    auto duplex { full | half }*

    The duplex mode is set for the Ethernet interface.By default, the duplex mode of an Ethernet interface depends on the negotiationbetween this interface and the peer when auto-negotiation is enabled on the interface

    l Setting the duplex mode in non-auto negotiation mode1. Run:

    system-view

    The system view is displayed.2. Run:

    interface { ethernet | gigabitethernet } interface-number

    Huawei AR150&200 Series Enterprise RoutersConfiguration Guide - Interface Management 3 Ethernet Interface Configuration

    Issue 02 (2012-03-30) Huawei Proprietary and ConfidentialCopyright Huawei Technologies Co., Ltd.

    18

  • The Ethernet interface view is displayed.3. Run:

    undo negotiation auto

    The Ethernet interface works in non-auto negotiation mode.4. Run:

    duplex { full | half }

    The duplex mode is set for the Ethernet interface.By default, an Ethernet interface in non-auto negotiation mode works in full duplexmode.

    ----End

    3.3.5 Setting the Rate for an Ethernet InterfaceEthernet interfaces on both ends of a link must work at the same rate.

    ContextIn auto-negotiation mode, interfaces on both ends of a link negotiate their rate. If the negotiatedrate is not the required rate, you can set the auto-negotiation rate range to limit the negotiatedrate. For example, if two interfaces negotiate to work at a rate of 10 Mbit/s, but they are requiredto work at a rate of 100 Mbit/s, you can run the auto speed 100 command to set the rate of theinterfaces to 100 Mbit/s.In non-auto negotiation mode, you must set the rate for interfaces so that devices of the interfacescan communicate.

    Procedurel Setting the rate in auto-negotiation mode

    1. Run:system-view

    The system view is displayed.2. Run:

    interface { ethernet | gigabitethernet } interface-number

    The Ethernet interface view is displayed.3. Run:

    auto speed { 10 | 100 }*

    The auto-negotiation rate range is set for the Ethernet interface.By default, Ethernet interfaces on both ends can negotiate to any rate supported bythem. The rate of an FE interface cannot be set to 1000 Mbit/s.

    l Setting the rate in non-auto negotiation mode1. Run:

    system-view

    The system view is displayed.2. Run:

    Huawei AR150&200 Series Enterprise RoutersConfiguration Guide - Interface Management 3 Ethernet Interface Configuration

    Issue 02 (2012-03-30) Huawei Proprietary and ConfidentialCopyright Huawei Technologies Co., Ltd.

    19

  • interface { ethernet | gigabitethernet } interface-number

    The Ethernet interface view is displayed.3. Run:

    undo negotiation auto

    The Ethernet interface works in non-auto negotiation mode.4. Run:

    speed { 10 | 100 }

    The rate is set for the Ethernet interface.In non-auto negotiation mode, an Ethernet interface works at the maximum rate bydefault. The rate of an FE interface cannot be set to 1000 Mbit/s.

    ----End

    3.3.6 Configuring the Outbound and Inbound BandwidthUtilization of an Ethernet interface

    After the bandwidth usage is configured for the incoming and outgoing traffic on an Ethernetinterface, the system sends a trap to the NMS when the actual bandwidth usage exceeds theupper threshold. When the bandwidth usage falls below the upper threshold, the system sendsa clear alarm to the NMS.

    ProcedureStep 1 Run:

    system-view

    The system view is displayed.Step 2 Run:

    snmp-agent trap enable

    The outbound and inbound bandwidth utilization alarm function is enabled on all Ethernetinterfaces.

    Step 3 Run:interface { ethernet | gigabitethernet } interface-number

    The Ethernet interface view is displayed.Step 4 Run:

    trap-threshold { input-rate | output-rate } bandwidth-in-use [ resume-rate bandwidth-in-use ]

    The threshold of the outbound or inbound bandwidth utilization is configured on the Ethernetinterface.By default, the threshold of the outbound and inbound bandwidth utilization is 100%.----End

    3.3.7 Configuring the Network Cable Type for an Ethernet InterfaceYou can configure the network cable type for an Ethernet interface to ensure that the interfaceadapts to the actual network cable type.

    Huawei AR150&200 Series Enterprise RoutersConfiguration Guide - Interface Management 3 Ethernet Interface Configuration

    Issue 02 (2012-03-30) Huawei Proprietary and ConfidentialCopyright Huawei Technologies Co., Ltd.

    20

  • ProcedureStep 1 Run:

    system-view

    The system view is displayed.Step 2 Run:

    interface { ethernet | gigabitethernet } interface-number

    The Ethernet interface view is displayed.Step 3 Run:

    mdi { across | auto | normal }

    The network cable type is set for the Ethernet interface.NOTEBy default, an Ethernet interface automatically identifies the network cable type.

    ----End

    3.3.8 Checking the ConfigurationAfter Ethernet interface attributes are configured, you can check the configuration of an Ethernetinterface.

    PrerequisitesThe configurations of Ethernet interface parameters are complete.

    ProcedureStep 1 Run the display interface [ interface-type [ interface-number ] ] command to check the

    configuration of an Ethernet interface.----End

    ExampleRun the display interface [ interface-type [ interface-number ] ] command, and you can checkwhether the configuration of the Ethernet interface is correct. display interface ethernet 2/0/0Ethernet2/0/0 current state : UP Line protocol current state : UP Last line protocol up time : 2010-09-08 22:27:47 Description:HUAWEI, AR Series, Ethernet2/0/0 Interface Route Port,The Maximum Transmit Unit is 1500 Internet Address is 151.1.1.2/24 IP Sending Frames' Format is PKTFMT_ETHNT_2, Hardware address is 00e0-fc01-0ae3 Last physical up time : 2010-09-08 22:27:47 Last physical down time : 2010-09-08 22:22:56 Current system time: 2010-09-09 14:34:29 Port Mode: COMMON COPPER Speed : 100, Loopback: NONE Duplex: FULL, Negotiation: ENABLE Mdi : AUTO Last 300 seconds input rate 19184 bits/sec, 36 packets/sec Last 300 seconds output rate 1640 bits/sec, 3 packets/sec

    Huawei AR150&200 Series Enterprise RoutersConfiguration Guide - Interface Management 3 Ethernet Interface Configuration

    Issue 02 (2012-03-30) Huawei Proprietary and ConfidentialCopyright Huawei Technologies Co., Ltd.

    21

  • Input peak rate 0 bits/sec,Record time: - Output peak rate 0 bits/sec,Record time: - Input: 6771660 packets, 447253294 bytes Unicast: 0, Multicast: 0 Broadcast: 0, Jumbo: 0 Discard: 0, Total Error: 0 CRC: 0, Giants: 0 Jabbers: 0, Throttles: 0 Runts: 0, DropEvents: 0 Alignments: 0, Symbols: 0 Ignoreds: 0, Frames: 0 Output: 316239 packets, 20694268 bytes Unicast: 0, Multicast: 0 Broadcast: 1798, Jumbo: 0 Discard: 101164724933525, Total Error: 0 Collisions: 0, ExcessiveCollisions: 0 Late Collisions: 0, Deferreds: 0 Buffers Purged: 0 Input bandwidth utilization threshold : 100.00% Output bandwidth utilization threshold: 100.00% Input bandwidth utilization : 0% Output bandwidth utilization : 0%

    3.4 Configuring Layer 2 Ethernet InterfaceThis section describes the configurations supported only by Layer 2 Ethernet interfaces,including port isolation and traffic control.

    3.4.1 Establishing the Configuration TaskBefore setting parameters for a Layer 2 Ethernet interface, familiarize yourself with theapplicable environment, complete the pre-configuration tasks, and obtain the data required forthe configuration. This will help you complete the configuration task quickly and accurately.

    Applicable EnvironmentThe AR150/200 provides two types of Ethernet interfaces: Layer 2 Ethernet interface and Layer3 Ethernet interface. A Layer 2 Ethernet interface works at the data link layer, processes Layer2 protocol packets, and implements Layer 2 forwarding.

    NOTE

    For details about other configurations on the Layer 2 Ethernet interface, see 3.3 Configuring General Attributesof Ethernet Interfaces.

    The configuration task is required in the following situations:l Port isolation can be configured to isolate interfaces in a VLAN.l Traffic control can be configured to prevent packet loss caused by network congestion.

    Pre-configuration TasksBefore setting parameters for a Layer 2 Ethernet interface, complete the following tasks:

    Huawei AR150&200 Series Enterprise RoutersConfiguration Guide - Interface Management 3 Ethernet Interface Configuration

    Issue 02 (2012-03-30) Huawei Proprietary and ConfidentialCopyright Huawei Technologies Co., Ltd.

    22

  • l Powering on and starting the router

    Data PreparationTo set parameters for a Layer 2 Ethernet interface, you need the following data.

    No. Data1 Layer 2 Ethernet interface number

    3.5 Configuring Port IsolationPort isolation isolates interfaces in a VLAN.

    Applicable EnvironmentTable 3-3 shows the port isolation methods and application scenarios.

    Table 3-3 Port isolation methods and application scenariosPortIsolationMethod

    Application Scenario

    Configureunidirectionalisolationoninterfaces

    l When multiple hosts connect to different interfaces of a router and a hostsends many broadcast packets to the other hosts, isolate the interfaceconnected to host from other interface unidirectionally. Then the other hostsdo not receive packets from the host.

    l Interfaces in a port isolation group are isolated from each other, but interfacesin different port isolation groups can communicate. To isolate interfaces indifferent port isolation groups, configure unidirectional isolation betweenthese interfaces.

    Configurea portisolationgroup

    To implement Layer 2 isolation between interfaces, you can add differentinterfaces to different VLANs. This wastes VLAN resources. To save VLANresources, you can enable port isolation to isolate interfaces in a VLAN. Thatis, you can add interfaces to a port isolation group to implement Layer 2 isolationbetween these interfaces. Port isolation provides secure and flexible networkingschemes for customers.

    Pre-configuration TasksBefore configuring port isolation, complete the following task:l Creating a VLAN

    Procedurel Configure unidirectional isolation on interfaces.

    Huawei AR150&200 Series Enterprise RoutersConfiguration Guide - Interface Management 3 Ethernet Interface Configuration

    Issue 02 (2012-03-30) Huawei Proprietary and ConfidentialCopyright Huawei Technologies Co., Ltd.

    23

  • 1. Run:system-viewThe system view is displayed.

    2. Run:am isolate { interface-type interface-number } & Unidirectional isolation is configured on the Ethernet interface.

    NOTEIf interface A is isolated from interface B unidirectionally, packets sent from interface A cannotreach interface B, but packets sent from interface B can reach interface A.

    l Configure a port isolation group.1. Run:

    system-viewThe system view is displayed.

    2. Run:interface { ethernet | gigabitethernet } interface-numberThe Ethernet interface view is displayed.

    3. Run:port-isolate enable [ group group-id ]Port isolation is enabled on the Ethernet interface.

    NOTEInterfaces in a port isolation group are isolated from each other, but interfaces in different portisolation groups can communicate. If group-id is not specified, interfaces are added to portisolation group 1.

    ----End

    Checking the ConfigurationRun the display this command in the interface view, and you can see that port isolation has beenconfigured successfully.[Huawei-Ethernet0/0/0] display this#interface Ethernet0/0/0 port-isolate enable group 2#

    3.5.1 Configuring Flow ControlFlow control prevents packet loss caused by network congestion.

    ContextNetwork congestion causes packet loss. Flow control is a method of avoiding packet loss. Afterflow control is enabled on an interface, the interface sends a data frame to inform its remoteinterface when the received traffic rate reaches or exceeds its capacity. If the remote interfacealso supports flow control, it then sends data at a lower rate to prevent packet loss.

    ProcedureStep 1 Run:

    system-view

    Huawei AR150&200 Series Enterprise RoutersConfiguration Guide - Interface Management 3 Ethernet Interface Configuration

    Issue 02 (2012-03-30) Huawei Proprietary and ConfidentialCopyright Huawei Technologies Co., Ltd.

    24

  • The system view is displayed.Step 2 Run:

    interface { ethernet | gigabitethernet } interface-number

    The Ethernet interface view is displayed.Step 3 Run:

    flow-control

    Flow control is enabled on the Ethernet interface.By default, flow control is disabled on an Ethernet interface.----End

    3.5.2 Checking the ConfigurationAfter Ethernet interface attributes are configured, you can check the configuration.

    PrerequisitesThe configurations of Ethernet interface parameters are complete.

    ProcedureStep 1 Run the display interface [ interface-type [ interface-number ] ] command to check the

    configuration of an Ethernet interface.----End

    ExampleRun the display interface [ interface-type [ interface-number ] ] command to check theconfiguration of an Ethernet interface. display interface ethernet 0/0/0Ethernet0/0/0 current state : UP Line protocol current state : UP Description:HUAWEI, AR Series, Ethernet0/0/0 Interface Switch Port, PVID : 1, TPID : 8100(Hex), The Maximum Frame Length is 1628 IP Sending Frames' Format is PKTFMT_ETHNT_2, Hardware address is 0018-2000-0083 Last physical up time : 2010-07-21 15:35:37 Last physical down time : 2010-07-20 01:06:25 Current system time: 2010-07-21 16:07:53-05:13 Port Mode: COMMON COPPER Speed : 100, Loopback: NONE Duplex: FULL, Negotiation: ENABLE Mdi : AUTO Last 300 seconds input rate 0 bits/sec, 0 packets/sec Last 300 seconds output rate 0 bits/sec, 0 packets/sec Input peak rate 0 bits/sec,Record time: - Output peak rate 0 bits/sec,Record time: - Input: 126 packets, 34204 bytes Unicast: 0, Multicast: 52 Broadcast: 74, Jumbo: 0 Discard: 0, Total Error: 0 CRC: 0, Giants: 0 Jabbers: 0, Throttles: 0 Runts: 0, Alignments: 0

    Huawei AR150&200 Series Enterprise RoutersConfiguration Guide - Interface Management 3 Ethernet Interface Configuration

    Issue 02 (2012-03-30) Huawei Proprietary and ConfidentialCopyright Huawei Technologies Co., Ltd.

    25

  • Symbols: 0, Ignoreds: 0 Frames: 0 Output: 2398 packets, 799486 bytes Unicast: 0, Multicast: 1461 Broadcast: 1477, Jumbo: 0 Discard: 0, Total Error: 0 Collisions: 0, ExcessiveCollisions: 0 Late Collisions: 0, Deferreds: 0 Buffers Purged: 0 Input bandwidth utilization threshold : 100.00% Output bandwidth utilization threshold: 100.00% Input bandwidth utilization : 0% Output bandwidth utilization : 0%

    3.6 Maintaining an Ethernet InterfaceEthernet interface maintenance tasks include loopback detection and cable detection.

    3.6.1 Configuring Loopback DetectionBy configuring internal loopback, you can check whether the internal forwarding function ofthe AR150/200 works.

    Context

    CAUTIONPerforming loopback detection affects system performance. After loopback detection isperformed, run the undo loopback command immediately to disable loopback detection.

    ProcedureStep 1 Run:

    system-view

    The system view is displayed.Step 2 Run:

    interface { ethernet | gigabitethernet } interface-number

    The interface view is displayed.Step 3 Run:

    loopback internal

    Internal loopback is configured on the interface.Step 4 Run:

    display interface [ interface-type [ interface-number ] ]

    Huawei AR150&200 Series Enterprise RoutersConfiguration Guide - Interface Management 3 Ethernet Interface Configuration

    Issue 02 (2012-03-30) Huawei Proprietary and ConfidentialCopyright Huawei Technologies Co., Ltd.

    26

  • The interface status is checked. If the current interface status is Up, the internal forwardingfunction works properly; otherwise, a fault occurs during internal forwarding.----End

    3.6.2 Configuring Cable DetectionBy configuring cable detection, you can locate faults on cables.

    ProcedureStep 1 Run:

    system-view

    The system view is displayed.Step 2 Run:

    interface { ethernet | gigabitethernet } interface-number

    The interface view is displayed.Step 3 Run:

    virtual-cable-test

    Cable detection is configured, and the detection result is displayed.If the cable works properly, the total length of the cable is displayed.If the cable is faulty, the distance from the interface to the fault point is displayed.----End

    3.7 Configuration ExamplesThis section provides examples for configuring auto-negotiation and port isolation.

    3.7.1 Example for Configuring the Auto-Negotiation Rate RangeThis configuration example applies to the auto-negotiation mode. When data has multipleinbound interfaces but only one outbound interface, you can set the auto-negotiation rate rangefor the inbound interfaces to prevent congestion on the outbound interface.

    Networking RequirementsAs shown in Figure 3-1, PC1, PC2, and PC3 connect to Ethernet0/0/0, Ethernet0/0/1, andEthernet0/0/2 of RouterA and access the Internet by using an uplink.PC1, PC2, and PC3 work at a rate of 100 Mbit/s, and Ethernet0/0/3 connecting RouterA and theInternet also works at a rate of 100 Mbit/s. If the auto-negotiation rate range is not specified, therate negotiated between the interfaces (Ethernet0/0/0, Ethernet0/0/1, and Ethernet0/0/2) and thePCs (PC1, PC2, and PC3) is 100 Mbit/s. This may cause congestion on outbound interfaceEthernet0/0/3.

    Huawei AR150&200 Series Enterprise RoutersConfiguration Guide - Interface Management 3 Ethernet Interface Configuration

    Issue 02 (2012-03-30) Huawei Proprietary and ConfidentialCopyright Huawei Technologies Co., Ltd.

    27

  • Figure 3-1 Network diagram of auto-negotiation rate range configuration

    PC1 PC2 PC3

    Ethernet0/0/2Ethernet0/0/1

    Ethernet0/0/0

    IP Network

    Ethernet0/0/3RouterA

    Router

    Configuration RoadmapIn auto-negotiation mode, Ethernet interfaces on both ends of a link negotiate their rate. Thenegotiated rate may be any rate supported by Ethernet interfaces. By setting the auto-negotiationrate range, you can configure Ethernet interfaces to negotiate their rate within the specified range.

    Data PreparationTo complete the configuration, you need the following data:l Numbers of the interfaces connecting RouterA to PC1, PC2, and PC3

    ProcedureStep 1 Configure the auto-negotiation mode.

    # Configure auto-negotiation on Ethernet0/0/0. system-view[Huawei] sysname RouterA[RouterA] interface ethernet 0/0/0[RouterA-Ethernet0/0/0] negotiation auto[RouterA-Ethernet0/0/0] quit

    # Configure auto-negotiation on Ethernet0/0/1.[RouterA] interface ethernet 0/0/1[RouterA-Ethernet0/0/1] negotiation auto[RouterA-Ethernet0/0/1] quit

    # Configure auto-negotiation on Ethernet0/0/2.

    Huawei AR150&200 Series Enterprise RoutersConfiguration Guide - Interface Management 3 Ethernet Interface Configuration

    Issue 02 (2012-03-30) Huawei Proprietary and ConfidentialCopyright Huawei Technologies Co., Ltd.

    28

  • [RouterA] interface ethernet 0/0/2[RouterA-Ethernet0/0/2] negotiation auto[RouterA-Ethernet0/0/2] quit

    Step 2 Set the auto-negotiation rate.# Set the auto-negotiation rate of Ethernet0/0/0 to 10 Mbit/s.[RouterA] interface ethernet 0/0/0[RouterA-Ethernet0/0/0] auto speed 10[RouterA-Ethernet0/0/0] quit

    # Set the auto-negotiation rate of Ethernet0/0/1 to 10 Mbit/s.[RouterA] interface ethernet 0/0/1[RouterA-Ethernet0/0/1] auto speed 10[RouterA-Ethernet0/0/1] quit

    # Set the auto-negotiation rate of Ethernet0/0/2 to 10 Mbit/s.[RouterA] interface ethernet 0/0/2[RouterA-Ethernet0/0/2] auto speed 10[RouterA-Ethernet0/0/2] quit

    ----End

    Configuration FilesConfiguration file of RouterA# sysname RouterA#interface Ethernet0/0/0 auto speed 10#interface Ethernet0/0/1 auto speed 10#interface Ethernet0/0/2 auto speed 10#return

    3.7.2 Example for Configuring Port IsolationPort isolation isolates interfaces in a VLAN.

    Networking RequirementsAs shown in Figure 3-2, PC1, PC2, and PC3 belong to VLAN 10 and are connected toEthernet0/0/0, Ethernet0/0/1, and Ethernet0/0/2 on the Router.The requirements are as follows: PC1 and PC2 cannot communicate with each other but theycan communicate with PC3.

    Huawei AR150&200 Series Enterprise RoutersConfiguration Guide - Interface Management 3 Ethernet Interface Configuration

    Issue 02 (2012-03-30) Huawei Proprietary and ConfidentialCopyright Huawei Technologies Co., Ltd.

    29

  • Figure 3-2 Network diagram of port isolation

    PC1 PC2 PC3

    Ethernet0/0/2Ethernet0/0/1

    Ethernet0/0/0

    VLAN 10

    Router

    Configuration RoadmapAdd interfaces to a port isolation group to implement Layer 2 isolation between these interfaces.

    Data PreparationTo complete the configuration, you need the following data:l Number of the interface connecting the Router and PC1l Number of the interface connecting the Router and PC2l Port isolation mode on the Router(default configuration)l VLAN that PC1, PC2, and PC3 belong tol Port isolation group that the interfaces connected to PC1 and PC2 belong to

    ProcedureStep 1 Configure port isolation.

    # Configure port isolation on Ethernet0/0/0. system-view[Router] interface ethernet 0/0/0[Router-Ethernet0/0/0] port-isolate enable[Router-Ethernet0/0/0] quit

    # Configure port isolation on Ethernet0/0/1. system-view[Router] interface ethernet 0/0/1[Router-Ethernet0/0/1] port-isolate enable[Router-Ethernet0/0/1] quit

    Step 2 Verify the configuration.PC1 and PC2 cannot ping each other.PC1 and PC3 can ping each other.

    Huawei AR150&200 Series Enterprise RoutersConfiguration Guide - Interface Management 3 Ethernet Interface Configuration

    Issue 02 (2012-03-30) Huawei Proprietary and ConfidentialCopyright Huawei Technologies Co., Ltd.

    30

  • PC2 and PC3 can ping each other.----End

    Configuration FilesThe following lists only the configuration file of the Router.# sysname Router#interface Ethernet0/0/0 port link-type access port default vlan 10 port-isolate enable group 1#interface Ethernet0/0/1 port link-type access port default vlan 10 port-isolate enable group 1#interface Ethernet0/0/2 port link-type access port default vlan 10 #return

    Huawei AR150&200 Series Enterprise RoutersConfiguration Guide - Interface Management 3 Ethernet Interface Configuration

    Issue 02 (2012-03-30) Huawei Proprietary and ConfidentialCopyright Huawei Technologies Co., Ltd.

    31

  • 4 ADSL Interface ConfigurationAbout This Chapter

    The Asymmetric Digital Subscriber Line (ADSL) technology transmits LAN services over low-cost twisted pairs.4.1 ADSL OverviewAsymmetric Digital Subscriber Line (ADSL) is a data communications technology that enablesfast data transmission over copper twisted pairs by employing high frequencies that are not usedby regular telephone lines.4.2 ADSL Features Supported by the AR150/200To enable the AR150/200 function as a CPE to transmit services on an ADSL line, deactivatean ADSL interface on the AR150/200, set parameters for the interface, and then activate theinterface to make configurations take effect.4.3 Setting Parameters for an ADSL InterfaceAfter parameters are set for an ADSL interface on the AR150/200, the AR150/200 can transmitdata upstream.4.4 Configuration ExamplesThis section provides an example showing how to configure an ADSL interface.

    Huawei AR150&200 Series Enterprise RoutersConfiguration Guide - Interface Management 4 ADSL Interface Configuration

    Issue 02 (2012-03-30) Huawei Proprietary and ConfidentialCopyright Huawei Technologies Co., Ltd.

    32

  • 4.1 ADSL OverviewAsymmetric Digital Subscriber Line (ADSL) is a data communications technology that enablesfast data transmission over copper twisted pairs by employing high frequencies that are not usedby regular telephone lines.

    BackgroundDepending on transmission media, network access modes include wired access, wireless access,and combination of wired and wireless access. Wired access includes twisted pair access, fiberaccess, and access by using both twisted pairs and fibers. Traditional copper twisted pairs arewidely used for access, so ADSL becomes the most competitive access mode.ADSL uses the frequency division multiplexing (FDM) technology to classify telephone linesinto regular telephone lines, upstream channels, and downstream channels, avoidinginterference. ADSL can provide channelized data services (including E1/Tl, FR, IP, and ATMservices) and transmit data, voice, and video signals at a high rate.

    ADSL EvolutionThe first ADSL standards (G.992.1 G.DMT and G.992.2 G.Lite) supported the upstreamtransmission rate of 640 kbit/s to 2 Mbit/s, downstream transmission rate of 1 Mbit/s to 8 Mbit/s, and transmission distance of 3 to 5 km. Since the release of ADSL in June 1999, the ITU hasbeen improving the ADSL transmission performance, anti-attenuation and anti-interferencecapabilities, line diagnosis, and operation maintenance. In 2002, the ITU released ADSL2, whichcomprises two new ADSL standards (G.992.3 and G.992.4). In 2003, the ITU defined G.992.5,which is referred to as ADSL2+.Compared with the first ADSL technology, ADSL2/2+ has the following advantages:1. ADSL2 improves performance in long-distance transmission, anti-attenuation, and anti-

    noise. ADSL2 also improves the frame structure, so it can provide a maximum of 1 Mbit/s upstream transmission rate and 12 Mbit/s downstream transmission rate. Expanding thefrequency spectrum used, ADSL2+ greatly improves transmission performance andprovides a maximum rate of 1 Mbit/s upstream and 24 Mbit/s downstream.

    2. In addition to providing higher rates, ADSL2/2+ improves transmission performance inlong-distance transmission and anti-interference by improving the modulation rate andcoding gain, reducing the frame overhead, and using enhanced signal processing methods.Currently, ADSL provides a transmission distance of 3 km, whereas ADSL2+ achieves amaximum of 6 km transmission distance.

    3. ADSL2/2+ saves energy. The first ADSL technology provides the same transmission rateregardless of whether data is being transmitted. ADSL2/2+ enables a transmitter to enterthe sleep state when the data transmission rate is low or no data is being transmitted,reducing power consumption and heat dissipation.

    ADSL SystemAs shown in Figure 4-1, an ADSL system consists of a Digital Subscriber Line AccessMultiplexer (DSLAM) and Customer Premises Equipment (CPE).l A DSLAM is an aggregation device that terminates ADSL packets on the central office.

    Huawei AR150&200 Series Enterprise RoutersConfiguration Guide - Interface Management 4 ADSL Interface Configuration

    Issue 02 (2012-03-30) Huawei Proprietary and ConfidentialCopyright Huawei Technologies Co., Ltd.

    33

  • l A CPE provides interfaces for users, modulates and demodulates data signals, and uploadsuser data to a DSLAM.

    NOTE

    An AR150/200 functions as a CPE.

    In the ADSL system, downstream transmission refers to data transmission from a DSLAM to aCPE, and upstream transmission refers to data transmission from a CPE to a DSLAM. ADSLinterfaces on the AR150/200 are upstream interfaces.

    Figure 4-1 ADSL system

    4.2 ADSL Features Supported by the AR150/200To enable the AR150/200 function as a CPE to transmit services on an ADSL line, deactivatean ADSL interface on the AR150/200, set parameters for the interface, and then activate theinterface to make configurations take effect.

    NOTE

    Only the AR206, AR207, AR207V, and AR207V-P support ADSL interfaces.

    Interface ActivationActivation of a G.SHDSL interface refers to the training between a DSLAM and a CPE. Duringthe training, the two devices check the line distance and status and negotiate parameters such asthe transmission standard, upstream and downstream line rates, and specified noise margin. Ifthe training succeeds, the G.SHDSL interface on the CPE is activated and can transmit data.After an AR150/200 starts, its G.SHDSL interface is automatically activated. The G.SHDSLinterface remains activated as long as its G.SHDSL line works properly. To set line parameters,deactivate the G.SHDSL interface on the CPE. After setting parameters, activate the interfaceto make configurations take effect.

    Huawei AR150&200 Series Enterprise RoutersConfiguration Guide - Interface Management 4 ADSL Interface Configuration

    Issue 02 (2012-03-30) Huawei Proprietary and ConfidentialCopyright Huawei Technologies Co., Ltd.

    34

  • Transmission StandardParameters for an ADSL interface include the transmission standard, bit exchange status,seamless rate adaptation status, and trellis coding status.Transmission StandardTable 4-1 lists the transmission standards supported by the AR150/200.The AR150/200 functions as a CPE and must be configured with the same transmission standardas the DSLAM. It is recommended that you configure the AR150/200 to automatically adapt tothe transmission standard of the DSLAM.

    Table 4-1 Transmission standards supported by the AR150/200Transmission Standard DescriptionG.DMT (G992.1) Provides an upstream frequency band from

    25 kHz to 138 kHz, a downstream frequencyband from 138 kHz to 1.104 MHz, amaximum of 1 Mbit/s upstream transmissionrate, and a maximum of 8 Mbit/s downstreamtransmission rate.

    ADSL2 (G992.3) Provides faster transmission rates byimproving the modulation rate, coding gain,and initialization state machine, reducing theframe overhead, and using enhanced signalprocessing methods. ADSL2 can provide amaximum of 1 Mbit/s upstream transmissionrate and 12 Mbit/s downstream transmissionrate.

    AnnexL Reach extended ADSL2 (AnnexL for short)is defined in ADSL2 recommendation. It usesa narrower frequency band and optimizes thepower spectral density (PSD) mask to providelong-distance transmission.

    ADSL2+ (G992.5) Expands the frequency band to 2.208 MHzand provides a maximum of 1 Mbit/supstream transmission rate and 24 Mbit/sdownstream transmission rate.

    AnnexM Expands the upstream frequency band ofADSL2 or ADSL2+ and provides amaximum of 2 Mbit/s upstream transmissionrate.NOTENOTE

    Only the AR207, AR207V, and AR207V-Psupport this parameter.

    T1.413 Provides a maximum of 800 kbit/s upstreamtransmission rate and 8 Mbit/s downstreamtransmission rate.

    Huawei AR150&200 Series Enterprise RoutersConfiguration Guide - Interface Management 4 ADSL Interface Configuration

    Issue 02 (2012-03-30) Huawei Proprietary and ConfidentialCopyright Huawei Technologies Co., Ltd.

    35

  • NOTE

    The performance of an ADSL interface depends on external factors, such as DSLAM line card types, DSLAMsoftware version, line noise, line length, and temperature.

    Bit ExchangeDuring line activation, every sub-channel calculates the signal-to-noise ratio (SNR) and thenumber of bits to be transmitted. After the line is activated,