No relevant resource is found in the selected language.

This site uses cookies. By continuing to browse the site you are agreeing to our use of cookies. Read our privacy policy>Search

Reminder

To have a better experience, please upgrade your IE browser.

upgrade

NE40E-M2 V800R010C10SPC500 Configuration Guide - Interface and Data Link 01

This is NE40E-M2 V800R010C10SPC500 Configuration Guide - Interface and Data Link
Rate and give feedback :
Huawei uses machine translation combined with human proofreading to translate this document to different languages in order to help you better understand the content of this document. Note: Even the most advanced machine translation cannot match the quality of professional translators. Huawei shall not bear any responsibility for translation accuracy and it is recommended that you refer to the English document (a link for which has been provided).
Performing Basic Configurations on an Interface

Performing Basic Configurations on an Interface

This section describes how to perform basic configurations on an interface. The basic configurations involve interface types and configurable interface parameters, which enable easy interface management.

Usage Scenario

To ensure smooth communication between devices on a network, configure both physical and logical interfaces properly and set the following parameters:
  • Interface description
  • Maximum transmission unit (MTU)
  • Trap threshold for the outbound and inbound bandwidth usage on a specified interface
  • Interval at which traffic statistics are collected
  • Whether the device sends a trap message to the network management system (NMS) when the interface status changes
  • Whether the control-flap function is enabled

Pre-configuration Tasks

Before performing basic configurations on an interface, verify that the device has been installed and powered on properly.

Configuration Procedures

Figure 2-1 Flowchart for performing basic configurations on an interface

Entering the Interface View

The command for entering the view of an interface varies with the physical attribute of the interface.

Procedure

  1. Run system-view

    The system view is displayed.

  2. Run interface interface-type interface-number

    The interface view is displayed.

    In this command, interface-type specifies the type of the interface, and interface-number specifies the number of the interface.

  3. (Optional) Run commit

    The configuration is committed.

    If the interface of the specified type and number exists in the preceding step, you do not need to run the commit command.

(Optional) Setting Interface Parameters

This section describes how to set parameters for an interface based on the actual service requirements. The parameters include the description, maximum transmission unit (MTU).

Context

Table 2-4 describes the configurable parameters of an interface.

Table 2-4 Configurable parameters of an interface

Parameter

Description

Interface description

When you maintain a large number of interfaces, interface description helps identify an interface easily.

Interface MTU

After the MTU is configured for an interface, the device fragments a packet transmitted on the interface if the size of the packet exceeds the MTU.

NOTE:

Loopback and NULL interfaces do not support the MTU.

Set the interface bandwidth obtained by the NMS from the MIB

You can calculate the bandwidth usage by setting the interface bandwidth obtained by the NMS from the MIB

Whether the device sends a trap message to the network management system (NMS) when the interface status changes

You can enable the device to send a trap message to the NMS when the interface status changes. After this function is enabled, the NMS monitors the interface status in real time.

When an interface alternates between Up and Down, the device will frequently send trap messages to the NMS, which increases the processing load on the NMS. In this situation, you can disable the device from sending trap messages to the NMS to avoid adverse impact on the NMS.

Interval at which traffic statistics are collected

After setting the interval at which traffic statistics are collected for an interface, you can view the traffic volumes and rates of the interface in different time ranges.

Whether the control-flap function is enabled

Control-flap indicates the maximum frequency at which an interface alternates between Up and Down. This minimizes the impact of interface status changes on device and network stability.

NOTE:

Loopback and NULL interfaces do not support the control-flap function.

