企业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:/ ...
随机推荐
- aspose.cells 复制单元格
将第1行至第27行复制到第28行 cells.CopyRows(cells, 0, i*27, 27);
- MySQL binlog2sql-闪回数据
binlog2sql 从MySQL binlog解析出你要的SQL.根据不同选项,你可以得到原始SQL.回滚SQL.去除主键的INSERT SQL等. 用途 数据快速回滚(闪回) 主从切换后新mast ...
- remote: Repository not found. fatal: repository 'https://github.com/***/***.git/' not found
通过命令添加新repository到git hub在执行最后一步命令(如下所示)的时候报错 git push -u origin master error:remote: Repository not ...
- 关于getClass()的一些自己的见解
通过观看视频讲解,我得知,Class 老师讲解的是 这个是类的类,即是管理类的类.当时不是很理解,随后查询了相关资料后,以及真切的运行了几行代码后,才有一些深层次的体会, 在这里想要跟大家分享一下.如 ...
- python爬虫爬取京东、淘宝、苏宁上华为P20购买评论
爬虫爬取京东.淘宝.苏宁上华为P20购买评论 1.使用软件 Anaconda3 2.代码截图 三个网站代码大同小异,因此只展示一个 3.结果(部分) 京东 淘宝 苏宁 4.分析 这三个网站上的评论数据 ...
- WRF 安装备忘
▶ n 年前在笔记本上安装 WRF 的一个过程 ● 安装 cpp,csh,m4,quota,samba # apt-get install cpp csh m4 quota samba ● 网上教程有 ...
- MySQL(Python+ORM)
本篇对于Python操作MySQL主要使用两种方式: 原生模块 pymsql ORM框架 SQLAchemy pymsql pymsql是Python中操作MySQL的模块,其使用方法和MySQLdb ...
- [UNITY 5.4 UGUI] 控件重叠触摸穿透
问题. imge 和 button重叠时,imge 覆盖在button上面,导致点击事件无法传递到button. 1.给imge 添加 [Canvas Group]组件 2.修改[Canvas Gro ...
- java面试题复习(二)
//我又回来了 11.数组有没有length()方法?String有没有length()方法? 数组只有length属性,String有length()方法.注意:JavaScript获取字符串长度使 ...
- SpringCloud系列十:SpringCloudConfig 高级配置(密钥加密处理(JCE)、KeyStore 加密处理、SpringCloudConfig 高可用机制、SpringCloudBus 服务总线)
1.概念:SpringCloudConfig 高级配置 2.具体内容 在 SpringCloudConfig 之中考虑到所有配置文件都暴露在远程仓库之中的安全性问题,所以提供有安全访问的处理机制,这样 ...