企业BGP网络规划案例(三)
路由选路
1.分支的办公流和生产流默认走联通MSTP线路,DC流默认走电信MSTP线路,当其中某条互联的链路down后才会进行流量切换
XRV1配置
============================================================
ip prefix-list as65000-ct seq 5 permit 10.78.1.0/24
ip prefix-list as65000-ct seq 10 permit 10.78.2.0/24
ip prefix-list as65000-ct seq 15 permit 10.78.3.0/24
ip prefix-list as65000-ct seq 20 permit 10.78.4.0/24
ip prefix-list as65000-ct seq 25 permit 10.78.5.0/24
ip prefix-list as65000-ct seq 30 permit 10.78.6.0/24
ip prefix-list as65000-ct seq 35 permit 10.78.7.0/24
ip prefix-list as65000-ct seq 40 permit 10.78.8.0/24
ip prefix-list as65000-ct seq 45 permit 10.78.9.0/24
ip prefix-list as65000-ct seq 50 permit 10.78.10.0/24
ip prefix-list as65000-ct seq 55 permit 10.78.11.0/24
ip prefix-list as65000-ct seq 60 permit 10.78.12.0/24
ip prefix-list as65000-ct seq 65 permit 10.78.13.0/24
ip prefix-list as65000-ct seq 70 permit 10.78.14.0/24
ip prefix-list as65000-ct seq 75 permit 10.78.15.0/24
ip prefix-list as65000-ct seq 80 permit 10.78.16.0/24
!
route-map as65000-ct permit 10
match ip address prefix-list as65000-ct
set as-path prepend 65000 65000 65000
!
route-map as65000-ct permit 20
!
router bgp 65000
bgp router-id 10.255.255.1
neighbor 10.201.1.10 route-map as65000-ct out
XRV2配置
============================================================
!
ip prefix-list as65000-cu seq 5 permit 10.158.1.0/24
ip prefix-list as65000-cu seq 10 permit 10.158.2.0/24
ip prefix-list as65000-cu seq 15 permit 10.158.3.0/24
ip prefix-list as65000-cu seq 20 permit 10.158.4.0/24
ip prefix-list as65000-cu seq 25 permit 10.158.5.0/24
ip prefix-list as65000-cu seq 30 permit 10.158.6.0/24
ip prefix-list as65000-cu seq 35 permit 10.158.7.0/24
ip prefix-list as65000-cu seq 40 permit 10.158.8.0/24
ip prefix-list as65000-cu seq 45 permit 10.158.9.0/24
ip prefix-list as65000-cu seq 50 permit 10.158.10.0/24
ip prefix-list as65000-cu seq 55 permit 10.158.11.0/24
ip prefix-list as65000-cu seq 60 permit 10.158.12.0/24
ip prefix-list as65000-cu seq 65 permit 10.158.13.0/24
ip prefix-list as65000-cu seq 70 permit 10.158.14.0/24
ip prefix-list as65000-cu seq 75 permit 10.158.15.0/24
ip prefix-list as65000-cu seq 80 permit 10.158.16.0/24
ip prefix-list as65000-cu seq 85 permit 10.78.1.0/24
ip prefix-list as65000-cu seq 90 permit 10.78.2.0/24
ip prefix-list as65000-cu seq 95 permit 10.78.3.0/24
ip prefix-list as65000-cu seq 100 permit 10.78.4.0/24
ip prefix-list as65000-cu seq 105 permit 10.78.5.0/24
ip prefix-list as65000-cu seq 110 permit 10.78.6.0/24
ip prefix-list as65000-cu seq 115 permit 10.78.7.0/24
ip prefix-list as65000-cu seq 120 permit 10.78.8.0/24
ip prefix-list as65000-cu seq 125 permit 10.78.9.0/24
ip prefix-list as65000-cu seq 130 permit 10.78.10.0/24
ip prefix-list as65000-cu seq 135 permit 10.78.11.0/24
ip prefix-list as65000-cu seq 140 permit 10.78.12.0/24
ip prefix-list as65000-cu seq 145 permit 10.78.13.0/24
ip prefix-list as65000-cu seq 150 permit 10.78.14.0/24
ip prefix-list as65000-cu seq 155 permit 10.78.15.0/24
ip prefix-list as65000-cu seq 160 permit 10.78.16.0/24
!
route-map as65000-cu permit 10
match ip address prefix-list as65000-cu
set as-path prepend 65000 65000 65000
!
route-map as65000-cu permit 20
!
!
router bgp 65000
bgp router-id 10.255.255.2
neighbor 10.201.1.6 route-map as65000-cu out
!
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
!
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 20
!
!
router bgp 65001
bgp router-id 192.168.1.3
neighbor 10.201.1.1 route-map as65001-ct out
!
XRV4配置
============================================================
!
!
router bgp 65001
bgp router-id 192.168.1.4
neighbor 10.201.1.5 route-map as65001-cu out
!
ip prefix-list as65001-cu seq 5 permit 10.138.1.0/24
ip prefix-list as65001-cu seq 10 permit 10.138.2.0/24
ip prefix-list as65001-cu seq 15 permit 10.138.3.0/24
ip prefix-list as65001-cu seq 20 permit 10.138.4.0/24
ip prefix-list as65001-cu seq 25 permit 10.138.5.0/24
ip prefix-list as65001-cu seq 30 permit 10.138.6.0/24
ip prefix-list as65001-cu seq 35 permit 10.138.7.0/24
ip prefix-list as65001-cu seq 40 permit 10.138.8.0/24
ip prefix-list as65001-cu seq 45 permit 10.138.9.0/24
ip prefix-list as65001-cu seq 50 permit 10.138.10.0/24
ip prefix-list as65001-cu seq 55 permit 10.138.11.0/24
ip prefix-list as65001-cu seq 60 permit 10.138.12.0/24
ip prefix-list as65001-cu seq 65 permit 10.138.13.0/24
ip prefix-list as65001-cu seq 70 permit 10.138.14.0/24
ip prefix-list as65001-cu seq 75 permit 10.138.15.0/24
ip prefix-list as65001-cu seq 80 permit 10.138.16.0/24
ip prefix-list as65001-cu seq 85 permit 10.173.1.0/24
ip prefix-list as65001-cu seq 90 permit 10.173.2.0/24
ip prefix-list as65001-cu seq 95 permit 10.173.3.0/24
ip prefix-list as65001-cu seq 100 permit 10.173.4.0/24
ip prefix-list as65001-cu seq 105 permit 10.173.5.0/24
ip prefix-list as65001-cu seq 110 permit 10.173.6.0/24
ip prefix-list as65001-cu seq 115 permit 10.173.7.0/24
ip prefix-list as65001-cu seq 120 permit 10.173.8.0/24
ip prefix-list as65001-cu seq 125 permit 10.173.9.0/24
ip prefix-list as65001-cu seq 130 permit 10.173.10.0/24
ip prefix-list as65001-cu seq 135 permit 10.173.11.0/24
ip prefix-list as65001-cu seq 140 permit 10.173.12.0/24
ip prefix-list as65001-cu seq 145 permit 10.173.13.0/24
ip prefix-list as65001-cu seq 150 permit 10.173.14.0/24
ip prefix-list as65001-cu seq 155 permit 10.173.15.0/24
ip prefix-list as65001-cu seq 160 permit 10.173.16.0/24
!
route-map as65001-cu permit 10
match ip address prefix-list as65001-cu
set as-path prepend 65001 65001 65001
!
route-map as65001-cu permit 20
!
XRV5配置
============================================================
!
ip prefix-list as65002-ct seq 5 permit 10.175.1.0/24
ip prefix-list as65002-ct seq 10 permit 10.175.2.0/24
ip prefix-list as65002-ct seq 15 permit 10.175.3.0/24
ip prefix-list as65002-ct seq 20 permit 10.175.4.0/24
ip prefix-list as65002-ct seq 25 permit 10.175.5.0/24
ip prefix-list as65002-ct seq 30 permit 10.175.6.0/24
ip prefix-list as65002-ct seq 35 permit 10.175.7.0/24
ip prefix-list as65002-ct seq 40 permit 10.175.8.0/24
ip prefix-list as65002-ct seq 45 permit 10.175.9.0/24
ip prefix-list as65002-ct seq 50 permit 10.175.10.0/24
ip prefix-list as65002-ct seq 55 permit 10.175.11.0/24
ip prefix-list as65002-ct seq 60 permit 10.175.12.0/24
ip prefix-list as65002-ct seq 65 permit 10.175.13.0/24
ip prefix-list as65002-ct seq 70 permit 10.175.14.0/24
ip prefix-list as65002-ct seq 75 permit 10.175.15.0/24
ip prefix-list as65002-ct seq 80 permit 10.175.16.0/24
!
route-map as65002-ct permit 10
match ip address prefix-list as65002-ct
set as-path prepend 65002 65002 65002
!
route-map as65002-ct permit 20
!
router bgp 65002
bgp router-id 10.255.255.5
neighbor 10.201.1.9 route-map as65002-ct out
!
XRV6配置
============================================================
!
!
ip prefix-list as65002-cu seq 5 permit 10.38.1.0/24
ip prefix-list as65002-cu seq 10 permit 10.38.2.0/24
ip prefix-list as65002-cu seq 15 permit 10.38.3.0/24
ip prefix-list as65002-cu seq 20 permit 10.38.4.0/24
ip prefix-list as65002-cu seq 25 permit 10.38.5.0/24
ip prefix-list as65002-cu seq 30 permit 10.38.6.0/24
ip prefix-list as65002-cu seq 35 permit 10.38.7.0/24
ip prefix-list as65002-cu seq 40 permit 10.38.8.0/24
ip prefix-list as65002-cu seq 45 permit 10.38.9.0/24
ip prefix-list as65002-cu seq 50 permit 10.38.10.0/24
ip prefix-list as65002-cu seq 55 permit 10.38.11.0/24
ip prefix-list as65002-cu seq 60 permit 10.38.12.0/24
ip prefix-list as65002-cu seq 65 permit 10.38.13.0/24
ip prefix-list as65002-cu seq 70 permit 10.38.14.0/24
ip prefix-list as65002-cu seq 75 permit 10.38.15.0/24
ip prefix-list as65002-cu seq 80 permit 10.38.16.0/24
ip prefix-list as65002-cu seq 85 permit 10.38.17.0/24
ip prefix-list as65002-cu seq 90 permit 10.38.18.0/24
ip prefix-list as65002-cu seq 95 permit 10.17.1.0/24
ip prefix-list as65002-cu seq 100 permit 10.17.2.0/24
ip prefix-list as65002-cu seq 105 permit 10.17.3.0/24
ip prefix-list as65002-cu seq 110 permit 10.17.4.0/24
ip prefix-list as65002-cu seq 115 permit 10.17.5.0/24
ip prefix-list as65002-cu seq 120 permit 10.17.6.0/24
ip prefix-list as65002-cu seq 125 permit 10.17.7.0/24
ip prefix-list as65002-cu seq 130 permit 10.17.8.0/24
ip prefix-list as65002-cu seq 135 permit 10.17.9.0/24
ip prefix-list as65002-cu seq 140 permit 10.17.10.0/24
ip prefix-list as65002-cu seq 145 permit 10.17.11.0/24
ip prefix-list as65002-cu seq 150 permit 10.17.12.0/24
ip prefix-list as65002-cu seq 155 permit 10.17.13.0/24
ip prefix-list as65002-cu seq 160 permit 10.17.14.0/24
ip prefix-list as65002-cu seq 165 permit 10.17.15.0/24
ip prefix-list as65002-cu seq 170 permit 10.17.16.0/24
!
route-map as65002-cu permit 10
match ip address prefix-list as65002-cu
set as-path prepend 65002 65002 65002
!
route-map as65002-cu permit 20
!
!
router bgp 65002
bgp router-id 10.255.255.6
neighbor 10.201.1.13 route-map as65002-cu out
!
进行路由测试
在XRV7上tracert到达10.178.1.254,源为10.158.1.254
============================================================
XRV7#traceroute
Protocol [ip]:
Target IP address: 10.178.1.254
Source address: 10.158.1.254
Numeric display [n]:
Timeout in seconds [3]:
Probe count [3]:
Minimum Time to Live [1]:
Maximum Time to Live [30]:
Port Number [33434]:
Loose, Strict, Record, Timestamp, Verbose[none]:
Type escape sequence to abort.
Tracing the route to 10.178.1.254
VRF info: (vrf in name/id, vrf out name/id)
1 10.10.1.10 13 msec 22 msec 15 msec
2 10.201.1.6 68 msec 23 msec 16 msec
3 10.10.2.10 24 msec 110 msec *
XRV7#
在XRV7上tracert到达10.38.1.254,源为10.158.1.254
============================================================
XRV7#traceroute
Protocol [ip]:
Target IP address: 10.38.1.254
Source address: 10.158.1.254
Numeric display [n]:
Timeout in seconds [3]:
Probe count [3]:
Minimum Time to Live [1]:
Maximum Time to Live [30]:
Port Number [33434]:
Loose, Strict, Record, Timestamp, Verbose[none]:
Type escape sequence to abort.
Tracing the route to 10.38.1.254
VRF info: (vrf in name/id, vrf out name/id)
1 10.10.1.6 24 msec 9 msec 8 msec
2 10.201.1.10 10 msec 9 msec 29 msec
3 10.10.3.6 14 msec 20 msec *
XRV7#
企业BGP网络规划案例(三)的更多相关文章
- 企业BGP网络规划案例(一)
网络拓扑: 如上图为一家企业的办公网,分为总部AS6500,分公司AS65001和分公司AS65002,其中每个站点都有生产.办公和服务器区域的网络互访,分公司和总公司之间通过两条联通/电信的MSTP ...
- 企业BGP网络规划案例(四)
关于路由的发布和接收使用route-map过滤,防止本AS作为一个转发区域. 在XRV3上和XRV4上使用prefix-list 进行路由接搜和发布的过滤 XRV3配置 =============== ...
- 企业BGP网络规划案例(二)
设计思路梳理 1.AS的划分 : 由于该办公网物理上被划分为总部和两个异地的办公分支,总部和分支互联采用MSTP线路,为了方便管理和更为灵活的进行路由控制,选择BGP作为总部和分支的路由协议.关于AS ...
- WPF案例 (三) 模拟QQ“快速换装"界面
原文:WPF案例 (三) 模拟QQ"快速换装"界面 这个小程序使用Wpf模拟QQ快速换装页面的动画特效,通过使用组合快捷键Ctrl+Left或Ctrl+Right,可实现Image ...
- Android实训案例(三)——实现时间轴效果的ListView,加入本地存储,实现恋爱日记的效果!
Android实训案例(三)--实现时间轴效果的ListView,加入本地存储,实现恋爱日记的效果! 感叹离春节将至,也同时感叹时间不等人,一年又一年,可是我依然是android道路上的小菜鸟,这篇讲 ...
- 案例学python——案例三:豆瓣电影信息入库
闲扯皮 昨晚给高中的妹妹微信讲题,函数题,小姑娘都十二点了还迷迷糊糊.今天凌晨三点多,被连续的警报声给惊醒了,以为上海拉了防空警报,难不成地震,空袭?难道是楼下那个车主车子被堵了,长按喇叭?开窗看看, ...
- 数据分析与挖掘 - R语言:贝叶斯分类算法(案例三)
案例三比较简单,不需要自己写公式算法,使用了R自带的naiveBayes函数. 代码如下: > library(e1071)> classifier<-naiveBayes(iris ...
- 七、Dockerfile案例三(Mysql安装)
七.Dockerfile案例三(Mysql安装) *特别提醒:新版的mysql:5.7数据库下的user表中已经没有Password字段了(5.5的user表还有) 一.查看docker hub上的版 ...
- thinkphp5项目--企业单车网站(三)
thinkphp5项目--企业单车网站(三) 项目地址 fry404006308/BicycleEnterpriseWebsite: Bicycle Enterprise Websitehttps:/ ...
随机推荐
- C++ 64位操作系统调用 RegOpenKey() 读取注册表,返回 2, ERROR_FILE_NOT_FOUND
环境:64位操作系统, VS2017 首先在命令行执行 REG ADD HKLM\Software\seastarsun /v serial /t REG_SZ /d 58ae4cb077a4e1 在 ...
- 02-cookie简单使用
@Override protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletExcep ...
- 关于__cmp__的使用
__cmp__是python的类中所使用的特殊函数,一般用于对类对象列表的排序. 举个例子,假设需要对Student类的对象列表按照其成绩grade属性进行排序,那么可以这么设计: class Stu ...
- spark2.1源码分析1:Win10下IDEA源码阅读环境的搭建
环境:win10.IDEA2016.3.maven3.3.9.git.scala 2.11.8.java1.8.0_101.sbt0.13.12 下载: #git bash中执行: git clone ...
- linux下安装nexus repository及Intellij Idea集成私有maven
前段日子公司搞java项目,使用nexus repository搭建了私有maven库,现在把原来的私有nuget也迁到nexus repository上了,下面介绍下搭建流程: https://he ...
- MVC动态赋值的td选中,获取当前的td的ID或者值
前台绑定数据: <div class="mailbox-content"> <table class="table"> <tbod ...
- LSTM编程所用函数
1.Round函数返回一个数值,该数值是按照指定的小数位数进行四舍五入运算的结果.可是当保留位跟着的即使是5,有可能进位,也有可能舍去,机会各50% 2.python基础 (1)@property 特 ...
- gentoo virtual couldnt download
今天在更新系统的时候,提示 virtualbox-bin 从原始地址下载不了,经过一番摸索,通过下面的方式即可正常安装. http://download.virtualbox.org/virtualb ...
- Kafka(1)--kafka基础知识
Kafka 的简介: Kafka 是一款分布式消息发布和订阅系统,具有高性能.高吞吐量的特点而被广泛应用与大数据传输场景.它是由 LinkedIn 公司开发,使用 Scala 语言编写,之后成为 Ap ...
- python远程执行dos命令
https://blog.csdn.net/huaihuaidexiao/article/details/5543240 https://blog.csdn.net/bcbobo21cn/articl ...