操纵bgp as-path 属性案例

上传人:kms****20 文档编号:40315713 上传时间:2018-05-25 格式:DOC 页数:4 大小:84KB
返回 下载 相关 举报
操纵bgp as-path 属性案例_第1页
第1页 / 共4页
操纵bgp as-path 属性案例_第2页
第2页 / 共4页
操纵bgp as-path 属性案例_第3页
第3页 / 共4页
操纵bgp as-path 属性案例_第4页
第4页 / 共4页
亲,该文档总共4页,全部预览完了,如果喜欢就下载吧!
资源描述

《操纵bgp as-path 属性案例》由会员分享,可在线阅读,更多相关《操纵bgp as-path 属性案例(4页珍藏版)》请在金锄头文库上搜索。

1、 操纵操纵 BGPBGP AS-PATHAS-PATH 属性案例属性案例BGP 总是优先选择具有最短 AS 路径的路由。本案例中,我们将配置 R1,将 1.0.0.0 通告给 R2、R3 之前预先添加两个额外的 AS 路径到 1.0.0.0 上 (AS300、AS400)具体配置如下: / r1 / int f2/0ip ad 192.1.1.1 255.255.255.0int f3/0ip ad 193.1.1.1 255.255.255.0int lo0ip ad 1.1.1.1 255.255.255.0int lo1ip ad 2.2.2.2 255.255.255.0router

2、bgp 100no synneighbor 192.1.1.2 remote-as 200neighbor 193.1.1.3 remote-as 200network 1.0.0.0network 1.0.0.0neighbor 193.1.1.3 route-map aspath outaccess-list 1 permit 1.0.0.0 0.255.255.255route-map aspath 10match ip ad 1set as-path prepend 300 400 route-map aspath 20/ r2 / int f2/0ip ad 192.1.1.2 25

3、5.255.255.0int f4/0ip ad 194.1.1.2 255.255.255.0router os 1netw 0.0.0.0 255.255.255.255 a 0passive-interface f2/0router bgp 200no synneighbor 192.1.1.1 remote-as 100neighbor 194.1.1.4 remote-as 200neighbor 195.1.1.3 remote-as 200neighbor 194.1.1.4 next-hop-self/ r3 / int f3/0ip ad 193.1.1.3 255.255.

4、255.0int f5/0ip ad 195.1.1.3 255.255.255.0router os 1netw 0.0.0.0 255.255.255.255 a 0passive-interface f3/0router bgp 200no synneighbor 193.1.1.1 remote-as 100neighbor 195.1.1.4 remote-as 200neighbor 195.1.1.4 next-hop-selfneighbor 194.1.1.2 remote-as 200/ r4 / int f4/0ip ad 194.1.1.4 255.255.255.0i

5、nt f5/0ip ad 195.1.1.4 255.255.255.0int lo0ip ad 4.4.4.4 255.255.255.0router os 1netw 0.0.0.0 255.255.255.255 a 0router bgp 200no synneighbor 194.1.1.2 remote-as 200neighbor 195.1.1.3 remote-as 200netw 4.0.0.0验证:r3#sh ip bNetwork Next Hop Metric LocPrf Weight Path *i1.0.0.0 192.1.1.1 0 100 0 100 i *

6、 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 ro B 1.0.0.0/8 200/0 via 192.1.1.1, 00:05:23 B 2.0.0.0/8 20/0 via 193.1.1.1, 00:05:234.0.0.0/8 is variably subnetted, 2 subnets, 2 masks O 4.4.4.4/32 110/65 via 195.1.1.4, 00:10:38, Serial5/0 B 4.0.0.0/8 200/0 via 195.1.1.4, 00:10:13C 193.1.1.0/24 is directly connected, Serial3/0 O 192.1.1.0/24 110/192 via 195.1.1.4, 00:10:38, Serial5/0 C 195.1.1.0/24 is directly connected, Serial5/0 O 194.1.1.0/24 110/128 via 195.1.1.4, 00:10:38, Serial5/0

展开阅读全文
相关资源
正为您匹配相似的精品文档
相关搜索

最新文档


当前位置:首页 > 生活休闲 > 科普知识

电脑版 |金锄头文库版权所有
经营许可证:蜀ICP备13022795号 | 川公网安备 51140202000112号