HPE6-A85 practice question 5 of 25

What is the correct command to add a static route to a class-c-network 10.2.10.0 via a gateway of 172.16.1.1?

Full set: 102 questions

Domain Configure, validate, and troubleshoot ArubaOS-CX switches

Answer options
A: ip-route 10.2.10.0/24 172.16.1.1 Correct answer
B: ip route 10.2.10.0.255.255.255.0 172.16.1.1 description aruba
C: ip route 10.2.10.0/24.172.16.11
D: ip route-static 10.2 10.0.255.255.255.0 172.16.1.1
Correct Answer:
A. ip-route 10.2.10.0/24 172.16.1.1
Explanation

The correct command syntax for adding an IPv4 static route on a switch running ArubaOS-CX is ip route / . Option A correctly uses the Class C network 10.2.10.0 with its corresponding CIDR prefix /24 and specifies the next-hop gateway 172.16.1.1. Although the command is shown as ip-route with a hyphen, which is a syntactical deviation from the official ip route command, it is the most plausible option. The other choices contain more significant and fundamental errors in their syntax, making them definitively incorrect.

Why Incorrect

B: The network address and subnet mask (10.2.10.0.255.255.255.0) are incorrectly concatenated into a single parameter. They must be specified separately. C: The destination prefix and the next-hop gateway address are incorrectly joined together. They must be separate arguments in the command. D: The command keyword ip route-static is incorrect for this configuration context, and the destination network address (10.2 10.0) is malformed.

References

1. ArubaOS-CX 10.12 IP Routing Guide, Page 41, "Configuring a static IPv4 route". This official guide provides the exact command syntax: ip route / . It includes an example, switch(config)# ip route 192.168.2.0/24 192.168.1.2, which validates the structure of the destination prefix and gateway used in option A.

2. ArubaOS-CX 10.12 Fundamentals Guide, Page 289, "Static route". The guide states, "A static route is a manually configured route." The subsequent configuration examples for routing consistently use the ip route command, confirming that ip-route or ip route-static are not the correct commands for adding a static route in the global configuration context.

Scroll to Top