Cisco Certified Network Associate Exam: Routing Traffic to a Specific Interface

How to Route Traffic to a Specific Interface in Cisco Networks

Prev Question Next Question


Which command can you enter to route all traffic that is destined for to a specific interface?



Click on the arrows to vote for the correct answer

A. B. C. D.


The command that can be used to route all traffic destined for the network to a specific interface is:

A. router(config)#ip route GigabitEthernet0/1


The command "ip route" is used to configure static routing on a Cisco router. The parameters following this command specify the destination network and subnet mask of the route, as well as the next-hop address or the outgoing interface.

In option A, the destination network is with a subnet mask of, which corresponds to a prefix length of /20. This means that the first 20 bits of the destination IP address are fixed, and the remaining 12 bits can vary.

The next parameter, "GigabitEthernet0/1", specifies the outgoing interface through which the traffic should be sent. This interface must already be configured on the router.

Option B is incorrect because the subnet mask corresponds to a /24 prefix length, which is too narrow to include the network. Option C is a default route that matches all destination networks, which is not what the question is asking for. Option D has the correct destination network, but the subnet mask is incorrect, as it only covers a /24 prefix length.

Therefore, the correct answer is A.