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 is ip-route 10.2.10.0/24 172.16.1.1 . This command specifies the destination network address (10.2.10.0) and prefix length (/24) and the next-hop address (172.16.1 .1) for reaching that network from the switch. The other commands are either incorrect syntax or incorrect parameters for adding a static route.References:https://www.arubanetworks.com/techdocs/AOS-CX_10_04/NOSCG/Content/cx-noscg/ip-routing/static-routes.htm
To add a static route in network devices, including Aruba switches, the correct command format generally includes the destination network, subnet mask (or CIDR notation for the mask), and the next-hop IP address. The command "ip route 10.2.10.0/24 172.16.1.1" correctly specifies the destination network "10.2.10.0" with a class C subnet mask indicated by "/24", and "172.16.1.1" as the next-hop IP address. This command is succinct and follows the standard syntax for adding a static route in many network operating systems, including ArubaOS-CX. The other options either have incorrect syntax or include additional unnecessary parameters that are not typically part of the standard command to add a static route.
Contribute your Thoughts:
Chosen Answer:
This is a voting comment (?). You can switch to a simple comment. It is better to Upvote an existing comment if you don't have anything to add.
Submit