You can monitor the following aspects of routing policy using show commands:
You can use the output filtering feature of the show command to include or exclude lines of output based on a text string that you specify. For details, see Command Line Interface in JUNOSe System Basics Configuration Guide.
show access-list
show ipv6 access-list
host1#show access-list
IP Access List 1:
permit ip host 172.31.192.217 any
permit ip 12.40.0.0 0.0.0.3 any
deny ip any any
IP Access List 2:
permit ip 172.19.0.0 0.0.255.255 any
deny ip 0.0.0.0 255.255.255.255 any
IP Access List 10:
permit ip any any
IP Access List 11:
deny ip any any
host1#show access-list detail
IP Access List 1:
1: permit ip host 172.31.192.217 any
2: permit ip 12.40.0.0 0.0.0.3 any
deny ip any any
show ip as-path-access-list
host1#show ip as-path-access-list
AS Path Access List 1:
permit .*
AS Path Access List 2:
deny .*
AS Path Access List 3:
permit _109_
deny .*
AS Path Access List 4:
permit _109$
deny .*
AS Path Access List 10:
deny _109$
permit ^108_
deny .*
show ip community-list
host1#show ip community-list
Community List 1:
permit 81200109
permit 81200110
permit 81200108
Community List 2:
deny 81200109
permit 81200110
permit 81200108
Community List 4:
permit local-as
Community List 5:
permit no-advertise
Community List 6:
permit no-export
Community List 7:
permit internet
host1#show ip community-list
Community List 1:
permit 1239:1005
permit 1239:1006
permit 1239:1004
Community List 2:
deny 1239:1005
permit 1239:1006
permit 1239:1004
Community List 4:
permit local-as
Community List 5:
permit no-advertise
Community List 6:
permit no-export
Community List 7:
permit internet
show ip match-policy-list
host1#show ip match-policy-list
match-policy-list list1, permit
Match clauses:
match access-list addrList1
match distance 100
show ip prefix-list
host1#show ip prefix-list Prefix-list with the last deletion/insertion: def ip prefix-list name abc: 4 entries seq 5 permit 192.168.0.0/16 le 24 seq 10 permit 192.178.0.0/16 le 24 seq 15 deny 195.178.0.0/16 le 24 seq 20 deny 195.178.0.0/16 le 32 ip prefix-list name def: 1 entries seq 5 deny 192.170.0.0/16
host1#show ip prefix-list summary Total memory used for prefix-list: 310 bytes Prefix-list with the last deletion/insertion: def ip prefix-list name abc: count: 4, range entries: 4, sequences: 5-20 ip prefix-list name def: count: 1, range entries: 0, sequences: 5-5
show ip prefix-tree
host1#show ip prefix-tree Prefix-tree with the last deletion/insertion: t_abc5 ip prefix-tree name t_abc1: 1 entries permit 108.243.0.0/16 ip prefix-tree name t_abc2: 3 entries permit 101.10.254.0/24 permit 102.10.248.0/21 permit 103.10.192.0/18 permit 108.109.0.0/16 permit 108.109.241.0/24 ip prefix-tree name t_abc3: 1 entries deny 108.0.0.0/8
host1#show ip prefix-tree summary Total memory used for prefix-tree: 860 bytes Prefix-tree with the last deletion/insertion: t_abc5 ip prefix-tree name t_abc1: count: 1 ip prefix-tree name t_abc2: count: 5 ip prefix-tree name t_abc3: count: 1
show ip protocols
host1#show ip protocols Routing Protocol is “ bgp 1”
Default local preference is 100
IGP synchronization is enabled
Always compare MED is disabled
Router flap damping is disabled
Administrative Distance: external 20 internal 200 local 200
Neighbor(s):
No neighbors are configured
Routing for Networks:
Routing Protocol is “ ospf 255” with Router ID 100.100.100.1 Distance is 110
Address Summarization:
None
Routing for Networks:
Routing Protocol is “ rip” Router Administrative State: enable System version RIP1: send = 1, receive = 1 or 2 Update interval: 30 seconds Invalid after: 180 seconds hold down time: 120 seconds flushed interval: 300 seconds Filter applied to outgoing route update is not set Filter applied to incoming route update is not set No global route map Distance is 120 Interface Tx Rx Auth
Routing for Networks:
10.2.1.0/255.255.255.0
show ip redistribute
host1#show ip redistribute To ospf, From static is enabled with route map 4 To ospf, From connected is enabled with route map 3
show ip route
host1#show ip route Protocol/Route type codes: I1- ISIS level 1, I2- ISIS level2, I- route type intra, IA- route type inter, E- route type external, i- metric type internal, e- metric type external, O- OSPF, E1- external type 1, E2- external type2, N1- NSSA external type1, N2- NSSA external type2
Prefix/Length Type Next Hop Dist/Met Intf ------------- ---- -------- -------- ------ 172.16.2.0/24 Bgp 192.168.1.102 20/1 fastEthernet0/0 10.10.0.112/32 Static 192.168.1.1 1/1 fastEthernet0/0 10.1.1.0/24 Connect 10.1.1.1 0/1 atm3/0.100
host1#show ip route static Protocol/Route type codes: I1- ISIS level 1, I2- ISIS level2, I- route type intra, IA- route type inter, E- route type external, i- metric type internal, e- metric type external, O- OSPF, E1- external type 1, E2- external type2, N1- NSSA external type1, N2- NSSA external type2
Prefix/Length Type Next Hop Dist/Met Intf ------------- ---- -------- -------- ------ 10.10.0.112/32 Static 192.168.1.1 1/1 fastEthernet0/0
host1#show ip route summary Unicast routes: 8 total routes, 576 bytes in route entries 0 isis routes 0 rip routes 3 static routes 2 connected routes 1 bgp routes 0 ospf routes 2 other internal routes 0 access routes 0 internally created access host routes
Last route added/deleted: 2::4/128 by BGP At MON FEB 04 2008 14:18:25 UTC
Unicast routes used only for Multicast RPF check: 0 total routes, 0 bytes in route entries 0 isis routes 0 rip routes 0 static routes 0 connected routes 0 bgp routes 0 ospf routes 0 other internal routes 0 access routes 0 internally created access host routes 0 mbgp routes 0 dvmrp routes
Last route added/deleted: null by Invalid At MON FEB 04 2008 14:18:04 UTC
MPLS tunnel routes (not used for forwarding): 3 total routes, 216 bytes in route entries 1 bgp tunnel routes 1 ldp tunnel routes 1 rsvp tunnel routes
Last route added/deleted: 2::4/128 by BGP Tunnel At MON FEB 04 2008 14:18:26 UTC
show ip route slot
host1#show ip route slot 6 10.10.0.231 IP address Interface Next Hop ------------ ---------------- ------------ 10.10.0.231 fastEthernet 6/0 10.10.0.231
host1#show ip route slot 9 90.248.1.2 IP address Interface Next Hop ------------ ---------------- ------------ 90.248.1.2 serial9/23:2 ---
host1#show ip route slot 9 90.249.255.255 IP address Interface Next Hop ------------ ---------------- ------------ 90.249.255.255 Local Interface ---
show ip static
host1#show ip static Prefix/Length Next Hop: Met: Dist: Tag: Intf: 10.2.0.0/24 192.168.1.1 1 1 0 ethernet6/0 10.2.1.0/24 192.168.1.1 1 1 1 ethernet6/0 172.31.1.48/32 172.18.2.2 1 1 0 atm5/1.1
show ip traffic
host1#show ip traffic
IP statistics: Router Id: 172.31.192.217
Rcvd: 97833 total, 171059 local destination
0 hdr errors, 0 addr errors
167 unkn proto, 0 discards
Frags: 4 reassembled, 30 reasm timed out, 8 reasm req
0 reasm fails, 145 frag ok, 0 frag fail
290 frag creates
Sent: 15 forwarded, 25144 generated, 0 out disc
0 no routes,0 routing discards
Route: 57680 routes in table
0 timestamp req, 0 timestamp rpy
0 addr mask req, 0 addr mask rpy
ICMP statistics:
Rcvd: 561 total, 0 errors, 15 dst unreach
0 time exceed, 0 param probs, 0 src quench
0 redirects, 0 echo req, 0 echo rpy
0 timestamp req, 0 timestamp rpy
0 addr mask req, 0 addr mask rpy
Sent: 0 total, 0 errors, 0 dest unreach
0 time excd, 0 param prob, 0 src quench
0 redirects, 0 echo req, 0 echo rpy
UDP Statistics:
Rcvd: 93326 total, 0 checksum errors, 90610 no port
Sent: 0 total, 0 errors
TCP Global Statistics:
Connections: 7358 attempted, 4 accepted, 7362 established
0 dropped, 14718 closed
Rcvd: 75889 total pkts, 53591 in-sequence pkts, 3120283 bytes
0 chksum err pkts, 0 authentication err pkts, 0 bad offset
0 short pkts, 0 duplicate pkts, 0 out of order pkts
Sent: 82318 total pkts, 44381 data pkts, 656321 bytes
34 retransmitted pkts, 487 retransmitted bytes
OSPF Statistics:
IGMP Statistics:
ARP Statistics:
show route-map
host1(config)#route-map 1 permit 10
host1(config-route-map)#match community 44
host1(config-route-map)#set local-pref 400
host1(config-route-map)#exit
host1(config)#exit
host1#show route-map 1
route-map 1, permit, sequence 10
Match clauses:
match community 44
Set clauses:
set local-pref 400