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

Configuration Guide - Interface Management

CloudEngine 12800 and 12800E V200R003C00

This document describes the interface management configuration, including basic interface configuration, Ethernet interface configuration, and logical interface configuration.

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).
Switching Interfaces to Layer 3 Mode

Switching Interfaces to Layer 3 Mode

Context

Based on the hardware structure of interface cards, the interfaces on some devices can only function as Layer 2 or Layer 3 Ethernet interfaces, and some other interfaces have flexible modes. In Layer 2 mode, an interface can be used as a Layer 2 Ethernet interface; in Layer 3 mode, the interface can be used as a Layer 3 Ethernet interface.

By default, an Ethernet interface on the device works in Layer 2 mode. To enable the Layer 3 functions on the interface, run the undo portswitch command on the interface.

When several interfaces need to be switched between Layer 2 and Layer 3 modes, run the portswitch batch command in the system view to perform batch switching.

NOTE:

Eth-Trunk member interfaces do not support the configuration of switching between Layer 2 and Layer 3 modes.

Procedure

  • Switching a single Ethernet interface to Layer 3 mode in the Ethernet interface view
    1. Run system-view

      The system view is displayed.

    2. Run interface interface-type interface-number

      The Ethernet interface view is displayed.

    3. Run undo portswitch

      The interface is switched to Layer 3 mode.

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

      The mode switching function takes effect when the interface only has attribute configurations (for example, shutdown and description configurations). Alternatively, if configuration information supported by both Layer 2 and Layer 3 interfaces exists (for example, mode lacp and lacp system-id configurations), no configuration that is not supported after the working mode of the interface is switched can exist. If unsupported configurations exist on the interface, delete the configurations first and then run the undo portswitch command.

      NOTE:

      Like a VLAN, each interface switched to the Layer 3 mode will occupy the internal forwarding resource of the device. Therefore, only less than 4063 VLANs can be created on the device after the interfaces are switched to the Layer 3 mode.

      You can still configure switching between Layer 2 and Layer 3 modes on an interface when the device's internal forwarding resources exceed the specifications. However, an exception may occur during switching between Layer 2 and Layer 3 modes after the device restarts.

    4. (Option) Run shutdown network-layer

      The protocol layer status of an interface is disabled.

      By default, the protocol layer status of an interface is not disabled.

      In scenarios where fault locating is implemented for optical modules or fibers, users require that only the protocol status of an interface becomes Down but the physical and link layer status remains unchanged. To meet this requirement, run the shutdown network-layer command to disable the protocol status of the interface. After faults are located at the physical and link layers, run the undo shutdown network-layer command to restart the protocol status of the interface.
      NOTE:

      The shutdown network-layer and protocol up-delay-time commands cannot be configured together.

    5. Run commit

      The configuration is committed.

  • Switching Ethernet interfaces to Layer 3 mode in batches in the system view
    1. Run system-view

      The system view is displayed.

    2. Run undo portswitch batch interface-type { interface-number1 [ to interface-number2 ] } &<1-10>

      The interfaces are batch switched to Layer 3 mode.

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

    3. Run commit

      The configuration is committed.

Verifying the Configuration

Run the display interface [ interface-type [ interface-number ] ] command in any view or the display this interface command in the interface view to check the current interface status. If the Switch Port field is displayed in the command output, the interface is a Layer 2 interface; if the Route Port field is displayed, the interface is a Layer 3 interface.

Translation
Download
Updated: 2019-05-05

Document ID: EDOC1100004195

Views: 18835

Downloads: 37

Average rating:
This Document Applies to these Products

Related Version

Related Documents

Share
Previous Next