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

CLI-based Configuration Guide - Interface Management

AR100, AR120, AR160, AR1200, AR2200, AR3200, and AR3600 V300R003

This document provides the basic concepts, configuration procedures, and configuration examples of the interfaces supported by the device.
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 an Ethernet Interface to Layer 3 Mode

Switching an Ethernet Interface to Layer 3 Mode

Context

Due to hardware restrictions of interface cards, some Ethernet interfaces work in only Layer 2 or Layer 3 mode, whereas other Ethernet interfaces can work in both Layer 2 and Layer 3 modes. An Ethernet interface works as a Layer 2 interface in Layer 2 mode and a Layer 3 interface in Layer 3 mode.

NOTE:

Eth0/0/0 to Eth0/0/3 on the AR100&AR120 (Except AR129CV, AR129CVW, and AR129CGVW-L)&AR150 series can be changed from Layer 2 mode to Layer 3 mode.

GE0/0/0 to GE0/0/3 on the AR100 series, AR129CV, AR129CVW, AR129CGVW-L, AR160 series can be changed from Layer 2 mode to Layer 3 mode.

Eth0/0/0 to Eth0/0/7 on the AR200 series, AR1220, AR1220V, AR1220W, AR1220VW, and AR1220F can be changed from Layer 2 mode to Layer 3 mode.

GE0/0/0 to GE0/0/7 on the AR1220C, AR1220E, AR1220EV, and AR1220EVW can be changed from Layer 2 mode to Layer 3 mode.

Eth0/0/0 and Eth0/0/47 on the AR2201-48FE and AR2202-48FE can be changed from Layer 2 mode to Layer 3 mode.

GE0/0/3 to GE0/0/50 on the AR2204-51GE-P and AR2204-51GE-R can be changed from Layer 2 mode to Layer 3 mode.

GE0/0/3 to GE0/0/26 on the AR2204-27GE-P and AR2204-27GE can be changed from Layer 2 mode to Layer 3 mode.

After the reserved VLAN ID of the 9ES2 Ethernet LAN card (excluding the 9ES2 Ethernet LAN card installed on the AR1200 series router ) is delivered using the set reverved-vlan command, the working modes of all interfaces on the card can be changed from Layer 2 mode to Layer 3 mode.

AR2220E and AR2240&AR3260 series (except AR2240C) can run the portswitch command to change the working mode of all interfaces on the SRU, 4GECS and 2X10GL from Layer 3 mode to Layer 2 mode. The interfaces that change the working mode to layer 2 only support VXLAN.

Procedure

  1. Run system-view

    The system view is displayed.

  2. Run interface { ethernet | gigabitethernet | xgigabitethernet } interface-number

    The Ethernet interface view is displayed.

  3. Run undo portswitch

    The Ethernet interface is switched from Layer 2 mode to Layer 3 mode.

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

    When you run this command on an interface, the mode switching configuration takes effect when only attribute configurations (such as shutdown and description configurations) exist on the interface. If service configurations (such as the port link-type trunk configuration) exist on the interface, you need to clear all service configurations before running this command.

    NOTE:

    IP addresses can be assigned to Ethernet interfaces in Layer 3 mode. Only Ethernet interfaces that are switched from Layer 2 mode to Layer 3 mode can be switched back to Layer 2 mode using the portswitch command. Other Layer 3 Ethernet interfaces cannot be switched to Layer 2 mode.

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 running status of an interface. The interface is a Layer 2 interface if the Switch Port field is displayed in the command output and is a Layer 3 interface if the Route Port field is displayed.

Translation
Download
Updated: 2019-03-06

Document ID: EDOC1100069331

Views: 20894

Downloads: 93

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