HelpFull Router and Network commands

You can check the routes for a bgp on a router

bibhuti@edge1-re0.> show route receive-protocol bgp 10.16.7.4 

inet.0: 841316 destinations, 1361340 routes (841312 active, 2 holddown, 3 hidden)

Restart Complete

  Prefix   Nexthop       MED     Lclpref    AS path

* 10.103.0.0/16           10.16.7.4                               65421 I

  10.104.0.0/16           10.16.7.4                               65421 I

  10.106.0.0/16           10.16.7.4                               65421 I

* 10.108.0.0/16           10.16.7.4                               65421 I

  10.225.0.0/19           10.16.7.4                               65421 I

inet.3: 18 destinations, 18 routes (18 active, 0 holddown, 0 hidden)

Restart Complete

jive-external.inet.0: 6 destinations, 6 routes (6 active, 0 holddown, 0 hidden)

jive-internal.inet.0: 156 destinations, 156 routes (156 active, 0 holddown, 0 hidden)

jive-ops.inet.0: 32 destinations, 32 routes (32 active, 0 holddown, 0 hidden)

geo-hub.inet.0: 403 destinations, 671 routes (402 active, 0 holddown, 1 hidden)

  Prefix   Nexthop       MED     Lclpref    AS path

* 10.103.0.0/16           10.16.7.4                               65421 I

  10.104.0.0/16           10.16.7.4                               65421 I

  10.106.0.0/16           10.16.7.4                               65421 I

* 10.108.0.0/16           10.16.7.4                               65421 I

  10.225.0.0/19           10.16.7.4                               65421 I

gtt-pbr.inet.0: 70 destinations, 71 routes (70 active, 0 holddown, 0 hidden)

cl-pbr.inet.0: 70 destinations, 71 routes (70 active, 0 holddown, 0 hidden)

inet.0: 841488 destinations, 1542036 routes (841486 active, 0 holddown, 6 hidden)

Restart Complete

  Prefix   Nexthop       MED     Lclpref    AS path

  10.34.128.0/20          10.16.7.43                              7224 I

  10.39.160.0/21          10.16.7.43                              7224 I

inet.3: 18 destinations, 18 routes (18 active, 0 holddown, 0 hidden)

Restart Complete

SYNA-pbr.inet.0: 66 destinations, 67 routes (66 active, 0 holddown, 0 hidden)

cl-pbr.inet.0: 66 destinations, 67 routes (66 active, 0 holddown, 0 hidden)

jive-external.inet.0: 10 destinations, 10 routes (9 active, 0 holddown, 1 hidden)

jive-internal.inet.0: 155 destinations, 155 routes (155 active, 0 holddown, 0 hidden)

jive-ops.inet.0: 32 destinations, 32 routes (32 active, 0 holddown, 0 hidden)

gtt-pbr.inet.0: 66 destinations, 67 routes (66 active, 0 holddown, 0 hidden)

geo-hub.inet.0: 400 destinations, 667 routes (399 active, 0 holddown, 1 hidden)

  Prefix   Nexthop       MED     Lclpref    AS path

* 10.34.128.0/20          10.16.7.43                              7224 I

* 10.39.160.0/21          10.16.7.43                              7224 I

mpls.0: 25 destinations, 25 routes (25 active, 0 holddown, 0 hidden)

Restart Complete

===================

To check the interface health status on router.

bibhuti@edge1-re0.> show interfaces diagnostics optics xe-1/0/5 

Physical interface: xe-1/0/5

  Laser bias current            : 40.214 mA

  Laser output power            : 0.6610 mW / -1.80 dBm

  Module temperature            : 37 degrees C / 99 degrees F

  Module voltage              : 3.2920 V

  Receiver signal average optical power   : 0.0006 mW / -32.22 dBm

Verify the BGP interface details.

bbasantia@edge2.lax> show interfaces terse |grep 115.187.189 

ge-2/1/2.0              up    up   inet     115.187.189.183/31

bbasantia@edge2.lax> show interfaces terse 

Interface               Admin Link Proto    Local                 Remote

lc-1/0/0                up    up

lc-1/0/0.32769          up    up   vpls    

pfe-1/0/0               up    up

pfe-1/0/0.16383         up    up   inet    

                                   inet6   

pfh-1/0/0               up    up

pfh-1/0/0.16383         up    up   inet    

pfh-1/0/0.16384         up    up   inet    

xe-1/0/0                up    down

lc-1/1/0                up    up

lc-1/1/0.32769          up    up   vpls    

pfe-1/1/0               up    up

pfe-1/1/0.16383         up    up   inet    

                                   inet6   

xe-1/1/0                up    up

xe-1/1/0.0              up    up   inet     74.120.95.157/31

Leave a comment