验证内部路由器上 BGP
用途
验证内部路由器的 BGP 配置。
操作
要验证内部路由器的 BGP 配置,请输入以下 Junos OS 命令行界面(CLI)命令:
user@host> show configuration
以下示例输出适用于 R3 上的 BGP 配置:
示例输出
user@R3> show configuration [...Output truncated...] interfaces { so-0/0/1 { unit 0 { family inet { address 10.1.23.2/30; } family iso; } } so-0/0/3 { unit 0 { family inet { address 10.1.36.1/30; } family iso; } } lo0 { unit 0 { family inet { address 10.0.0.3/32; } family iso { address 49.0002.1000.0000.0003.00; } } } } routing-options { [...Output truncated...] router-id 10.0.0.3; autonomous-system 65002; } protocols { bgp { group internal { type internal; local-address 10.0.0.3; neighbor 10.0.0.2; neighbor 10.0.0.4; neighbor 10.0.0.6; } } isis { level 1 disable; interface all { level 2 metric 10; } interface lo0.0; } } user@R6> show configuration | [Output truncated...] interfaces { so-0/0/1 { unit 0 { family inet { address 10.1.46.2/30; } family iso; } } so-0/0/3 { unit 0 { family inet { address 10.1.36.2/30; } family iso; } } lo0 { unit 0 { family inet { address 10.0.0.6/32; } family iso { address 49.0003.1000.0000.0006.00; } } } } routing-options { [Output truncated...] router-id 10.0.0.6; autonomous-system 65002; } protocols { bgp { group internal { type internal; local-address 10.0.0.6; neighbor 10.0.0.2; neighbor 10.0.0.3; neighbor 10.0.0.4; } } isis { level 1 disable; interface all { level 2 metric 10; } interface lo0.0; } }
含义
示例输出显示路由器R3和R6上的基本 BGP 配置。两个路由器上均配置了本地 AS (internal65002)和一个组()。R3有三个内部—10.0.0.2对10.0.0.4等方10.0.0.6—,并包括在protocols bgp group group[] 层次结构级别。R6还有三个内部对等方:10.0.0.2、 10.0.0.3和10.0.0.4。底层 IGP 协议是中间系统到中间系统(IS-IS),相关接口配置为运行 IS-IS。
请注意,在此配置中,路由器 ID 是手动配置的,以避免任何重复的路由器 ID 问题。