Article Number: 000208011
什么是主动和被动 BGP 对等节点
OS10
的行为将 Dell OS10 配置为被动对等
配置示例
注释 |
|
配置语法
配置 | 说明 |
---|---|
OS10# 配置 | 配置 |
OS10(config)# 路由器 bgp | 配置 BGP |
OS10(conf-router-bgp-AS)# 模板 | 配置对等模板以应用被动对等 |
OS10(conf-router-template)# 侦听 | 启用对等侦听和 IP 地址/子网(动态对等节点*) |
OS10(conf-router-template)# 侦听限制 | 可选:输入最大被动对等节点数(动态对等*),可通过对等侦听动态学习。 达到指定限制后,子网中的下一个邻居将被视为正常 BGP 对等节点。 |
OS10(conf-router-template)#exit | 退出模板 |
OS10(config-router-bgp-AS)# neighbor | 配置路由器邻居模式 |
OS10(config-router-neighbor)# 继承模板 | 在 ROUTER-NEIGHBOR 模式下分配对等模板和要从其继承到邻居的对等组名称。 |
DELLOS10# DELLOS10# configure terminal DELLOS10(config)# router bgp 100 DELLOS10(config-router-bgp-100)# template TEST-BGP-PASSIVE DELLOS10(config-router-template)# listen 10.0.0.2/32 DELLOS10(config-router-template)# exit DELLOS10(config-router-bgp-100)# neighbor 10.0.0.2 DELLOS10(config-router-neighbor)# inherit template TEST-BGP-PASSIVE
DELLOS10# DELLOS10# configure terminal DELLOS10(config)# router bgp 100 DELLOS10(config-router-bgp-100)# template TEST-BGP-PASSIVE DELLOS10(config-router-template)# listen 10.0.0.0/24 limit 5 DELLOS10(config-router-template)# exit DELLOS10(config-router-bgp-100)# neighbor 10.0.0.2 DELLOS10(config-router-neighbor)# inherit template TEST-BGP-PASSIVE
27 Feb 2023
2
How To