Routing
Routing

Show ip route connected in JUNOS?

‎08-14-2019 08:35 AM

Hi all

Is there a method to view directly connected routes within JUNOS?.

I recall in Cisco there was 'show ip route connected' ...

Many thanks

Ajaz Nawaz
JNCIE-SEC#254 CCIE#15721
JNCIA-FWV | JNCIS-FWV
JNCIA-JUNOS | JNCIS-SEC
JNCIP-SEC | JNCIE-SEC
CCNP-Collaboration
2 REPLIES 2
Routing

Re: Show ip route connected in JUNOS?

‎08-14-2019 08:56 AM

Hi ! 

 

You could use show route protocol direct

 

here is an example

 

labroot@vienne-re0> show route protocol direct

inet.0: 622 destinations, 629 routes (622 active, 0 holddown, 0 hidden)
+ = Active Route, - = Last Active, * = Both

10.85.161.128/25 *[Direct/0] 1d 19:24:11
> via fxp0.0
[Direct/0] 1d 19:23:56
> via fxp0.0
172.170.100.0/30 *[Direct/0] 1d 19:21:28
> via xe-0/3/0.100
173.241.238.16/32 *[Direct/0] 1d 19:24:11
> via lo0.0
192.171.23.12/31 *[Direct/0] 00:03:31
> via irb.3429

 

Best

 

Mu

Routing

Re: Show ip route connected in JUNOS?

‎08-14-2019 09:04 AM

Please check this tech pubs link :

 

https://www.juniper.net/documentation/en_US/junos/topics/reference/command-summary/show-route-protoc... 

 

You need to use the command :  show route protocol protocol direct 

Example

labroot@sun-re0> show route protocol direct

inet.0: 4 destinations, 5 routes (4 active, 0 holddown, 0 hidden)
+ = Active Route, - = Last Active, * = Both

10.85.160.0/25 *[Direct/0] 3w0d 06:38:37
> via fxp0.0
[Direct/0] 3w0d 06:38:32
> via fxp0.0