API Guide

示例
OS10# debug ip bgp
支持的版本
OS10 原有命令。
Identifier GUID-6300E71C-7CC1-429E-B0E0-23ACDBA17178
Version 3
Status Translation approved
description
BGP 邻居或对等模板配置说明。
语法
description text
参数
text 输入 BGP 邻居或对等模板的说明。
默认
命令模式
ROUTER-BGP-NEIGHBOR
ROUTER-BGP-TEMPLATE
使用情况信息
此命令的 no 版本将移除该说明。
示例
OS10# configure terminal
OS10(config)# router bgp 100
OS10(config-router-bgp-100)# neighbor 8.8.8.8
OS10(config-router-neighbor)# description n1_abcd
OS10(config-router-neighbor)# exit
OS10(config-router-bgp-100)# template t1
OS10(config-router-template)# description peer_template_1_abcd
支持的版本
10.4.1.0 or later
Identifier GUID-A963B8A1-AA35-446D-A6E6-6612279E1AF9
Version 5
Status Translation approved
default-metric
将重新分配的路由的默认指标分配到本地发起的路由。
语法
default-metric number
参数
number 输入要分配给来自其他协议的路由的数字 1 4294967295
默认 已禁用
命令模式
ROUTER-BGP
使用情况信息
为本地发起的路由如重新分发的路由分配指标。重新分发 BGP 中的路由后使用此命令重置指标值
新指标不会立即生效。仅当您禁用并重新启用指定协议的路由重新分发后新指标才会生效。要重新启用路
由分配请使用 redistribute {connected [route-map map-name] | ospf process-id |
static [route-map map-name]} 命令或者在重置 BGP 之后使用 clear ip bgp * 命令。此命令的
no 版本将移除默认度量值。
示例 (IPv4)
OS10(conf-router-bgpv4-af)# default-metric 60
示例 (IPv6)
OS10(conf-router-bgpv6-af)# default-metric 60
支持的版本
10.3.0E or later
576 3