Which command will display only direct routes?
A.
show route
B.
show route inet.0 direct
C.
show ip route direct
D.
show route protocol direct
Explanation:
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 route protocol direct
Explanation:
http://www.juniper.net/documentation/en_US/junos12.1/topics/reference/command-summary/show-route-protocol.html
show route protocol
Syntax
show route protocol protocol
Syntax (EX Series Switches)
show route protocol protocol
Release Information
Command introduced before Junos OS Release 7.4.
Command introduced in Junos OS Release 9.0 for EX Series switches.
Options opsf2 and ospf3 introduced in Junos OS Release 9.2.
Options opsf2 and ospf3 introduced in Junos OS Release 9.2 for EX Series switches.
Option flow introduced in Junos OS Release 10.0.
Option flow introduced in Junos OS Release 10.0 for EX Series switches.
Description
Display the route entries in the routing table that were learned from a particular protocol.
Options
brief | detail | extensive | terse
—
(Optional) Display the specified level of output. If you do not specify a level of output, the system defaults to brief.
logical-system (all | logical-system-name)
—
(Optional) Perform this operation on all logical systems or on a particular logical system.
protocol
—
Protocol from which the route was learned:
access—Access route for use by DHCP application
access-internal—Access-internal route for use by DHCP application
aggregate—Locally generated aggregate route
atmvpn—Asynchronous Transfer Mode virtual private network
bgp—Border Gateway Protocol
ccc—Circuit cross-connect
direct—Directly connected route
dvmrp—Distance Vector Multicast Routing Protocol
esis—End System-to-Intermediate System
flow—Locally defined flow-specification route.
isis—Intermediate System-to-Intermediate System
ldp—Label Distribution Protocol
l2circuit—Layer 2 circuit
l2vpn—Layer 2 virtual private network
local—Local address
mpls—Multiprotocol Label Switching
msdp—Multicast Source Discovery Protocol
ospf—Open Shortest Path First versions 2 and 3
ospf2—Open Shortest Path First version 2 only
ospf3—Open Shortest Path First version 3 only
pim—Protocol Independent Multicast
rip—Routing Information Protocol
ripng—Routing Information Protocol next generation
rsvp—Resource Reservation Protocol
rtarget—Local route target virtual private network
static—Statically defined route
tunnel—Dynamic tunnel
vpn—Virtual private network
example
oot@vSRX_R2# run show route protocol direct extensive
inet.0: 8 destinations, 8 routes (8 active, 0 holddown, 0 hidden)
2.2.2.2/32 (1 entry, 0 announced)
*Direct Preference: 0
Next hop type: Interface
Address: 0x93500a0
Next-hop reference count: 1
Next hop: via lo0.0, selected
State:
Age: 2d 1:22:46
Task: IF
AS path: I
192.168.1.0/24 (1 entry, 0 announced)
*Direct Preference: 0
Next hop type: Interface
Address: 0x9350250
Next-hop reference count: 1
Next hop: via ge-0/0/0.0, selected
State:
Age: 2d 0:43:12
Task: IF
AS path: I
—(more)—[abort]
[edit system ntp]
root@vSRX_R2# run show route protocol direct brief
inet.0: 8 destinations, 8 routes (8 active, 0 holddown, 0 hidden)
+ = Active Route, – = Last Active, * = Both
2.2.2.2/32 *[Direct/0] 2d 01:22:54
> via lo0.0
192.168.1.0/24 *[Direct/0] 2d 00:43:20
> via ge-0/0/0.0
192.168.2.0/24 *[Direct/0] 2d 01:22:26
> via ge-0/0/1.0
[edit system ntp]
root@vSRX_R2# run show route protocol direct detail
inet.0: 8 destinations, 8 routes (8 active, 0 holddown, 0 hidden)
2.2.2.2/32 (1 entry, 0 announced)
*Direct Preference: 0
Next hop type: Interface
Address: 0x93500a0
Next-hop reference count: 1
Next hop: via lo0.0, selected
State:
Age: 2d 1:23:00
Task: IF
AS path: I
192.168.1.0/24 (1 entry, 0 announced)
*Direct Preference: 0
Next hop type: Interface
Address: 0x9350250
Next-hop reference count: 1
Next hop: via ge-0/0/0.0, selected
State:
Age: 2d 0:43:26
Task: IF
AS path: I
192.168.2.0/24 (1 entry, 0 announced)
*Direct Preference: 0
Next hop type: Interface
Address: 0x9350448
Next-hop reference count: 1
Next hop: via ge-0/0/1.0, selected
State:
Age: 2d 1:22:32
Task: IF
AS path: I
[edit system ntp]
root@vSRX_R2# run show route protocol direct terse
inet.0: 8 destinations, 8 routes (8 active, 0 holddown, 0 hidden)
+ = Active Route, – = Last Active, * = Both
A Destination P Prf Metric 1 Metric 2 Next hop AS path
* 2.2.2.2/32 D 0 >lo0.0
* 192.168.1.0/24 D 0 >ge-0/0/0.0
* 192.168.2.0/24 D 0 >ge-0/0/1.0
[edit system ntp]
root@vSRX_R2#
Direct routes are directly connected subnets. Local routes are the
actual IP (/32) of the router’s interface.