EOS-R1#show ip bgp neighbors
BGP neighbor is 100.101.1.2, remote AS 100, external link
Prefix Statistics:
Sent Rcvd Best Paths Best ECMP Paths
IPv4 Unicast: 688000 818876 808929 0
IPv6 Unicast: 0 0 0 0
If we like to know the total number of rcvd prefix from all bgp peers, here is the alias command could be useful
alias totbgp show ip bgp neighbors | grep "IPv4 Unicast: \s\s" | awk '{s+=$4}END{print s}'
EOS-R1#totbgp
6001256
No comments:
Post a Comment