test ip bgp neighbor
Tests BGP policy for routes advertised to or received from peers without implementing the policy. There is no no version.
test ip bgp [ addressFamilyIdentifier ]
neighbor { ipAddress | peerGroupName } { advertised-routes | routes }
[ routeAddr [ routeMask [ route-rd distinguisher ] ] ]
[ distribute-list accessListName |
filter-list asPathAccessListName [ weight weightValue ] |
route-map mapTag | prefix-list prefixListName | prefix-tree prefixTreeName ]
[ fields { fieldOptions } ] [ filter ]
- addressFamilyIdentifier—Type of address family, which determines the routing table for which information is displayed, in the format
ipv4 { unicast | multicast } | vpnv4 { all | vrf vrfName }
- ipv4 unicast—Specifies the IPv4 unicast routing table; the default option
- ipv4 multicast—Specifies the IPv4 multicast routing table
- vpnv4 all—Specifies all IPv4 VPN routing and forwarding instances
- vpn4 vrf vrfname—Specifies the IPv4 VPN routing and forwarding instance with the name vrfname
- ipAddress—Neighbor's IP address
- peerGroupName—Name of BGP peer group. If you specify a BGP peer group by using the peer-group-name argument, all the members of the peer group inherit the characteristic configured with this command, unless it is overridden for a specific peer.
- advertised-routes—Tests only outgoing advertisements to the specified neighbor
- routes—Tests only the incoming advertisements from the specified neighbor
- routeAddr—Prefix advertised by BGP
- routeMask—Subnet mask associated with prefix; if not specified, a best match on routeAddr is performed
- distinguisher—Unique two-part identifier of the format number1:number2 where:
- number1—AS number or an IP address
- number2—Unique integer; 32 bits if number1 is an AS number; 16 bits if number1 is an IP address
If not specified, considers all destinations with the same routeAddress and routeMask.
- accessListName—Name of an access list used as a distribute list to filter routes by prefix; string of up to 32 alphanumeric characters
- asPathAccessListName—Name of a single AS path access list used to filter routes by AS path; string of up to 32 characters
- weightValue—Weight to set for the filtered incoming route; an integer in the range 0-4294967295
- mapTag—Name of a route map; a string of up to 32 alphanumeric characters
- prefixListName—Name of a BGP prefix list used to filter routes by prefix
- prefixTreeName—Name of a BGP prefix tree used to filter routes by prefix
- fieldOptions—Field(s) to be displayed. See the show ip bgp command.
- filter—See Filtering show Commands in About This Guide
Privileged Exec, User Exec