本文共 1632 字,大约阅读时间需要 5 分钟。
一、实验拓扑:
二、实验要求:1、使用私有AS号在一个主AS内建立两个子AS,R3与R2在子AS之间建立逻辑EBGP关系;2、该拓扑部署联邦需要把R1、R2、R3的BGP路由进程全部删除重新部署;3、验证:R2是否可以学到4.4.4.4的路由;R4路由器建立BGP邻居关系是如何建立的?三、命令部署:R1配置:R1(config)#no router bgp 123R1(config)#router bgp 65001R1(config-router)#bgp router-id 1.1.1.1R1(config-router)#bgp confederation identifier 123R1(config-router)#neighbor 3.3.3.3 remote-as 65001
R1(config-router)#neighbor 3.3.3.3 update-source loopback 0R1(config-router)#neighbor 3.3.3.3 next-hop-selfR1(config-router)#neighbor 14.1.1.4 remote-as 4
R2配置:
R2(config)#no router bgp 123R2(config)#router bgp 65002R2(config-router)#bgp router-id 2.2.2.2R2(config-router)#bgp confederation identifier 123
R2(config-router)#bgp confederation peers 65001R2(config-router)#neighbor 3.3.3.3 remote-as 65001
R2(config-router)#neighbor 3.3.3.3 update-source loopback 0R2(config-router)#neighbor 3.3.3.3 ebgp-multihopR3配置:
R3(config)#no router bgp 123R3(config)#router bgp 65001R3(config-router)#bgp router-id 3.3.3.3R3(config-router)#bgp confederation identifier 123
R3(config-router)#bgp confederation peers 65002R3(config-router)#neighbor 1.1.1.1 remote-as 65001
R3(config-router)#neighbor 1.1.1.1 update-source loopback 0R3(config-router)#neighbor 2.2.2.2 remote-as 65002
R3(config-router)#neighbor 2.2.2.2 update-source loopback 0R3(config-router)#neighbor 2.2.2.2 ebgp-multihop 255四、验证:
R2#show ip bgpNetwork Next Hop Metric LocPrf Weight Path*> 4.4.4.0/24 1.1.1.1 0 100 0 (65001) 4 IR4#show ip bgp summary
Neighbor V AS MsgRcvd MsgSent TblVer InQ OutQ Up/Down State/PfxRcd14.1.1.1 4 123 16 180 2 0 0 00:14:24转载于:https://blog.51cto.com/13856092/2137893