Common Ethernet Interface Operations : Switching an Interface to Layer 3 Mode

Latest reply: May 23, 2016 02:26:05 1504 1 0 0

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

<HUAWEI> system-view
[HUAWEI] interface gigabitethernet 0/0/1
[HUAWEI-GigabitEthernet0/0/1] undo portswitch
[HUAWEI-GigabitEthernet0/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.

Since V200R003, interfaces on the S5700EI, S5700HI, S5710EI, S5710HI, S5720EI, S5720HI, S6700EI, S6720EI, S7700, and S9700 support switching between Layer 2 and Layer 3 modes.

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.

 

 

  • x
  • convention:

user_1763575
Created May 23, 2016 02:26:05 Helpful(0) Helpful(0)

Good,Thank you!
  • x
  • convention:

Reply

Reply
You need to log in to reply to the post Login | Register

Notice Notice: To protect the legitimate rights and interests of you, the community, and third parties, do not release content that may bring legal risks to all parties, including but are not limited to the following:
  • Politically sensitive content
  • Content concerning pornography, gambling, and drug abuse
  • Content that may disclose or infringe upon others ' commercial secrets, intellectual properties, including trade marks, copyrights, and patents, and personal privacy
Do not share your account and password with others. All operations performed using your account will be regarded as your own actions and all consequences arising therefrom will be borne by you. For details, see " Privacy."
If the attachment button is not available, update the Adobe Flash Player to the latest version!
Login and enjoy all the member benefits

Login and enjoy all the member benefits

Login