关于路由的发布和接收使用route-map过滤,防止本AS作为一个转发区域。

在XRV3上和XRV4上使用prefix-list 进行路由接搜和发布的过滤

XRV3配置

=========================================================

!
!
ip prefix-list as65001-ct seq 5 permit 10.178.1.0/24
ip prefix-list as65001-ct seq 10 permit 10.178.2.0/24
ip prefix-list as65001-ct seq 15 permit 10.178.3.0/24
ip prefix-list as65001-ct seq 20 permit 10.178.4.0/24
ip prefix-list as65001-ct seq 25 permit 10.178.5.0/24
ip prefix-list as65001-ct seq 30 permit 10.178.6.0/24
ip prefix-list as65001-ct seq 35 permit 10.178.7.0/24
ip prefix-list as65001-ct seq 40 permit 10.178.8.0/24
ip prefix-list as65001-ct seq 45 permit 10.178.9.0/24
ip prefix-list as65001-ct seq 50 permit 10.178.10.0/24
ip prefix-list as65001-ct seq 55 permit 10.178.11.0/24
ip prefix-list as65001-ct seq 60 permit 10.178.12.0/24
ip prefix-list as65001-ct seq 65 permit 10.178.13.0/24
ip prefix-list as65001-ct seq 70 permit 10.178.14.0/24
ip prefix-list as65001-ct seq 75 permit 10.178.15.0/24
ip prefix-list as65001-ct seq 80 permit 10.178.16.0/24
!
ip prefix-list as65001-export seq 5 permit 10.138.1.0/24
ip prefix-list as65001-export seq 10 permit 10.138.2.0/24
ip prefix-list as65001-export seq 15 permit 10.138.3.0/24
ip prefix-list as65001-export seq 20 permit 10.138.4.0/24
ip prefix-list as65001-export seq 25 permit 10.138.5.0/24
ip prefix-list as65001-export seq 30 permit 10.138.6.0/24
ip prefix-list as65001-export seq 35 permit 10.138.7.0/24
ip prefix-list as65001-export seq 40 permit 10.138.8.0/24
ip prefix-list as65001-export seq 45 permit 10.138.9.0/24
ip prefix-list as65001-export seq 50 permit 10.138.10.0/24
ip prefix-list as65001-export seq 55 permit 10.138.11.0/24
ip prefix-list as65001-export seq 60 permit 10.138.12.0/24
ip prefix-list as65001-export seq 65 permit 10.138.13.0/24
ip prefix-list as65001-export seq 70 permit 10.138.14.0/24
ip prefix-list as65001-export seq 75 permit 10.138.15.0/24
ip prefix-list as65001-export seq 80 permit 10.138.16.0/24
ip prefix-list as65001-export seq 85 permit 10.173.1.0/24
ip prefix-list as65001-export seq 90 permit 10.173.2.0/24
ip prefix-list as65001-export seq 95 permit 10.173.3.0/24
ip prefix-list as65001-export seq 100 permit 10.173.4.0/24
ip prefix-list as65001-export seq 105 permit 10.173.5.0/24
ip prefix-list as65001-export seq 110 permit 10.173.6.0/24
ip prefix-list as65001-export seq 115 permit 10.173.7.0/24
ip prefix-list as65001-export seq 120 permit 10.173.8.0/24
ip prefix-list as65001-export seq 125 permit 10.173.9.0/24
ip prefix-list as65001-export seq 130 permit 10.173.10.0/24
ip prefix-list as65001-export seq 135 permit 10.173.11.0/24
ip prefix-list as65001-export seq 140 permit 10.173.12.0/24
ip prefix-list as65001-export seq 145 permit 10.173.13.0/24
ip prefix-list as65001-export seq 150 permit 10.173.14.0/24
ip prefix-list as65001-export seq 155 permit 10.173.15.0/24
ip prefix-list as65001-export seq 160 permit 10.173.16.0/24
ip prefix-list as65001-export seq 165 permit 10.178.1.0/24
ip prefix-list as65001-export seq 170 permit 10.178.2.0/24
ip prefix-list as65001-export seq 175 permit 10.178.3.0/24
ip prefix-list as65001-export seq 180 permit 10.178.4.0/24
ip prefix-list as65001-export seq 185 permit 10.178.5.0/24
ip prefix-list as65001-export seq 190 permit 10.178.6.0/24
ip prefix-list as65001-export seq 195 permit 10.178.7.0/24
ip prefix-list as65001-export seq 200 permit 10.178.8.0/24
ip prefix-list as65001-export seq 205 permit 10.178.9.0/24
ip prefix-list as65001-export seq 210 permit 10.178.10.0/24
ip prefix-list as65001-export seq 215 permit 10.178.11.0/24
ip prefix-list as65001-export seq 220 permit 10.178.12.0/24
ip prefix-list as65001-export seq 225 permit 10.178.13.0/24
ip prefix-list as65001-export seq 230 permit 10.178.14.0/24
ip prefix-list as65001-export seq 235 permit 10.178.15.0/24
ip prefix-list as65001-export seq 240 permit 10.178.16.0/24
!
ip prefix-list as65001-import seq 5 permit 10.158.2.0/24
ip prefix-list as65001-import seq 10 permit 10.158.3.0/24
ip prefix-list as65001-import seq 15 permit 10.158.4.0/24
ip prefix-list as65001-import seq 20 permit 10.158.5.0/24
ip prefix-list as65001-import seq 25 permit 10.158.6.0/24
ip prefix-list as65001-import seq 30 permit 10.158.7.0/24
ip prefix-list as65001-import seq 35 permit 10.158.8.0/24
ip prefix-list as65001-import seq 40 permit 10.158.9.0/24
ip prefix-list as65001-import seq 45 permit 10.158.10.0/24
ip prefix-list as65001-import seq 50 permit 10.158.11.0/24
ip prefix-list as65001-import seq 55 permit 10.158.12.0/24
ip prefix-list as65001-import seq 60 permit 10.158.13.0/24
ip prefix-list as65001-import seq 65 permit 10.158.14.0/24
ip prefix-list as65001-import seq 70 permit 10.158.15.0/24
ip prefix-list as65001-import seq 75 permit 10.158.16.0/24
ip prefix-list as65001-import seq 80 permit 10.133.1.0/24
ip prefix-list as65001-import seq 85 permit 10.133.2.0/24
ip prefix-list as65001-import seq 90 permit 10.133.3.0/24
ip prefix-list as65001-import seq 95 permit 10.133.4.0/24
ip prefix-list as65001-import seq 100 permit 10.133.5.0/24
ip prefix-list as65001-import seq 105 permit 10.133.6.0/24
ip prefix-list as65001-import seq 110 permit 10.133.7.0/24
ip prefix-list as65001-import seq 115 permit 10.133.8.0/24
ip prefix-list as65001-import seq 120 permit 10.133.9.0/24
ip prefix-list as65001-import seq 125 permit 10.133.10.0/24
ip prefix-list as65001-import seq 130 permit 10.133.11.0/24
ip prefix-list as65001-import seq 135 permit 10.133.12.0/24
ip prefix-list as65001-import seq 140 permit 10.133.13.0/24
ip prefix-list as65001-import seq 145 permit 10.133.14.0/24
ip prefix-list as65001-import seq 150 permit 10.133.15.0/24
ip prefix-list as65001-import seq 155 permit 10.133.16.0/24
ip prefix-list as65001-import seq 160 permit 10.78.1.0/24
ip prefix-list as65001-import seq 165 permit 10.78.2.0/24
ip prefix-list as65001-import seq 170 permit 10.78.3.0/24
ip prefix-list as65001-import seq 175 permit 10.78.4.0/24
ip prefix-list as65001-import seq 180 permit 10.78.5.0/24
ip prefix-list as65001-import seq 185 permit 10.78.6.0/24
ip prefix-list as65001-import seq 190 permit 10.78.7.0/24
ip prefix-list as65001-import seq 195 permit 10.78.8.0/24
ip prefix-list as65001-import seq 200 permit 10.78.9.0/24
ip prefix-list as65001-import seq 205 permit 10.78.10.0/24
ip prefix-list as65001-import seq 210 permit 10.78.11.0/24
ip prefix-list as65001-import seq 215 permit 10.78.12.0/24
ip prefix-list as65001-import seq 220 permit 10.78.13.0/24
ip prefix-list as65001-import seq 225 permit 10.78.14.0/24
ip prefix-list as65001-import seq 230 permit 10.78.15.0/24
ip prefix-list as65001-import seq 235 permit 10.78.16.0/24
!
route-map as65001-import permit 10
match ip address prefix-list as65001-import
!
route-map as65001-ct permit 10
match ip address prefix-list as65001-ct
set as-path prepend 65001 65001 65001
!
route-map as65001-ct permit 11
match ip address prefix-list as65001-export
!

