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

CX11x, CX31x, CX710 (Earlier Than V6.03), and CX91x Series Switch Modules V100R001C10 Configuration Guide 12

The documents describe the configuration of various services supported by the CX11x&CX31x&CX91x series switch modules The description covers configuration examples and function configurations.
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).
Configuring Basic Interface Parameters

Configuring Basic Interface Parameters

This section describes how to configure basic interface parameters, including interface description and traffic statistics collection interval, and how to shut down and enable an interface.

Entering the Interface View

Context

To configure an interface, enter the interface view.

Procedure

  1. Run:

    system-view

    The system view is displayed.

  2. Run:

    interface interface-type interface-number

    The interface view is displayed.

    interface-type interface-number specifies the type and number of an interface.

    NOTE:

    If the specified interface does not exist, this command creates the interface and displays the interface view.

  3. (Optional) Run:

    commit

    The configuration is committed.

    You do not need to run this command if you only want to enter the interface view.

Configuring an Interface Description

Context

To facilitate device management and maintenance, you can configure descriptions for interfaces. An interface description can contain the device where the interface is located, interface type, and remote device. For example: To-[DeviceB]10GE-1/17/1 indicates that an interface of this device is connected to 10GE1/17/1 of device B.

Procedure

  1. Run:

    system-view

    The system view is displayed.

  2. Run:

    interface interface-type interface-number

    The interface view is displayed.

  3. Run:

    description description

    The description is configured for the interface.

    By default, an interface has no description.

    NOTE:

    The interface description is displayed from the first non-space character.

  4. Run:

    commit

    The configuration is committed.

Configuring the Traffic Statistics Collection Interval

Context

By setting the traffic statistics collection interval, you can collect and analyze packet statistics. According to traffic statistics, you can take measures to prevent network congestion and service interruption.

  • When congestion occurs, you can set the statistics collection interval on an interface to 300 seconds or less (30 seconds if congestion worsens). Then observe traffic distribution on the interface within a short period of time. Take measures to data packets that cause congestion to control the rate of the packets.

  • When the network bandwidth is sufficient and services are running properly, set the statistics collection interval on an interface to more than 300 seconds. If traffic parameters on an interface are out of the specified range, change the statistics collection interval to observe the traffic statistics in real time.

NOTE:
  • The interval set in the system view takes effect on all the interfaces that use the default interval.

  • The interval set in the interface view takes effect only on this interface.

  • The interval set in the interface view takes precedence over the interval set in the system view.

Procedure

  • Configure the global traffic statistics collection intervals in the system view.
    1. Run:

      system-view

      The system view is displayed.

    2. Run:

      set flow-stat interval interval-time

      The global traffic statistics collection interval is set.

      By default, the global traffic statistics collection interval is 300s.

    3. Run:

      commit

      The configuration is committed.

  • Configure the traffic statistics collection interval on an interface.
    1. Run:

      system-view

      The system view is displayed.

    2. Run:

      interface interface-type interface-number

      The interface view is displayed.

    3. Run:

      set flow-stat interval interval-time

      The traffic statistics collection interval is set on the interface.

      By default, the traffic statistics collection interval on an interface is 300s.

    4. Run:

      commit

      The configuration is committed.

Configuring the Delay Before the Protocol Status of an Interface Can Go Up

Context

On a network with primary and backup links, when the primary link becomes faulty, service traffic is switched from the primary link to the backup link. After the primary link is restored, service traffic is switched back to the primary link. When the interface protocol status of the primary link is Up, Layer 3 protocols such as routing and VRRP protocols are used to send protocol packets and re-negotiate with the peer end. If the link status of the local or peer interface does not meet the forwarding requirement, the protocol packets are discarded. This makes the Layer 3 protocol negotiation mechanism ineffective and results in extra device costs.

For example, the local end uses a 10GE interface for the primary link and the interface protocol status is Up; the peer end uses a VLANIF interface and the interface protocol status is Up. However, the member physical interface of the VLANIF interface is still in STP blocking status of the link layer. When the routing protocol packet sent by the local 10GE interface reaches the peer end, the peer end cannot respond to the packet because the peer physical interface is in STP blocking status. You can run the protocol up-delay-time command to configure the delay before the protocol status of an interface can go Up. This enables the protocol status of the interface to go Up after its link status is recovered, which prevents the protocol packets from being discarded.

Procedure

  1. Run:

    system-view

    The system view is displayed.

  2. Run:

    interface interface-type interface-number

    The interface view is displayed.

  3. On an Ethernet interface, run:

    undo portswitch

    The interface is switched to Layer 3 mode.

    By default, an Ethernet interface works in Layer 2 mode.

    If an Ethernet interface already has Layer 2 configuration, this command fails to be executed on the interface. Before running this command on the interface, delete all the Layer 2 configuration of the interface.

    NOTE:

    If many Ethernet interfaces need to be switched to Layer 3 mode, run the undo portswitch batch interface-type { interface-number1 [ to interface-number2 ] } &<1-10> command in the system view to switch these interfaces to Layer 3 mode in batches.

  4. Run:

    protocol up-delay-time time-value

    The delay before the protocol status of the interface can go Up is configured.

    By default, the physical interface delay is 0s, the VLANIF interface delay is 1s.

  5. Run:

    commit

    The configuration is committed.

Enabling or Disabling an Interface

Context

After modifying parameters of an interface, run the shutdown and undo shutdown commands, or run the restart command to make the modification take effect.

When an interface is not connected to a cable or a fiber, disable the interface using the shutdown command to prevent exceptions caused by interference.

NOTE:
  • Running the shutdown and undo shutdown commands is equivalent to running the restart command. Running the shutdown command does not modify or delete interface configurations..
  • A NULL interface is always Up and cannot be enabled or disabled by commands.
  • A loopback interface is always Up and cannot be enabled or disabled by commands.

Procedure

  • Disable an interface.
    1. Run:

      system-view

      The system view is displayed.

    2. Run:

      interface interface-type interface-number

      The interface view is displayed.

    3. Run:

      shutdown

      The interface is disabled.

      By default, an interface is enabled.

    4. Run:

      commit

      The configuration is committed.

  • Enable an 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 enabled.

      By default, an interface is enabled.

    4. Run:

      commit

      The configuration is committed.

Checking the Configuration

Procedure

  • Run the display interface [ interface-type [ interface-number ] ] command to check information about an interface, including interface running status, basic interface configuration, and packet forwarding on the interface.
  • Run the display interface brief [ main ] or display interface brief panel-order command to check brief information about interfaces, including the physical status, protocol status, bandwidth usage in the inbound and outbound directions during a certain period, and the number of error packets sent and received.
  • Run the display interface ethernet brief main non-unicast command to check brief information about multicast and broadcast packets of all main Ethernet physical interfaces. The information includes the physical status, protocol status, and statistics on multicast and broadcast packets in the inbound and outbound directions.
  • Run the display ip interface [ interface-type interface-number ] command to check the IP configuration of an interface.
  • Run the display interface description [ interface-type [ interface-number ] ] command to check the description of an interface.
  • Run the display interface counters [ inbound | outbound ] [ interface-type [ interface-number ] ] command to check traffic statistics on a physical interface.
  • Run the display interface counters rate [ inbound | outbound ] [ interface-type [ interface-number ] ] command to view the inbound and outbound traffic rates on an interface.
Translation
Download
Updated: 2019-08-09

Document ID: EDOC1000041694

Views: 58438

Downloads: 3621

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