首页 > 其他 > 详细

策略路由

时间:2018-04-02 11:08:19      阅读:253      评论:0      收藏:0      [点我收藏+]
要求
R1上面有两个环回1.1.1.1和1.1.2.1 ,R5上面有一个环回。第一个环回访问R5 的环回走R3,第二个环回访问R5的环回走R4
结果
R1#traceroute 5.5.5.5 source 1.1.1.1
Type escape sequence to abort.
Tracing the route to 5.5.5.5
VRF info: (vrf in name/id, vrf out name/id)
1 12.1.1.2 1 msec 1 msec 1 msec
2 23.1.1.3 2 msec 1 msec 1 msec
3 35.1.1.5 2 msec 3 msec
R1#traceroute 5.5.5.5 source 1.1.2.1
Type escape sequence to abort.
Tracing the route to 5.5.5.5
VRF info: (vrf in name/id, vrf out name/id)
1 12.1.1.2 1 msec 2 msec 1 msec
2 24.1.1.4 2 msec 2 msec 3 msec
3 45.1.1.5 2 msec
2 msec
配置
R2#show run | s route
ip policy route-map pbr
router eigrp 90
network 0.0.0.0
route-map pbr permit 10
match ip address 100
set interface Ethernet0/1
route-map pbr permit 20
match ip address 101
set ip next-hop 24.1.1.4
R2#show run | s route-map
R2#show run | s route-map
ip policy route-map pbr
route-map pbr permit 10
match ip address 100
set interface Ethernet0/1
route-map pbr permit 20
match ip address 101
set ip next-hop 24.1.1.4
R2#show access-lists
Extended IP access list 100
10 permit ip host 1.1.1.1 host 5.5.5.5 (15 matches)
Extended IP access list 101
10 permit ip host 1.1.2.1 host 5.5.5.5 (15 matches)技术分享图片

策略路由

原文:http://blog.51cto.com/13625527/2093699

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!