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

S1720, S2700, S3700, S5700, S6700, S7700, and S9700 Series Switches Common Operation Guide

This document describes the CLI-based configurations of universal protocols and common features for Huawei switches on basic networks.
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 Interface to Layer 3 Mode

Switching an Interface to Layer 3 Mode

# Change the working mode of GE1/0/1 from Layer 2 mode to Layer 3 mode.

<HUAWEI> system-view
[HUAWEI] interface gigabitethernet 1/0/1
[HUAWEI-GigabitEthernet1/0/1] undo portswitch
[HUAWEI-GigabitEthernet1/0/1] ip address 10.10.10.10 255.255.255.0 

To switch an interface to Layer 3 mode, run the undo portswitch command in the interface view.

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.

The switches and versions that support switching between Layer 2 and Layer 3 modes are as follows:
  • S5700EI: V200R005C00&C01
  • S5700HI: V100R005C01, V100R006C01, V200R001C00, V200R002C00, V200R003C00, V200R005C00&C01
  • S5710EI: V200R002C00, V200R003C00, V200R005C00
  • S5720EI: V200R007C00, V200R008C00, V200R009C00, V200R010C00, V200R011C00, V200R011C10, V200R012C00
  • S5710HI: V200R003C00, V200R005C00
  • S5720HI: V200R006C00, V200R007C00, V200R008C00, V200R009C00, V200R010C00, V200R011C00, V200R011C10, V200R012C00
  • S5730HI: V200R012C00
  • S6700EI: V200R005C00&C01
  • S6720EI: V200R008C00, V200R009C00, V200R010C00, V200R011C00, V200R011C10, V200R012C00
  • S6720S-EI: V200R008C00, V200R009C00, V200R010C00, V200R011C00, V200R011C10, V200R012C00
  • S6720HI: V200R012C00
  • S7700&S9700: V200R001C00&C01, V200R002C00, V200R003C00, V200R005C00, V200R006C00, V200R007C00, V200R008C00, V200R009C00, V200R010C00, V200R011C10, V200R012C00

For switches in V200R005C00 and later versions, after running the undo portswitch command to switch an Ethernet interface to Layer 3 mode, you can assign an IP address to the interface.

Translation
Download
Updated: 2018-09-03

Document ID: EDOC1000057410

Views: 90867

Downloads: 12224

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