Article Number: 000208011
什麼是主動式和被動式 BGP 對等
OS10
的行為將 Dell OS10 設定為被動對等
範例組態
備註 |
|
組態語法
組態 | 說明 |
---|---|
OS10# 設定 | 設定 |
OS10(config)# 路由器 bgp | 設定 BGP |
OS10 (conf-router-bgp-AS)# 範本 | 設定對等範本以套用被動對等 |
OS10 (conf-router-template)# listen | 啟用對等聆聽和 IP 位址/子網 (動態對等*) |
OS10(conf-router-template)# listen limit | 選用:輸入最多被動對等 (動態對等*) 計數,可透過同儕聆聽動態學習。 達到指定的限制後,子網中的下一個相鄰會被視為正常的 BGP 對等值。 |
OS10 (conf-router-template)#exit | 結束範本 |
OS10 (config-router-bgp-AS)# 相鄰 | 設定路由器周邊模式 |
OS10 (config-router-in)# | 指派具有對等群組名稱的對等範本,以便在 ROUTER-對等模式下繼承到相鄰。 |
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