350-401 · Question #878
You have configured router R1 with multiple VRF's in order to support multiple customer VPN networks. If you wanted to see the best path for the 10.2.1.0.24 route in VRF Green, what command would you
The correct answer is A. show ip route vrf Green 10.2.1.0. To display the routing table entry for a specific route within a particular VRF on a Cisco router, the correct command syntax is show ip route vrf <vrf-name> <network>.
Question
You have configured router R1 with multiple VRF's in order to support multiple customer VPN networks. If you wanted to see the best path for the 10.2.1.0.24 route in VRF Green, what command would you use?
Options
- Ashow ip route vrf Green 10.2.1.0
- Bshow ip route 10.2.1.0 vrf Green
- Cshow route all 10.2.1.0
- Dshow ip route 10.2.1.0 Green
How the community answered
(30 responses)- A73% (22)
- B17% (5)
- C7% (2)
- D3% (1)
Why each option
To display the routing table entry for a specific route within a particular VRF on a Cisco router, the correct command syntax is `show ip route vrf <vrf-name> <network>`.
The command `show ip route vrf Green 10.2.1.0` correctly uses the `show ip route` command with the `vrf` keyword followed by the VRF name and then the target network, which is the standard Cisco IOS/IOS XE syntax to display a specific VRF's routing entry.
The command `show ip route 10.2.1.0 vrf Green` is syntactically incorrect because the `vrf` keyword and its argument should precede the network address in Cisco IOS/IOS XE.
The command `show route all 10.2.1.0` is not a standard Cisco IOS/IOS XE command for displaying VRF-specific routing information and lacks the `ip` keyword.
The command `show ip route 10.2.1.0 Green` uses an incorrect syntax for specifying the VRF, as the VRF name must be preceded by the `vrf` keyword.
Concept tested: Displaying VRF-specific routing table
Source: https://www.cisco.com/c/en/us/td/docs/ios-xml/ios/iproute_vrf/command/ivr-cr-book/ivr-cr-vrf-commands.html
Topics
Community Discussion
No community discussion yet for this question.