Procedure

  1. Run system-view

    The system view is displayed.

  2. Run interface interface-type interface-number

    The interface view is displayed.

    In this command, interface-type specifies the type of the interface, and interface-number specifies the number of the interface.

  3. Perform one or more operations in Table 2-5 to set the desired interface parameters.

    Table 2-5 Setting interface parameters

    Operation

    Description

    Configure description for an interface.

    Run the description regular-expression command to configure description for an interface.

    You can view the description of an interface using the display interface description [ interface-type [ interface-number ] | slot slot-id [ card card-number ] ] command.

    NOTE:

    The parameter slot slot-id and card card-number in display interface description command are supported only on the Admin-VS.

    Set an MTU for an interface.

    Run the mtu mtu or ipv6 mtu mtu command to set an MTU for an interface.

    The default MTU is 1500 bytes.

    Run the mtu mtu spread or ipv6 mtu mtu spread command to set an MTU for an interface and apply the MTU to all the sub-interfaces on the interface.

    NOTE:
    • After changing the MTU of a POS interface using the mtu or mtu spread command, run the shutdown and undo shutdown commands in sequence in the interface view, or run the restart command alone in the interface view to restart the POS interface for the new MTU to take effect.
    • If IPv4 attributes are configured on an interface, run the mtu or mtu spread command to set an MTU for IPv4 packets to be sent by an interface.
    • If IPv6 attributes are configured on an interface, run the ipv6 mtu or ipv6 mtu spread command to set an MTU for IPv6 packets to be sent by an interface.

    Set the interface bandwidth obtained by the NMS from the MIB

    Run the bandwidth command to set the interface bandwidth obtained by the NMS from the MIB.

    NOTE:

    This configuration sets an interface bandwidth obtained by the NMS from the MIB and does not change an interface actual bandwidth. To view the command configurations, you can check the ifSpeed and ifHighSpeed objects in the IF-MIB on the NMS.

    Configure whether the device sends a trap message to the NMS when the interface status changes

    Run the enable snmp trap updown command to enable the device to send a trap message to the NMS when the interface status changes.

    NOTE:

    When an interface alternates between Up and Down, the device will frequently send trap messages to the NMS, which increases the processing load on the NMS. In this situation, you can run the undo enable snmp trap updown command to disable the device from sending trap message to the NMS to avoid adverse impact on the NMS.

    Set the interval at which traffic statistics are collected.

    Run the set flow-stat interval interval command to set the interval at which traffic statistics are collected.

    NOTE:
    • To globally set the interval at which traffic statistics are collected, run the set flow-stat interval interval command in the system view. To set the interval at which traffic statistics are collected for an interface, run the interface interface-type interface-number command to specify an interface and run the set flow-stat interval interval command on the interface. The global interval applies to all interfaces for which the interval at which traffic statistics are collected is not set.

    • The new interval takes effect after the original interval expires. For a logical interface, traffic statistics will be updated after the new interval takes effect and the first interval expires. For a physical interface, traffic statistics are updated immediately after the new interval takes effect.

    Enable the control-flap function.

    Run the control-flap [ suppress reuse ceiling decay-ok decay-ng ] command to enable the control-flap function on an interface.

    The value of suppress is 1000 times the interface suppression threshold. It ranges from 1 to 20000. The default value is 2000. The value of suppress must be greater than the value of reuse and less than the value of ceiling.

    The value of reuse is 1000 times the interface reuse threshold. It ranges from 1 to 20000. The default value is 750. The value of reuse must be less than the value of suppress.

    The value of ceiling is 1000 times the maximum interface suppression penalty value. It ranges from 1001 to 20000. The default value is 6000. The value of ceiling must be greater than the value of suppress.

    decay-ok specifies the half life for the penalty value when an interface is Up. It ranges from 1 to 900, in seconds. The default value is 54.

    decay-ng specifies the half life for the penalty value when an interface is Down. It ranges from 1 to 900, in seconds. The default value is 54.

  4. Run commit

    The configuration is committed.

Enabling an Interface

Physical interfaces on a device are initialized and started when the device is powered on.

Procedure

  • By default, interfaces are started.
  • If an interface is shut down, perform the following steps to start the interface:
    1. Run system-view

      The system view is displayed.

    2. Run interface interface-type interface-number

      The interface view is displayed.

    3. Run undo shutdown

      The interface is started.

    4. Run commit

      The configuration is committed.

(Optional) Configuring a Device to Send a Trap Message to an NMS When an Interface Physical Status Changes

You can enable a device to send a trap message to an NMS when the interface physical status changes. After this function is enabled, the NMS monitors the interface status in real time.

Procedure

  1. Run system-view

    The system view is displayed.

  2. Run interface interface-type interface-number

    The interface view is displayed.

  3. Run enable snmp trap physical-updown

    The device is enabled to send a trap message to the NMS when the interface physical status changes.

  4. Run commit

    The configuration is committed.

Configuring IPv4 and IPv6 Traffic Statistics on The Main Interface

You can configure the function on a main interface to collect the IPv4 and IPv6 traffic statistics about all the main interface.

Context

Do as follows on the Router that needs to be configured with IPv4 and IPv6 traffic statistics:

Procedure

  1. Run system-view

    The system view is displayed.

  2. Run interface

    The interface view is displayed.

  3. Run statistic enable

    IPv4 and IPv6 traffic statistics about a main interface are collected.

  4. Run statistic mode forward

    IPv4 and IPv6 traffic statistics about a main interface are collected.

Setting Thresholds for Generating and Clearing Packet Loss Rate Alarms on an MP-group or Global MP-group Interface

To allow the device to generate and clear packet loss rate alarms on an MP-group or global MP-group interface, set packet loss alarm thresholds.

Context

When an interface discards packets frequently, the link is in the poor condition, affecting service transmission. If you want to monitor the link quality, set thresholds for generating and clearing packet loss rate alarms on the MP-group interface or global MP-group interface.

Procedure

  1. Run system-view

    The system view is displayed.

  2. Run interface interface-type interface-number

    The interface view is displayed.

    MP-group and global MP-group interfaces are supported.

  3. Run trap-threshold mp-lospkt-exc trigger-threshold coefficient-value power-value resume-threshold resume-coefficient-value resume-power-value

    The thresholds for generating and clearing packet loss rate alarms are set.

  4. Run commit

    The configuration is committed.

Verifying the Configuration of an Interface

After the configurations are complete, check the status of the interface, statistics on the interface, and the control-flap operation.