!
router bgp 65001
bgp router-id 192.168.1.3
neighbor 10.201.1.1 route-map as65001-import in
neighbor 10.201.1.1 route-map as65001-ct out
!

企业BGP网络规划案例(四)的更多相关文章

  1. 企业BGP网络规划案例(一)

    网络拓扑: 如上图为一家企业的办公网,分为总部AS6500,分公司AS65001和分公司AS65002,其中每个站点都有生产.办公和服务器区域的网络互访,分公司和总公司之间通过两条联通/电信的MSTP ...

  2. 企业BGP网络规划案例(三)

    路由选路 1.分支的办公流和生产流默认走联通MSTP线路,DC流默认走电信MSTP线路,当其中某条互联的链路down后才会进行流量切换 XRV1配置 ========================= ...

  3. 企业BGP网络规划案例(二)

    设计思路梳理 1.AS的划分 : 由于该办公网物理上被划分为总部和两个异地的办公分支,总部和分支互联采用MSTP线路,为了方便管理和更为灵活的进行路由控制,选择BGP作为总部和分支的路由协议.关于AS ...

  4. WPF案例 (四) 模拟Windows7桌面任务栏

    原文:WPF案例 (四) 模拟Windows7桌面任务栏 这个程序模彷了Windows7的桌面任务栏,当在桌面上双击某个快捷方式时,将打开一个新的子界面,并且在任务栏里创建一个链接到此界面的任务栏图标 ...

  5. Android实训案例(四)——关于Game,2048方块的设计,逻辑,实现,编写,加上色彩,分数等深度剖析开发过程!

    Android实训案例(四)--关于Game,2048方块的设计,逻辑,实现,编写,加上色彩,分数等深度剖析开发过程! 关于2048,我看到很多大神,比如医生,郭神,所以我也研究了一段时间,还好是研究 ...

  6. thinkphp5项目--企业单车网站(四)

    thinkphp5项目--企业单车网站(四) 项目地址 fry404006308/BicycleEnterpriseWebsite: Bicycle Enterprise Websitehttps:/ ...

  7. awk处理之案例四:sort加awk来过滤文本

    编译环境 本系列文章所提供的算法均在以下环境下编译通过. [脚本编译环境]Federa 8,linux 2.6.35.6-45.fc14.i686 [处理器] Intel(R) Core(TM)2 Q ...

  8. openvpn用户管理、linux客户端配置及企业常用真实案例解析

    1.给企业用户分配VPN账户的流程: 添加拨号需要密码的用户 # source vars NOTE: If you run ./clean-all, I will be doing a rm -rf ...

  9. AJAX案例四:省市联动

    <%@ page language="java" import="java.util.*" pageEncoding="UTF-8"% ...

