Assume that you cannot configure an IP address for GE1/0/1 on a Huawei switch. Which of the following commands can you run in the interface view to resolve this problem?
On Huawei switches, a physical Ethernet interface usually works as a Layer 2 switch port by default. A Layer 2 interface cannot be assigned an IP address directly. If an administrator wants to configure an IP address on such an interface, the interface must first be converted into a Layer 3 interface. The command used for this is undo portswitch, so option B is correct.
After this command is executed, the interface no longer behaves as a Layer 2 switching port and can then support Layer 3 features such as direct IP address configuration. Options A, C, and D are all Layer 2 port-type commands used to configure the interface as a trunk, access, or hybrid port. These commands do not solve the problem because they keep the interface operating at Layer 2. HCIA-Datacom emphasizes the difference between Layer 2 switching interfaces and Layer 3 routed interfaces on switches. Understanding when to use undo portswitch is important in campus network deployment, especially when configuring routed uplinks, management interfaces, or inter-device Layer 3 links on switches.
Currently there are no comments in this discussion, be the first to comment!