网络拓扑

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路由的手动汇总的更多相关文章

  1. 如何使用 Quagga BGP(边界网关协议)路由器来过滤 BGP 路由

    在之前的文章中,我们介绍了如何使用 Quagga 将 CentOS 服务器变成一个 BGP 路由器,也介绍了 BGP 对等体和前缀交换设置.在本教程中,我们将重点放在如何使用前缀列表prefix-li ...

  2. filter-policy和AS-PATH-FILTER过滤BGP路由条目

    Filter-policy过滤BGP路由条目 一:根据项目需求搭建好拓扑图如下: 二:配置 1:对项目图做理论分析,首先RT1和RT2属于EBGP(不同自治系统之间的直连路由),而RT2和RT3属于I ...

  3. BGP路由属性详解

    Weight属性:cisco私有的BGP属性参数,它只适用于一台路由器中的路由,也就是不会传递给任何其他的路由器.他的取值范围为<0-65535>,这个数越大优先级越高,默认从邻居学到的路 ...

  4. HCNP Routing&Switching之BGP路由宣告

    前文我们了解了BGP报文结构.类型以及邻居状态相关话题,回顾请参考https://www.cnblogs.com/qiuhom-1874/p/15422924.html:今天我们来聊一聊BGP路由宣告 ...

  5. HCNP Routing&Switching之BGP路由属性和优选规则

    前文我们了解了BGP防环机制和路由聚合相关话题,回顾请参考https://www.cnblogs.com/qiuhom-1874/p/15458110.html:今天我们来聊一聊BGP路由属性和选路规 ...

  6. HCNP Routing&Switching之BGP路由控制

    前文我们了解了BGP的路由属性和优选规则相关话题,回顾请参考https://www.cnblogs.com/qiuhom-1874/p/15489497.html:今天我们来聊一聊BGP路由控制相关话 ...

  7. CCIE路由实验(4) -- BGP路由控制

    1.过滤BGP路由的方法2.用AS-path filter控制路由3.用Community Filter控制路由 enableconf tno ip do loenable pass ciscolin ...

  8. BGP路由控制属性

    控制BGP路由概述: BGP与IGP不同,其着跟点主要在于不同的AS之间控制路由的传播和选择最佳路由 通过修改BGP基本属性可以实现基本的BGP路由控制和最佳路由的选择 引入其他路由协议发现的路由时. ...

  9. BGP路由技术

    BGP路由技术 目录 一.BGP概述 1.1.自治系统 1.2.动态路由分类 1.3.BGP概念 1.4.BGP的特征 1.5.BGP工作原理 二.命令配置 2.1.BGP配置思路 2.2.命令 一. ...

随机推荐

  1. html5-3 html5标签(热点地图如何实现)(边学边做)

    html5-3 html5标签(热点地图如何实现)(边学边做) 一.总结 一句话总结:热点地图用绝对定位实现. 1.自定义列表怎么弄? dl  自定义列表dt  自定义标题dd  自定义列表内容 2. ...

  2. Oracle中的游标(转)

    Oracle中的游标有两种:显式游标.隐式游标.显示游标是用cursor...is命令定义的游标,它可以对查询语句(select)返回的多条记录进行处理,而隐式游标是在执行插入 (insert).删除 ...

  3. 小强的HTML5移动开发之路(26)—— JavaScript回顾1

    很久没有怎么用过JavaScript了,感觉有点生疏,最近在看关于HTML5移动开发方面的资料,有一种直觉告诉我,JavaScript昨天.今天很重要,明天会更重要.现在好多基于JavaScript的 ...

  4. 【BZOJ 1027】[JSOI2007]合金

    [题目链接]:http://www.lydsy.com/JudgeOnline/problem.php?id=1027 [题意] [题解] 因为和为1; 所以只要知道两个属性第三个属性就能用1减出来了 ...

  5. 【14.36%】【codeforces 614C】Peter and Snow Blower

    time limit per test2 seconds memory limit per test256 megabytes inputstandard input outputstandard o ...

  6. 生成动态Lambda表达式1

    SqlDataReader生成动态Lambda表达式 上一扁使用动态lambda表达式来将DataTable转换成实体,比直接用反射快了不少.主要是首行转换的时候动态生成了委托. 后面的转换都是直接调 ...

  7. python列表分页

    列表分页   上章的结束,若在实际开发过程中,会发现一个问题,那就首页或关注分享,是一下子按时间顺序全部显示出来,这在实际项目中不可能出现的,想想实际中的产品是如何做的? 一般来说,无非是两种,一种是 ...

  8. effective c++ 条款7

    1.随着多态基类应该声明一个质virtual析构函数. 假定class由于不管是什么virtual析构函数, 它应该有一个virtual析构函数. 2.classed的设计目的假设不是作为base c ...

  9. opencc 繁体简体互转 (C++)

         繁体字通常采用BIG5编码,简体字通常采用GBK或者GB18030编码,这种情况下,直接使用iconv(linux下有对应的命令,也有对应的C API供编程调用)就行.对于默认采用utf-8 ...

  10. Clustered filesystem with membership version support

    A computer system with read/write access to storage devices creates a snapshot of a data volume at a ...