标签:ccnp-bgp
配置路由器R1: R1(config)#router eigrp 1 R1(config-router)#network 1.1.1.0 R1(config-router)#network 12.12.12.0 R1(config-router)#no auto-summary R1(config)#router bgp 100 //启动BGP进程 R1(config-router)#no synchronization //关闭同步 R1(config-router)#bgp router-id 1.1.1.1 //配置BGP路由器ID R1(config-router)#neighbor 2.2.2.2 remote-as 100 //指定邻居路由器及所在的AS R1(config-router)#neighbor 2.2.2.2 update-source Loopback0 //指定更新源 R1(config-router)#neighbor 3.3.3.3 remote-as 100 R1(config-router)#neighbor 3.3.3.3 update-source Loopback0 R1(config-router)#network 1.1.1.0 mask 255.255.255.0 //通告网络 R1(config-router)#no auto-summary //关闭自动汇总 配置路由器R2: R2(config)#router eigrp 1 R2(config-router)#network 2.2.2.0 255.255.255.0 R2(config-router)#network 12.12.12.0 255.255.255.0 R2(config-router)#network 23.23.23.0 255.255.255.0 R2(config-router)#no auto-summary R2(config)#router bgp 100 R2(config-router)#no synchronization R2(config-router)#bgp router-id 2.2.2.2 R2(config-router)#neighbor 1.1.1.1 remote-as 100 R2(config-router)#neighbor 1.1.1.1 update-source Loopback0 R2(config-router)#neighbor 3.3.3.3 remote-as 100 R2(config-router)#neighbor 3.3.3.3 update-source Loopback0 R2(config-router)#no auto-summary 配置路由器R3: R3(config)#router eigrp 1 R3(config-router)#network 3.3.3.0 255.255.255.0 R3(config-router)#network 23.23.23.0 255.255.255.0 R3(config-router)#no auto-summary R3(config)#router bgp 100 R3(config-router)#no synchronization R3(config-router)#bgp router-id 3.3.3.3 R3(config-router)#neighbor 1.1.1.1 remote-as 100 R3(config-router)#neighbor 1.1.1.1 update-source Loopback0 R3(config-router)#neighbor 1.1.1.1 next-hop-self R3(config-router)#neighbor 2.2.2.2 remote-as 100 R3(config-router)#neighbor 2.2.2.2 update-source Loopback0 R3(config-router)#neighbor 2.2.2.2 next-hop-self R3(config-router)#neighbor 34.34.34.4 remote-as 200 R3(config-router)#no auto-summary 配置路由器R4: R4(config)#router bgp 200 R4(config-router)#no synchronization R4(config-router)#bgp router-id 4.4.4.4 R4(config-router)#neighbor 34.34.34.3 remote-as 100 R4(config-router)#no auto-summary R4(config-router)#network 4.4.0.0 mask 255.255.255.0 R4(config-router)#network 4.4.1.0 mask 255.255.255.0 R4(config-router)#network 4.4.2.0 mask 255.255.255.0 R4(config-router)#network 4.4.3.0 mask 255.255.255.0 R4(config-router)#network 4.4.0.0 mask 255.255.252.0 //用network做路由汇总通告 R4(config)#ip route 4.4.0.0 255.255.252.0 null0 //在IGP表中构造该汇总路由,否则不能用network通告
本文出自 “刘小兔” 博客,谢绝转载!
标签:ccnp-bgp
原文地址:http://lyanhong.blog.51cto.com/12788695/1922700