Which command will display only direct routes?
A.
show route
B.
show route inet 0 direct
C.
show ip route direct
D.
show ip route protocol direct
Which command will display only direct routes?
Which command will display only direct routes?
A.
show route
B.
show route inet 0 direct
C.
show ip route direct
D.
show ip route protocol direct
The site says Answer is D.
Well…Here is output from an SRX running version 11 of Junos
S2SAdmin@SRXBranch> show i
^
‘i’ is ambiguous.
Possible completions:
iccp Show Inter Chassis Control Protocol information
igmp Show Internet Group Management Protocol information
ingress-replication Show Ingress-Replication tunnel information
interfaces Show interface information
ipv6 Show IP version 6 information
isdn Show Integrated Services Digital Network information
isis Show Intermediate System-to-Intermediate System information
S2SAdmin@SRXBranch> edit
Entering configuration mode
The configuration has been changed but not committed
[edit]
S2SAdmin@SRXBranch# show i?
Possible completions:
> interfaces Interface configuration
[edit]
S2SAdmin@SRXBranch> show route i?
Possible completions:
IP address and optional prefix length of destination
inactive-path Show inactive paths
inactive-prefix Show inactive route destinations
instance Show routing instances information
And you cannot use the show route command in Config mode so That pretty much narrows it down to Show Route being the correct answer.
So I assume that A is more than likely correct.
This is no longer valid…See below comments.
Answer is D only if “show route protocol direct”
Correct, So now that the answer is properly typed…The correct answer is D.
Thank you for that comment.
Proof below
SRXBranch> show route protocol direct
inet.0: 3 destinations, 3 routes (3 active, 0 holddown, 0 hidden)
+ = Active Route, – = Last Active, * = Both
192.168.15.0/24 *[Direct/0] 4w1d 23:20:29
> via fe-0/0/0.0
trust-vr.inet.0: 15 destinations, 15 routes (15 active, 0 holddown, 0 hidden)
+ = Active Route, – = Last Active, * = Both
172.20.202.113/32 *[Direct/0] 4w1d 23:21:05
> via lo0.0
192.168.96.0/24 *[Direct/0] 4w1d 23:20:35
> via vlan.0
show route protocol direct
Correct there is an error answer “D” “show ip route protocol direct” with no ip in the command makes the choice a correct one
http://www.juniper.net/techpubs/en_US/junose12.0/topics/reference/command-summary/show-ip-route.html