API Guide

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
查看 BGP 运行的配置
OS10# show running-configuration bgp
!
router bgp 100
!
neighbor 5.1.1.1
description n1_abcd
Identifier
GUID-D156A78B-312C-4845-B653-D706689BE39B
Version 2
Status Translation approved
在非默认 VRF 实例中配置 BGP
在非默认 VRF 实例中配置 BGP
1. 分配 AS 编号然后从 CONFIGURATION 模式中进入 ROUTER-BGP 模式 1 65535 适用于 2 字节 1 4294967295
用于 4 字节。每个系统仅支持一个 AS 编号。如果输入一个 4 字节 AS 数字 4 字节 AS 支持自动启用。
router bgp as-number
2. 在非默认 VRF 实例中进入 ROUTER-BGP-VRF 模式。
vrf vrf-name
3. CONFIG-ROUTER-VRF 模式下进入邻居。
neighbor ip-address
4. ROUTER-NEIGHBOR 模式下添加远程 AS 1 65535 适用于 2 字节或从 1 4294967295 适用于 4 字节。
remote-as as-number
5. ROUTER-NEIGHBOR 模式下启用 BGP 邻居。
no shutdown
6. 可选 ROUTER-NEIGHBOR 模式下为模板添加文本说明。
description text
要在更改 BGP 邻居的配置时重置配置请使用 clear ip bgp * 命令。要查看 BGP 状态请使用 show ip bgp summary
令。
配置 BGP
OS10# configure terminal
OS10(config)# router bgp 100
3 543