HPE7-A08 practice question 32 of 35

Which CLI command removes a misconfigured default gateway from an Aruba CX switch?

Full set: 342 questions
Answer options
A: no ip default-gateway Correct answer
B: delete default route
C: unset gateway
D: clear ip route default
Correct Answer:
A. no ip default-gateway
Explanation

In the ArubaOS-CX command-line interface (CLI), the no prefix is used to negate or remove a previously configured command from the running configuration. The command to set the default gateway for management traffic (when IP routing is disabled) is ip default-gateway . Therefore, to remove a misconfigured default gateway, the corresponding command is no ip default-gateway. This command removes the static default gateway entry from the switch's configuration.

Why Incorrect

B. delete default route: The delete keyword is not the standard syntax for removing configuration statements in ArubaOS-CX; the no keyword is used instead.
C. unset gateway: The unset keyword is not a valid command in the ArubaOS-CX CLI for removing gateway configurations.
D. clear ip route default: The clear command is an operational command used to remove dynamic entries from tables (like the routing table), not to remove static lines from the running configuration.

References

1. HPE ArubaOS-CX 10.12 Fundamentals Guide, Page 139, "Configuring the default gateway" section. The guide states, "The ip default-gateway command configures the default gateway... To remove the default gateway, use the no form of this command."

2. HPE ArubaOS-CX 10.12 Command-Line Interface Guide, Page 1819, under the ip default-gateway command description. The syntax is shown as ip default-gateway and its negation as no ip default-gateway.

Scroll to Top