This command displays the inbound and outbound IPv4 and L2VPN policies configured for a specific peer. The output distinguishes policies that are configured on the peer itself and policies that the peer inherits from a peer template.
| Format | show ip bgp [vrf vrf-name] neighbors [{ip-address]} policy |
| Mode | Privileged EXEC |
| Parameter | Description |
|---|---|
| vrf-name | (Optional) Display the names of the communities within a VRF instance. |
| ip-address | (Optional) Specifies an IPv4 address of a neighbor to which to limit the output. |
The command output displays the following information.
| Parameter | Description |
|---|---|
| Neighbor | The peer address of a neighbor. |
| Addr-Family | The peer address family type. |
| Policy | A neighbor-specific BGP policy. |
| Template | If the policy is inherited from a peer template, this field lists the template name. |
Example: The following shows example CLI display output for the command.
(router) #show ip bgp neighbors 192.168.10.2 policy
Neighbor Addr-family Policy Template
--------------- ----------- ---------------------------------- ---------------
192.168.10.2 IPv4 advertisement-interval 5
default-originate if-default-present
filter-list 0 in
filter-list 0 out
next-hop-self disabled
prefix-list in
prefix-list out
maximum-prefix 8160
remove-private-as send-as-all
route-map in
route-map out
route-reflector-client disabled
send-community disabled
192.168.10.2 EVPN activate
maximum-prefix 102400
route-reflector-client disabled
send-community disabled
send-extended-community disabled