show bgp sessions

To display Border Gateway Protocol (BGP) sessions, use the show bgp sessions command.

show bgp sessions [ vrf vrf-name ]

Syntax Description

vrf vrf-name
(Optional) Specifies the virtual router context (VRF) name. The name can be any case-sensitive, alphanumeric string up to 32 characters.

Command Default

None

Command Modes

Any command mode

Command History

Release
Modification
5.0(3)N1(1)
This command was introduced.

Usage Guidelines

This command requires the LAN Enterprise Services license.

Examples

This example shows how to display the BGP sessions:

switch# show bgp sessions
Total peers 2, established peers 0
ASN 102
VRF default, local ASN 102
peers 2, established peers 0, local router-id 2.2.2.3
State: I-Idle, A-Active, O-Open, E-Established, C-Closing, S-Shutdown
 
Neighbor ASN Flaps LastUpDn|LastRead|LastWrit St Port(L/R) Notif(S/R)
10.0.0.100 64497 0 01:31:58|never |never I 0/0 0/0
192.168.1.3 0 0 00:03:25|never |never I 0/0 0/0
switch#
 

Related Commands

Command
Description
clear bgp
Clears BGP sessions.