Which command configures IPv4 routes on Cisco IOS?

Study for the Router and Routing Basics Test with interactive quizzes. Tackle multiple choice questions, explore hints, and review explanations. Prepare for your exam effectively!

Multiple Choice

Which command configures IPv4 routes on Cisco IOS?

Explanation:
In Cisco IOS, IPv4 routes are configured with the ip route command in global router configuration mode. This command creates static IPv4 routes by specifying the destination network, its subnet mask, and the next-hop IP address or exit interface. For example, ip route 192.168.2.0 255.255.255.0 192.168.1.1 tells the router how to reach the 192.168.2.0/24 network via 192.168.1.1. You can also use a default route with something like ip route 0.0.0.0 0.0.0.0 <next-hop>. The other options don’t configure IPv4 routes: ipv6 route is used for IPv6 routes, not IPv4; ipv4 route isn’t a valid Cisco IOS command; and address-family route is used within routing protocols to manage different address families, not to create static IPv4 routes.

In Cisco IOS, IPv4 routes are configured with the ip route command in global router configuration mode. This command creates static IPv4 routes by specifying the destination network, its subnet mask, and the next-hop IP address or exit interface. For example, ip route 192.168.2.0 255.255.255.0 192.168.1.1 tells the router how to reach the 192.168.2.0/24 network via 192.168.1.1. You can also use a default route with something like ip route 0.0.0.0 0.0.0.0 .

The other options don’t configure IPv4 routes: ipv6 route is used for IPv6 routes, not IPv4; ipv4 route isn’t a valid Cisco IOS command; and address-family route is used within routing protocols to manage different address families, not to create static IPv4 routes.

Subscribe

Get the latest from Passetra

You can unsubscribe at any time. Read our privacy policy