BGP路由的手动汇总
网络拓扑

XRV1
==========================================================
!
hostname XRV1
!
interface Loopback0
ip address 220.198.32.1 255.255.255.255
ip router isis 100
!
interface GigabitEthernet1
ip address 123.103.15.1 255.255.255.252
negotiation auto
bfd interval 250 min_rx 250 multiplier 3
!
interface GigabitEthernet2
ip address 123.103.15.5 255.255.255.252
negotiation auto
bfd interval 250 min_rx 250 multiplier 3
!
interface GigabitEthernet3
ip address 10.10.1.2 255.255.255.252
ip router isis 100
negotiation auto
isis circuit-type level-2-only
!
router isis 100
net 49.0000.2201.9832.1000.00
is-type level-2-only
!
router bgp 4809
bgp router-id 220.198.32.1
bgp log-neighbor-changes
bgp graceful-restart restart-time 120
bgp graceful-restart stalepath-time 360
bgp graceful-restart
aggregate-address 43.180.0.0 255.255.0.0 as-set
aggregate-address 36.159.0.0 255.255.0.0 as-set
aggregate-address 27.160.0.0 255.255.0.0 as-set
aggregate-address 14.102.0.0 255.255.0.0 as-set
neighbor 123.103.15.2 remote-as 9308
neighbor 123.103.15.2 password cisco
neighbor 123.103.15.2 fall-over bfd
neighbor 123.103.15.6 remote-as 9808
neighbor 123.103.15.6 password cisco
neighbor 123.103.15.6 fall-over bfd
neighbor 220.198.32.5 remote-as 4809
neighbor 220.198.32.5 password cisco
neighbor 220.198.32.5 update-source Loopback0
neighbor 220.198.32.5 next-hop-self
!
XRV2
==========================================================
!
hostname XRV2
!
interface Loopback0
ip address 220.198.32.2 255.255.255.255
!
interface GigabitEthernet1
ip address 123.103.15.2 255.255.255.252
negotiation auto
bfd interval 250 min_rx 250 multiplier 3
!
interface GigabitEthernet2
ip address 123.103.15.13 255.255.255.252
negotiation auto
bfd interval 250 min_rx 250 multiplier 3
!
interface GigabitEthernet3
ip address 123.103.15.9 255.255.255.252
negotiation auto
bfd interval 250 min_rx 250 multiplier 3
!
router bgp 9308
bgp router-id 220.198.32.2
bgp log-neighbor-changes
bgp graceful-restart restart-time 120
bgp graceful-restart stalepath-time 360
bgp graceful-restart
aggregate-address 43.180.0.0 255.255.0.0 summary-only
aggregate-address 36.159.0.0 255.255.0.0 summary-only
aggregate-address 27.160.0.0 255.255.0.0 summary-only
aggregate-address 14.102.0.0 255.255.0.0 summary-only
neighbor 123.103.15.1 remote-as 4809
neighbor 123.103.15.1 password cisco
neighbor 123.103.15.1 fall-over bfd
neighbor 123.103.15.10 remote-as 9808
neighbor 123.103.15.10 password cisco
neighbor 123.103.15.10 fall-over bfd
neighbor 123.103.15.14 remote-as 4807
neighbor 123.103.15.14 password cisco
neighbor 123.103.15.14 fall-over bfd
!
XRV3
==========================================================
!
hostname XRV3
interface Loopback0
ip address 220.198.32.3 255.255.255.255
!
interface GigabitEthernet2
ip address 123.103.15.14 255.255.255.252
negotiation auto
bfd interval 250 min_rx 250 multiplier 3
!
interface GigabitEthernet4
ip address 123.103.15.17 255.255.255.252
negotiation auto
bfd interval 250 min_rx 250 multiplier 3
!
router bgp 4807
bgp router-id 220.198.32.3
bgp log-neighbor-changes
bgp graceful-restart restart-time 120
bgp graceful-restart stalepath-time 360
bgp graceful-restart
neighbor 123.103.15.13 remote-as 9308
neighbor 123.103.15.13 password cisco
neighbor 123.103.15.13 fall-over bfd
neighbor 123.103.15.18 remote-as 9808
neighbor 123.103.15.18 password cisco
neighbor 123.103.15.18 fall-over bfd
!
XRV4
==========================================================
!
hostname XRV4
!
interface Loopback0
ip address 220.198.32.4 255.255.255.255
!
interface GigabitEthernet2
ip address 123.103.15.6 255.255.255.252
negotiation auto
bfd interval 250 min_rx 250 multiplier 3
!
interface GigabitEthernet3
ip address 123.103.15.10 255.255.255.252
negotiation auto
bfd interval 250 min_rx 250 multiplier 3
!
interface GigabitEthernet4
ip address 123.103.15.18 255.255.255.252
negotiation auto
bfd interval 250 min_rx 250 multiplier 3
!
router bgp 9808
bgp router-id 220.198.32.4
bgp log-neighbor-changes
bgp graceful-restart restart-time 120
bgp graceful-restart stalepath-time 360
bgp graceful-restart
aggregate-address 43.180.0.0 255.255.0.0 suppress-map external-export
aggregate-address 27.160.0.0 255.255.0.0 suppress-map external-export
aggregate-address 14.102.0.0 255.255.0.0 suppress-map external-export
neighbor 123.103.15.5 remote-as 4809
neighbor 123.103.15.5 password cisco
neighbor 123.103.15.5 fall-over bfd
neighbor 123.103.15.9 remote-as 9308
neighbor 123.103.15.9 password cisco
neighbor 123.103.15.9 fall-over bfd
neighbor 123.103.15.17 remote-as 4807
neighbor 123.103.15.17 password cisco
neighbor 123.103.15.17 fall-over bfd
!
ip prefix-list external-export seq 5 permit 14.102.0.0/16
ip prefix-list external-export seq 10 permit 27.160.0.0/16
ip prefix-list external-export seq 15 permit 43.180.0.0/16
!
route-map external-export permit 10
match ip address prefix-list external-export
!
XRV5
==========================================================
!
hostname XRV5
!
interface Loopback0
ip address 220.198.32.5 255.255.255.255
ip router isis 100
!
interface GigabitEthernet0/0
switchport access vlan 100
switchport mode access
media-type rj45
negotiation auto
!
interface GigabitEthernet0/1
switchport trunk encapsulation dot1q
switchport mode trunk
media-type rj45
negotiation auto
!
interface GigabitEthernet0/2
media-type rj45
negotiation auto
!
interface GigabitEthernet0/3
media-type rj45
negotiation auto
!
interface Vlan1
ip address 14.102.1.254 255.255.255.0
!
interface Vlan2
ip address 14.102.128.254 255.255.255.0
!
interface Vlan3
ip address 14.102.192.254 255.255.255.0
!
interface Vlan4
ip address 14.102.255.254 255.255.255.0
!
interface Vlan5
ip address 27.160.1.254 255.255.255.0
!
interface Vlan6
ip address 27.160.128.254 255.255.255.0
!
interface Vlan7
ip address 27.160.192.254 255.255.255.0
!
interface Vlan8
ip address 27.160.255.254 255.255.255.0
!
interface Vlan9
ip address 36.159.1.254 255.255.255.0
!
interface Vlan10
ip address 36.159.128.254 255.255.255.0
!
interface Vlan11
ip address 36.159.192.254 255.255.255.0
!
interface Vlan12
ip address 36.159.255.254 255.255.255.0
!
interface Vlan13
ip address 43.180.1.254 255.255.255.0
!
interface Vlan14
ip address 43.180.128.254 255.255.255.0
!
interface Vlan15
ip address 43.180.192.254 255.255.255.0
!
interface Vlan16
ip address 43.180.255.254 255.255.255.0
!
interface Vlan100
ip address 10.10.1.1 255.255.255.252
ip router isis 100
isis circuit-type level-2-only
!
router isis 100
net 49.0000.2201.9832.5000.00
is-type level-2-only
!
router bgp 4809
bgp router-id 220.198.32.5
bgp log-neighbor-changes
bgp graceful-restart restart-time 120
bgp graceful-restart stalepath-time 360
bgp graceful-restart
network 14.102.1.0 mask 255.255.255.0
network 14.102.128.0 mask 255.255.255.0
network 14.102.192.0 mask 255.255.255.0
network 14.102.255.0 mask 255.255.255.0
network 27.160.1.0 mask 255.255.255.0
network 27.160.128.0 mask 255.255.255.0
network 27.160.192.0 mask 255.255.255.0
network 27.160.255.0 mask 255.255.255.0
network 36.159.1.0 mask 255.255.255.0
network 36.159.128.0 mask 255.255.255.0
network 36.159.192.0 mask 255.255.255.0
network 36.159.255.0 mask 255.255.255.0
network 43.180.1.0 mask 255.255.255.0
network 43.180.128.0 mask 255.255.255.0
network 43.180.192.0 mask 255.255.255.0
network 43.180.255.0 mask 255.255.255.0
neighbor 220.198.32.1 remote-as 4809
neighbor 220.198.32.1 password cisco
neighbor 220.198.32.1 update-source Loopback0
!
手工汇总的注意事项:
1.as-set 当BGP的路由汇总后,原路由的属性会丢失,比如as-path等,加as-set属性能够重新生成新的as-path
2. advertise-map 只对 advertise-map 匹配的路由条目进行路由聚合
3. attribute-map 聚合后清除原路由的属性
4.suppress-map 设置为bgp路由条目为suppress,即该条目在BGP路由表中带s
BGP路由的手动汇总的更多相关文章
- 如何使用 Quagga BGP(边界网关协议)路由器来过滤 BGP 路由
在之前的文章中,我们介绍了如何使用 Quagga 将 CentOS 服务器变成一个 BGP 路由器,也介绍了 BGP 对等体和前缀交换设置.在本教程中,我们将重点放在如何使用前缀列表prefix-li ...
- filter-policy和AS-PATH-FILTER过滤BGP路由条目
Filter-policy过滤BGP路由条目 一:根据项目需求搭建好拓扑图如下: 二:配置 1:对项目图做理论分析,首先RT1和RT2属于EBGP(不同自治系统之间的直连路由),而RT2和RT3属于I ...
- BGP路由属性详解
Weight属性:cisco私有的BGP属性参数,它只适用于一台路由器中的路由,也就是不会传递给任何其他的路由器.他的取值范围为<0-65535>,这个数越大优先级越高,默认从邻居学到的路 ...
- HCNP Routing&Switching之BGP路由宣告
前文我们了解了BGP报文结构.类型以及邻居状态相关话题,回顾请参考https://www.cnblogs.com/qiuhom-1874/p/15422924.html:今天我们来聊一聊BGP路由宣告 ...
- HCNP Routing&Switching之BGP路由属性和优选规则
前文我们了解了BGP防环机制和路由聚合相关话题,回顾请参考https://www.cnblogs.com/qiuhom-1874/p/15458110.html:今天我们来聊一聊BGP路由属性和选路规 ...
- HCNP Routing&Switching之BGP路由控制
前文我们了解了BGP的路由属性和优选规则相关话题,回顾请参考https://www.cnblogs.com/qiuhom-1874/p/15489497.html:今天我们来聊一聊BGP路由控制相关话 ...
- CCIE路由实验(4) -- BGP路由控制
1.过滤BGP路由的方法2.用AS-path filter控制路由3.用Community Filter控制路由 enableconf tno ip do loenable pass ciscolin ...
- BGP路由控制属性
控制BGP路由概述: BGP与IGP不同,其着跟点主要在于不同的AS之间控制路由的传播和选择最佳路由 通过修改BGP基本属性可以实现基本的BGP路由控制和最佳路由的选择 引入其他路由协议发现的路由时. ...
- BGP路由技术
BGP路由技术 目录 一.BGP概述 1.1.自治系统 1.2.动态路由分类 1.3.BGP概念 1.4.BGP的特征 1.5.BGP工作原理 二.命令配置 2.1.BGP配置思路 2.2.命令 一. ...
随机推荐
- 从多路搜索树到 B-树
1. 什么是 B 树 B 树是为磁盘或其他直接存取的辅助存储设备而设计的一种平衡二叉树: B 树类似于红黑树,但它们在降低磁盘 I/O 操作数方面要更好一点, 许多数据库系统使用 B 树或者 B 树的 ...
- 5.Maven和Eclipse整合(两种方式进行插件的安装),Maven相关设置,Eclipse下创建Maven项目
1 第一种方式是:在连网的情况下.通过在helpàInstall下安装. 新的地址是:http://download.eclipse.org/technology/m2e/releases 2 ...
- color2gray 的实现
无论是 rgb 还是 yuv 等三通道的颜色空间中的像素点,将其转换为单通道(pixel_depth=255.)中的像素,一般情况下都是采用的对原始颜色空间的 3 通道的像素点线性组合而得到单通道的像 ...
- Git远程操作具体解释
Git是眼下最流行的版本号管理系统,学会Git差点儿成了开发人员的必备技能. Git有非常多优势,当中之中的一个就是远程操作非常简便.本文具体介绍5个Git命令,它们的概念和使用方法,理解了这些内容. ...
- Spark修炼之道(基础篇)——Linux大数据开发基础:第三节:用户和组
本节主要内容 理解用户和组的概念 用户管理 组管理 权限分配 1. 理解用户和组的概念 在第一讲中我们提到.linux是一种多任务.多用户的操作系统,在讲ls -l命令行我们看到例如以下文件具体信息: ...
- Android项目如果要将自己写的类写成要单独打成jar包?
需求条件: 自己没做过android,公司android开发临时有事请假了,老板说让我研究研究,反正都是java.我心里"XXXXXX".这篇用来自己做个记录,老手请略过,Andr ...
- VS2008智能提示解决办法
最近在VS2008的代码编辑环境中,发现定义了一个类后,然后用类对象点不出对象的属性和方法,于是在网上参考一些资料. 具体步骤如下: 一.开始->Microsoft Visual Studio ...
- mingw qt(可以去掉mingwm10.dll、libgcc_s_dw2-1.dll、libstdc++-6.dll的依赖,mingw默认都是动态链接gcc的库而TDM是静态链接gcc库,tdm版本更好用。用aspack压缩没有问题。qt本身不使用异常处理)good
原文地址:mingw qt作者:孙1东 不使用Qt SDK,使用mingw编译qt源代码所遇问题及解决方法: configure -fast -release -no-exceptions -no-r ...
- 支付(异步通知notify_url 与 同步通知return_url的区别)
同步通知和异步通知发送的数据没有本质的区别:同步通知有2个作用:第一是从支付宝的页面上返回自己的网站继续后续操作:第二是携带支付状态的get参数:让自己的网站用于验证: 同步通知后:还需要异步通知主要 ...
- Linq知识小总结
一.投影操作符 Select Select操作符对单个序列或集合中的值进行投影. 返回 IEnumerable<类名> //查询语法 var query = from e in db.Em ...