API Guide

验证对等组上的邻居故障切换
OS10# show running-configuration
!
router bgp 102
!
address-family ipv4 unicast
aggregate-address 6.1.0.0/16
!
neighbor 40.1.1.2
inherit template bgppg
no shutdown
!
neighbor 60.1.1.2
inherit template bgppg
no shutdown
!
neighbor 32.1.1.2
remote-as 100
no shutdown
!
template bgppg
fall-over
remote-as 102
!
Identifier GUID-3D87077D-1557-4047-A2A0-EEDF46B3D5DE
Version 3
Status Translation approved
配置密码
您可以启用消息摘要 5 (MD5) 身份验证并在两个 BGP 邻居之间的 TCP 连接上输入密码。
在两个 BGP 对等体上配置相同的密码。在两个 BGP 对等体之间配置 MD5 身份验证时将会验证 TCP 连接的每个分段并在 TCP
连接上发送的每个分段中检查 MD5 摘要。为邻居配置密码可以建立新连接。
: 您可以使用 MD5 身份验证来保护 VTEP 邻居通信。
配置密码
ROUTER-NEIGHBOR CONFIGURATION ROUTER-TEMPLATE CONFIGURATION 模式下配置 BGP 对等体中的密码。在
ROUTER-NEIGHBOR 模式下提供的密码优先于在 ROUTER-TEMPLATE 模式下的密码。以纯文本形式或采用加密格式输入密码。
password {9 encrypted password–string|password-string}
查看密码配置
show configuration
ROUTER-NEIGHBOR 模式下的对等体 1
OS10# configure terminal
OS10(config)# interface ethernet 1/1/5
OS10(conf-if-eth1/1/5)# no switchport
OS10(conf-if-eth1/1/5)# ip address 11.1.1.1/24
OS10(conf-if-eth1/1/5)# router bgp 10
OS10(config-router-bgp-10)# neighbor 11.1.1.2
OS10(config-router-neighbor)# no shutdown
OS10(config-router-neighbor)# remote-as 10
OS10(config-router-neighbor)# password abcdell
ROUTER-TEMPLATE 模式下的对等体 1
OS10# configure terminal
OS10(config)# interface ethernet 1/1/5
OS10(conf-if-eth1/1/5)# no switchport
OS10(conf-if-eth1/1/5)# ip address 11.1.1.1/24
OS10(conf-if-eth1/1/5)# router bgp 10
OS10(config-router-bgp-10)# template pass
OS10(config-router-template)# password 9
550 3