Connectivity Guide

Table Of Contents
View BGP neighbors
OS10# show ip bgp neighbors
BGP neighbor is 5.1.1.1, remote AS 1, internal link
BGP version 4, remote router ID 6.1.1.1
BGP state established, in this state for 00:03:11
Last read 01:08:40 seconds, hold time is 180, keepalive interval is 60 seconds
Received 11 messages
3 opens, 1 notifications, 3 updates
4 keepalives, 0 route refresh requests
Sent 14 messages
3 opens, 1 notifications, 0 updates
10 keepalives, 0 route refresh requests
Minimum time between advertisement runs is 0 seconds
Description: n1_abcd
Capabilities received from neighbor for IPv4 Unicast:
MULTIPROTO_EXT(1)ROUTE_REFRESH(2)CISCO_ROUTE_REFRESH(128)
Capabilities advertised to neighbor for IPv4 Unicast:
MULTIPROTO_EXT(1)ROUTE_REFRESH(2)CISCO_ROUTE_REFRESH(128)
Prefixes accepted 3, Prefixes advertised 0
Connections established 3; dropped 2
Closed by neighbor sent 00:03:26 ago
Local host: 5.1.1.2, Local port: 43115
Foreign host: 5.1.1.1, Foreign port: 179
View BGP running conguration
OS10# show running-configuration bgp
!
router bgp 100
!
neighbor 5.1.1.1
description n1_abcd
Conguring BGP in a non-default VRF instance
To congure BGP in a non-default VRF instance.
1 Assign an AS number, and enter ROUTER-BGP mode from CONFIGURATION mode (1 to 65535 for 2-byte, 1 to 4294967295 for 4-
byte). Only one AS number is supported per system. If you enter a 4-byte AS number, 4-byte AS support is enabled automatically.
router bgp as-number
2 Enter ROUTER-BGP-VRF mode to congure BGP in a non-default VRF instance.
vrf vrf-name
3 Enter a neighbor in CONFIG-ROUTER-VRF mode.
neighbor ip-address
4 Add a remote AS in ROUTER-NEIGHBOR mode, from 1 to 65535 for 2-byte or 1 to 4294967295 for 4-byte.
remote-as as-number
5 Enable the BGP neighbor in ROUTER-NEIGHBOR mode.
no shutdown
6 (Optional) Add a description text for the neighbor in ROUTER-NEIGHBOR mode.
description text
To reset the conguration when you change the conguration of a BGP neighbor, use the clear ip bgp * command. To view the BGP
status, use the
show ip bgp summary command.
332
Layer 3