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

Question

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

Answers

Explanations

Click on the arrows to vote for the correct answer

A. B. C. D.

A

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

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

Explanation:

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 192.168.0.0 with a subnet mask of 255.255.240.0, 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 255.255.255.0 corresponds to a /24 prefix length, which is too narrow to include the 192.168.0.0/20 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.