To view BGP4 configuration information and statistics for VPNv4/VPNv6 neighbors, enter the following command.
device# show ip bgp vpnv4 neighbors
Total number of BGP Neighbors: 2
1 IP Address: 10.2.2.2, AS: 1 (IBGP), RouterID: 10.2.2.2, VRF: default
State: ESTABLISHED, Time: 14h47m39s, KeepAliveTime: 60, HoldTime: 180
KeepAliveTimer Expire in 21 seconds, HoldTimer Expire in 141 seconds
UpdateSource: Loopback 1
RefreshCapability: Received
Messages: Open Update KeepAlive Notification Refresh-Req
Sent : 1 40 887 0 0
Received: 1 35 887 0 0
Last Update Time: NLRI Withdraw NLRI Withdraw
Tx: --- --- Rx: --- ---
Last Connection Reset Reason:Unknown
Notification Sent: Unspecified
Notification Received: Unspecified
Neighbor NLRI Negotiation:
Peer Negotiated IPV4 unicast capability
Peer Negotiated VPNv4 unicast capability
Peer configured for IPV4 unicast Routes
Peer configured for VPNv4 unicast Routes
TCP Connection state: ESTABLISHED
TTL check: 0, value: 0, rcvd: 64
Byte Sent: 29202, Received: 28108
Local host: 3.3.3.3, Local Port: 179
Remote host: 2.2.2.2, Remote Port: 8079
ISentSeq: 7683960 SendNext: 7713163 TotUnAck: 0
TotSent: 29203 ReTrans: 0 UnAckSeq: 7713163
IRcvSeq: 256457831 RcvNext: 256485940 SendWnd: 65000
TotalRcv: 28109 DupliRcv: 0 RcvWnd: 65000
SendQue: 0 RcvQue: 0 CngstWnd: 1479
This example shows how to display information for VPNv4 neighbors. None of the other display options are used; thus, all of the information is displayed for all neighbors. The number in the far left column indicates the neighbor for which information is displayed. When the user lists information for multiple neighbors, this number makes the display easier to read.
The TCP statistics at the end of the display show status for the TCP session with the neighbor. Most of the fields show information stored in the Transmission Control Block (TCB) for the TCP session between the device and a neighbor. These fields are described in detail in section 3.2 of RFC 793, "Transmission Control Protocol Functional Specification" .
Syntax: show ip bgp vpnv4 neighbors [ ip-addr [ advertised-routes [ detail [ ip-addr [ / mask-bits ] ] ] ] | [ detail ] | | [ last-packet-with-error ] | [ received extended-community ] | [ received prefix-filter ] | [ routes [ best ] | [ detail [ best ] | [ not-installed-best ] | [ unreachable ] ] | [ rib-out-routes [ ip-addr/mask-bits | ip-addr /net-mask | detail ] ] | [ routes-summary ] ]
The vrf-name parameter specifies the VRF whose neighbor the user wants to display information about.
The ip-addr option lets the user narrow the scope of the command to a specific neighbor. The display is the same as that for the command without this option except that it is limited to only the neighbor specified.
The advertised-routes option displays only the routes that the device has advertised to the neighbor during the current BGP4 neighbor session.
The last-packet-with-error option displays the last packet from the neighbor that contained an error. The packet's contents are displayed in decoded (human-readable) format.
Thereceived extended-community option displays the received extended community Outbound Route Filters (ORFs) received from this neighbor.
The received prefix-filter option shows the Outbound Route Filters (ORFs) received from the neighbor. This option applies to cooperative route filtering.
The routes option lists the routes received in UPDATE messages from the neighbor. The user can specify the following additional options:
The rib-out-routes option lists the route information base (RIB) for outbound routes. The user can display all the routes or specify a network address.
The routes-summary option displays a summary of the following information:
This display shows the following information.
This field... |
Displays... |
---|---|
IP Address |
The IP address of the neighbor. |
AS |
The AS the neighbor is in. |
EBGP or IBGP |
Whether the neighbor session is an IBGP session, an EBGP session, or a confederation EBGP session:
|
RouterID |
The neighbor‘s ID. |
Description |
The description the user gave the neighbor when the user configured it on the device. |
State |
The state of the session with the neighbor. The states are from the perspective of this device of the session, not the perspective of the neighbor. The state values are based on the BGP4 state machine values described in RFC 1771 and can be one of the following for each device:
Note: When the state frequently changes between CONNECT and ACTIVE, there may be a problem with the TCP connection.
Note: When the user displays information for the neighbor using the
show ip bgp neighbor
ip-addr
command, the TCP receiver queue value is greater than 0.
|
Time |
The amount of time this session has been in its current state. |
KeepAliveTime |
The KeepAliveTime, which specifies how often this device sends keep alive messages to the neighbor. |
HoldTime |
The hold time, which specifies how many seconds the device waits for a KEEPALIVE or UPDATE message from a BGP4 neighbor before deciding that the neighbor is dead. |
PeerGroup |
The name of the peer group the neighbor is in, when applicable. |
Multihop-EBGP |
Whether this option is enabled for the neighbor. |
RouteReflectorClient |
Whether this option is enabled for the neighbor. |
SendCommunity |
Whether this option is enabled for the neighbor. |
NextHopSelf |
Whether this option is enabled for the neighbor. |
DefaultOriginate |
Whether this option is enabled for the neighbor. |
MaximumPrefixLimit |
Lists the maximum number of prefixes the device accepts from this neighbor. |
RemovePrivateAs |
Whether this option is enabled for the neighbor. |
RefreshCapability |
Whether this device has received confirmation from the neighbor that the neighbor supports the dynamic refresh capability. |
CooperativeFilteringCapability |
Whether the neighbor is enabled for cooperative route filtering. |
Distribute-list |
Lists the distribute list parameters, when configured. |
Filter-list |
Lists the filter list parameters, when configured. |
Prefix-list |
Lists the prefix list parameters, when configured. |
Route-map |
Lists the route map parameters, when configured. |
Messages Sent |
The number of messages this device has sent to the neighbor. The display shows statistics for the following message types:
|
Messages Received |
The number of messages this device has received from the neighbor. The message types are the same as for the Message Sent field. |
Last Update Time |
Lists the last time updates were sent and received for the following:
|
Last Connection Reset Reason |
The reason the previous session with this neighbor ended. The reason can be one of the following:
|
Last Connection Reset Reason (cont.) |
|
Notification Sent |
When the device receives a NOTIFICATION message from the neighbor, the message contains an error code corresponding to one of the following errors. Some errors have subcodes that clarify the reason for the error. Where applicable, the subcode messages are listed underneath the error code messages.
|
Notification Received |
See above. |
TCP Connection state |
The state of the connection with the neighbor. The connection can have one of the following states:
|
Byte Sent |
The number of bytes sent. |
Byte Received |
The number of bytes received. |
Local host |
The IP address of the device. |
Local port |
The TCP port the device is using for the BGP4 TCP session with the neighbor. |
Remote host |
The IP address of the neighbor. |
Remote port |
The TCP port the neighbor is using for the BGP4 TCP session with the device. |
SentSeq |
The initial send sequence number for the session. |
SendNext |
The next sequence number to be sent. |
TotUnAck |
The number of sequence numbers sent by the device that have not been acknowledged by the neighbor. |
TotSent |
The number of sequence numbers sent to the neighbor. |
ReTrans |
The number of sequence numbers that the device retransmitted because they were not acknowledged. |
UnAckSeq |
The current acknowledged sequence number. |
IRcvSeq |
The initial receive sequence number for the session. |
RcvNext |
The next sequence number expected from the neighbor. |
SendWnd |
The size of the send window. |
TotalRcv |
The number of sequence numbers received from the neighbor. |
DupliRcv |
The number of duplicate sequence numbers received from the neighbor. |
RcvWnd |
The size of the receive window. |
SendQue |
The number of sequence numbers in the send queue. |
RcvQue |
The number of sequence numbers in the receive queue. |
CngstWnd |
The number of times the window has changed. |
To display the routes the device has advertised to a specific VPNv4 neighbor, enter a command such as the following at any level of the CLI.
device# show ip bgp vpnv4 neighbors 10.2.2.2 advertised-routes
There are 231 routes advertised to neighbor 10.2.2.2
Status A:AGGREGATE B:BEST b:NOT-INSTALLED-BEST E:EBGP I:IBGP L:LOCAL
Prefix Next Hop Metric LocPrf Weight Status
1 10.100.100.30/32 0.0.0.0 100 0 BE
AS_PATH: 310
2 10.100.100.29/32 0.0.0.0 100 0 BE
AS_PATH: 310
3 10.100.100.28/32 0.0.0.0 100 0 BE
AS_PATH: 310
4 10.100.100.27/32 0.0.0.0 100 0 BE
AS_PATH: 310
5 10.100.100.26/32 0.0.0.0 100 0 BE
AS_PATH: 310
6 10.100.100.25/32 0.0.0.0 100 0 BE
AS_PATH: 310
7 10.100.100.24/32 0.0.0.0 100 0 BE
AS_PATH: 310
8 10.100.100.23/32 0.0.0.0 100 0 BE
AS_PATH: 310
Syntax: show ip bgp vpnv4 neighbor ip-addr advertised-routes [ ip-addr/prefix ]