操纵BGP AS-PATH 属性案例.doc_第1页
操纵BGP AS-PATH 属性案例.doc_第2页
操纵BGP AS-PATH 属性案例.doc_第3页
操纵BGP AS-PATH 属性案例.doc_第4页
全文预览已结束

下载本文档

版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领

文档简介

操纵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. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

最新文档

评论

0/150

提交评论