全文预览已结束
下载本文档
版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
操纵BGP AS-PATH 属性案例(配图+详细验证过程) BGP总是优先选择具有最短AS路径的路由。本案例中,我们将配置R1,将1.0.0.0通告给R2、R3之前预先添加两个额外的AS路径到1.0.0.0上(AS300、AS400)具体配置如下:/ r1 /int f2/0 ip ad 192.1.1.1 255.255.255.0int f3/0 ip ad 193.1.1.1 255.255.255.0int lo0 ip ad 1.1.1.1 255.255.255.0int lo1 ip ad 2.2.2.2 255.255.255.0router bgp 100 no syn neighbor 192.1.1.2 remote-as 200 neighbor 193.1.1.3 remote-as 200 network 1.0.0.0 network 1.0.0.0 neighbor 193.1.1.3 route-map aspath outaccess-list 1 permit 1.0.0.0 0.255.255.255route-map aspath 10 match ip ad 1 set as-path prepend 300 400route-map aspath 20/ r2 /int f2/0 ip ad 192.1.1.2 255.255.255.0int f4/0 ip ad 194.1.1.2 255.255.255.0router os 1 netw 0.0.0.0 255.255.255.255 a 0 passive-interface f2/0router bgp 200 no syn neighbor 192.1.1.1 remote-as 100 neighbor 194.1.1.4 remote-as 200 neighbor 195.1.1.3 remote-as 200 neighbor 194.1.1.4 next-hop-self/ r3 /int f3/0 ip ad 193.1.1.3 255.255.255.0int f5/0 ip ad 195.1.1.3 255.255.255.0router os 1 netw 0.0.0.0 255.255.255.255 a 0 passive-interface f3/0router bgp 200 no syn neighbor 193.1.1.1 remote-as 100 neighbor 195.1.1.4 remote-as 200 neighbor 195.1.1.4 next-hop-self neighbor 194.1.1.2 remote-as 200/ r4 /int f4/0 ip ad 194.1.1.4 255.255.255.0int f5/0 ip ad 195.1.1.4 255.255.255.0int lo0 ip ad 4.4.4.4 255.255.255.0router os 1 netw 0.0.0.0 255.255.255.255 a 0router bgp 200 no syn neighbor 194.1.1.2 remote-as 200 neighbor 195.1.1.3 remote-as 200 netw 4.0.0.0验证:r3#sh ip b Network Next Hop Metric LocPrf Weight Path*i1.0.0.0 192.1.1.1 0 100 0 100 i* 193.1.1.1 0 0 100 300 400 i* i2.0.0.0 192.1.1.1 0 100 0 100 i* 193.1.1.1 0 0 100 i*i4.0.0.0 195.1.1.4 0 100 0 ir3#sh ip roB 1.0.0.0/8 200/0 via 192.1.1.1, 00:05:23B 2.0.0.0/8 20/0 via 193.1.1.1, 00:05:23 4.0.0.0/8 is variably subnetted, 2 subnets, 2 masksO 4.4.4.4/32 110/65 via 195.1.1.4, 00:10:38, Serial5/0B 4.0.0.0/8 200/0 via 195.1.1.4, 00:10:13C 193.1.1.0/24 is directly connected, Serial3/0O 192.1.1.0/24 110/192 via 195.1.1.4, 00:10:38, Serial5/0C
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 人教版(2019)高中必修第二册6.1圆周运动教案
- 专题3:机械能守恒定律的应用(教学设计) -2023-2024学年高一物理同步讲练课堂(人教版2019必修第二册)
- 仁爱版初中化学九年级上册4.1燃烧与灭火教案(表格型)
- 人音版 (五线谱)五年级下册音乐-2《迷人的火塘》 教案
- 小学二年级机械结构课程 教学设计32四足爬虫
- 第1课+中华文明的起源与早期国家+同步练习 高一上学期统编版(2019)必修中外历史纲要上
- 7 多元文化 多样魅力 第二课时 教学设计-2023-2024学年道德与法治六年级下册统编版
- 九年级化学上册 第3单元 物质构成的奥秘 课题2 原子的结构 第1课时 第1课时 原子的构成与核外电子排布教案 (新版)新人教版
- 2024-2025学年张家口市康保县数学三上期末达标测试试题含解析
- 稀土金属矿选矿厂市场分析与竞争力提升考核试卷
- 2024-2030年海参行业市场深度调研及发展规划与投资前景研究报告
- 2024义务教育数学新课标课程标准2022版考试真题附答案
- 部编版语文2024-2025学年七年级上册第一单元测试卷
- 二型呼吸衰竭的课件
- 2022年版初中化学课程标准新课标考试题库及答案1
- 螺杆空压机微电脑控制器MAM-KY02S(B)-(Ⅷ)型用户手册
- 2024中华人民共和国农村集体经济组织法详细解读课件
- 2024年中国兵器工业集团限公司夏季招聘(高频重点提升专题训练)共500题附带答案详解
- 2024-2030年中国抽油杆市场经营模式分析与供需现状调研研究报告
- 拖车损坏赔偿协议书
- 大学劳动教育(高等院校劳动教育课程)全套教学课件
评论
0/150
提交评论