一、实验拓扑: 实验要求: 1、R3部署BGP AS号和router-id号; 2、R3部署BGP对等体组peer-group,并未对等体组设置更新源、以及Remote-as 号; 3、R3将邻居加入对等体组peer-group;
4、R2、R4在BGP进程下,分别和R3建立邻居、部署更新源地址、指定下一跳; 5、验证:R1#ping 5.5.5.5 是否可通。 二、命令部署: 1、R3 BGP基本配置: R3(config)#router bgp 24 R3(config-router)#bgp router-id 3.3.3.3
2、R3 部署对等体组peer-group R3(config-router)#neighbor pl peer-group R3(config-router)#neighbor pl remote-as 24 R3(config-router)#neighbor pl update-source loopback 1
3、R3将邻居加入对等体组peer-group R3(config-router)#neighbor 2.2.2.2 peer-group pl R3(config-router)#neighbor 4.4.4.4 peer-group pl
2、R2、R4部署邻居、更新源、下一跳 R2(config)#router bgp 24 R2(config-router)#neighbor 3.3.3.3 remote-as 24 R2(config-router)#neighbor 3.3.3.3 update-source loopback 1 R2(config-router)#neighbor 3.3.3.3 next-hop-self
R4(config)#router bgp 24 R4(config-router)#neighbor 3.3.3.3 remote-as 24 R4(config-router)#neighbor 3.3.3.3 update-source loopback 1 R4(config-router)#neighbor 3.3.3.3 next-hop-self
三、验证: R1#ping 5.5.5.5 //通