欢迎来到天天文库
浏览记录
ID:1772786
大小:40.24 KB
页数:6页
时间:2017-11-13
《bgp本地优先属性详解配置》由会员上传分享,免费在线阅读,更多相关内容在教育资源-天天文库。
1、Local-pre属性(默认100) BGP路由器通过不同的IBGP得到达到目的地址的多条路径,通过Local-pre属性的调整控制流量方向。(环路可能产生AS—Path可避免)全局调整—调整全部经过的流量Defaultlocal-preference200(BGP进程中)局部调整—调整特定的流量 拓扑: 实验目的:局部调整,r1到192.168.1.100的路由路径的改变. 配置:r1dis current-configuration #sysname r1#interface Serial0/0/1
2、 link-protocol ppp undo shutdown ip address 202.1.1.1 255.255.255.252#interface Serial0/0/2 link-protocol ppp undo shutdown ip address 202.1.1.5 255.255.255.252#interface LoopBack0 ip address 1.1.1.1 255.255.255.255#interface LoopBack100#bgp 100 router-id 1.1.
3、1.1 peer 2.2.2.2 as-number 100 peer 2.2.2.2 connect-interface LoopBack0 peer 3.3.3.3 as-number 100 peer 3.3.3.3 connect-interface LoopBack0 # ipv4-family unicast undo synchronization import-route ospf 1 peer 2.2.2.2 enable peer 2.2.2.2 route-policy loca-pr
4、e import peer 3.3.3.3 enable#ospf 1 import-route bgp area 0.0.0.0 network 1.1.1.1 0.0.0.0 network 202.1.1.0 0.0.0.3 network 202.1.1.4 0.0.0.3#route-policy loca-pre permit node 10 if-match ip-prefix loca-pre apply local-preference 200#route-policy loca-pre
5、permit node 20#ip ip-prefix loca-pre index 10 permit 192.168.1.100 32#user-interface con 0user-interface vty 0 4user-interface vty 16 20# r2dis current-configuration #sysname r2#interface Serial0/0/0 link-protocol ppp undo shutdown ip address 202.1.1.9 255
6、.255.255.252#interface Serial0/0/1 link-protocol ppp undo shutdown ip address 202.1.1.2 255.255.255.252#interface LoopBack0 ip address 2.2.2.2 255.255.255.255#interface LoopBack100#bgp 100 peer 1.1.1.1 as-number 100 peer 1.1.1.1 connect-interface LoopBack0 pee
7、r 3.3.3.3 as-number 100 peer 3.3.3.3 connect-interface LoopBack0 # ipv4-family unicast undo synchronization import-route ospf 1 peer 1.1.1.1 enable peer 3.3.3.3 enable#ospf 1 import-route bgp area 0.0.0.0 network 2.2.2.2 0.0.0.0 network 202.1.1.0 0.0.0.3
8、 network 202.1.1.8 0.0.0.3 network 192.168.1.1 0.0.0.0 network 192.168.1.100 0.0.0.0# r3dis current-configuration#sysname r3#interface Serial0/0/0 link-protocol ppp und
此文档下载收益归作者所有