随机推荐

  1. MyBatis复习【简单配置CRUD】

    这里的案例集成了log4j的日志框架,项目架构: 用到的jar文件 添加配置文件:mybatis-config.xml  和dao层配置文件StudentDao.xml 这里书写了个简单的案例仅为了说 ...

  2. Jenkins的Windows Slave的配置

    原文:http://www.cnblogs.com/itech/archive/2011/11/09/2243025.html 参考: https://wiki.jenkins-ci.org/disp ...

  3. jquery 节点操作大全

    $para.attr("title"); 实例: <script type="text/javascript"> //<![CDATA[ $( ...

  4. man/ls/clock/date/echo笔记

    login:    用户名:用户ID    认证机制:Authentication授权:Authorization审计:Audition (日志) prompt,命令提示符:命令:magic numb ...

  5. 第10章:DOM

  6. 模型组合(Model Combining)之Boosting与Gradient Boosting

    版权声明: 本文由LeftNotEasy发布于http://leftnoteasy.cnblogs.com, 本文可以被全部的转载或者部分使用,但请注明出处,如果有问题,请联系wheeleast@gm ...

  7. Python-网站页面代码获取

    Python3.6 库:urllib3, bs4 主程序是抓取亚马逊图书销售排名数据,但是亚马逊应该是加了反爬虫,拒绝疑似机器人的请求,这部分暂时以百度代替. 其实简单的页面抓取,常用的urllib. ...

  8. linux 下安装 oracle

    http://yourcouner.blog.51cto.com/59520/91156 一.RedHat AS4系统安装: 磁盘配置: 设备 类型 大小 / ext3 39911 swap 1024 ...

  9. Android(八) HandlerThread

    1.Looper Looper used to run a message loop for a thread. Threads by default do not have a message lo ...

  10. LOJ#6504. 「雅礼集训 2018 Day5」Convex(回滚莫队)

    题面 传送门 题解 因为并不强制在线,我们可以考虑莫队 然而莫队的时候有个问题,删除很简单,除去它和前驱后继的贡献即可.但是插入的话却要找到前驱后继再插入,非常麻烦 那么我们把它变成只删除的回滚莫队就 ...