Procedure

  • Run the display interface [ interface-type interface-number ] command to check the status of the interface and statistics on the interface.
  • Run the display control-flap interface interface-type interface-number command to check the configuration and running status of the control—flap function on interfaces.
  • Run the display counters [ bit ] [ inbound | outbound ] [ interface interface-type [ interface-number ] ] [ slot slot-id ] command to check the interface traffic statistics.
  • Run the display counters [ bit ] rate [ inbound | outbound ] [ interface interface-type [ interface-number | slot slot-id ] ]command to check the interface traffic rates.

Example

Run the display interface command. The command output shows the status of interfaces on the router.

<HUAWEI> display interface gigabitethernet 0/1/0
GigabitEthernet0/1/0 current state : UP (ifindex: 6)
Line protocol current state : UP
Last line protocol up time :  2013-07-29 15:39:29
Description: HUAWEI, GigabitEthernet0/1/0 Interface
Route Port,The Maximum Transmit Unit is 1500
Internet Address is 10.1.1.1/1
IP Sending Frames' Format is PKTFMT_ETHNT_2, Hardware address is 0afc-0229-1000
Last physical up time   :  2013-07-29 15:39:23
Last physical down time : 2013-07-29 15:38:41
Current system time: 2013-07-30 09:15:33
Statistics last cleared:never

      Last 600 seconds input rate: 23513 bits/sec, 2 packets/sec
      Last 600 seconds output rate: 64319 bits/sec, 3 packets/sec
      Input peak rate 26099 bits/sec, Record time: 2013-07-29 15:40:58
      Output peak rate 64809 bits/sec, Record time: 2013-07-30 03:59:41
      Input: 183126871 bytes, 182525 packets 
      Output: 509287017 bytes, 244628 packets
    Input:
      Unicast: 55 packets, Multicast: 160762 packets
      Broadcast: 21708 packets


, JumboOctets: 31031 packets
      CRC: 0 packets, Symbol: 0 packets
      Overrun: 0 packets, InRangeLength: 0 packets
      LongPacket: 0 packets, Jabber: 0 packets, Alignment: 0 packets
      Fragment: 0 packets, Undersized Frame: 0 packets
      RxPause: 0 packets
    Output:
      Unicast: 53 packets, Multicast: 243990 packets
      Broadcast: 585 packets

, JumboOctets: 0 packets
      Lost: 0 packets, Overflow: 0 packets, Underrun: 0 packets
      System: 0 packets, Overruns: 0 packets
      TxPause: 0 packets

    Ipv4: Last 300 seconds input rate: 512 bits/sec, 1 packets/sec
      Last 300 seconds output rate: 0 bits/sec, 0 packets/sec
      Input 63318 packets,4052352 bytes
      Output 0 packets,0 bytes
    
Ipv6: Last 300 seconds input rate: 0 bits/sec, 0 packets/sec
      Last 300 seconds output rate: 0 bits/sec, 0 packets/sec
      Input 0 packets,0 bytes
      Output 0 packets,0 bytes
    Last 600 seconds input utility rate:  0.01%
    Last 600 seconds output utility rate: 0.01%
Run the display control-flap command. The command output shows the configuration and running status of the control—flap function on interfaces.
<HUAWEI> display control-flap
Interface GigabitEthernet0/1/1
Control flap status: unsuppressed
Flap count: 0 
Current penalty: 0.000 
Control flap parameter:  suppress   reuse    decay-ok   decay-ng   ceiling
                         2.000      0.750    15         15         16.000

Run the display counters command. The command output shows traffic statistics about all interfaces on the device.

<HUAWEI> display counters
Inbound
Interface           Octets(bytes) Unicast(pkts) Multicast(pkts) Broadcast(pkts)
Eth-Trunk2                      0             0               0               0
GE0/1/0                         0          6860           39961         2697089
Loop1                           0             0               0               0
NULL0                           0             0               0               0
Outbound
Interface           Octets(bytes) Unicast(pkts) Multicast(pkts) Broadcast(pkts)
Eth-Trunk2                      0             0               0               0
GE0/1/0                         0         44910               0             702
Loop1                           0             0               0               0
NULL0                           0             0               0               0

Run the display counters rate command. The command output shows traffic rates on all interfaces on the device.

<HUAWEI> display counters rate
Inbound
Interface   Octets(bytes/s) Unicast(pkts/s) Multicast(pkts/s) Broadcast(pkts/s)
Eth-Trunk2                0               0                 0                 0
GE0/1/0                   0               0                 0                 0
Loop1                     0               0                 0                 0
NULL0                     0               0                 0                 0
Outbound
Interface   Octets(bytes/s) Unicast(pkts/s) Multicast(pkts/s) Broadcast(pkts/s)
Eth-Trunk2                0               0                 0                 0
GE0/1/0                   0               0                 0                 0
Loop1                     0               0                 0                 0
NULL0                     0               0                 0                 0
Download
Updated: 2019-01-02

Document ID: EDOC1100058380

Views: 1820

Downloads: 15

Average rating:
This Document Applies to these Products
Related Documents
Related Version
Share
Previous Next