pbr应用
版权声明:原创作品,允许转载,转载时请务必以超链接形式标明文章 原始出处 、作者信息和本声明。否则将追究法律责任。http://davidsergent.blog.51cto.com/195892/89654 |
![]() 目的:
让
让
第一步:网络互通(略)
第二步:在R3上配制PBR(policy-based routing)
R3(config)#acce
R3(config)#access-list 1 per
R3(config)#access-list 1 permit
R3(config)#access-list 1 permit
R3(config)#access-list 1 permit
R3(config)#acce
R3(config)#access-list 2 per
R3(config)#access-list 2 permit
R3(config)#access-list 2 permit
R3(config)#access-list 2 permit
R3(config)#
R3(config)#route
R3(config)#route-
R3(config)#route-map
R3(config)#route-map PBR permit 10
R3(config-route-map)#ma
R3(config-route-map)#match ip add 1
R3(config-route-map)#se
R3(config-route-map)#set ip nex
R3(config-route-map)#set ip next-hop
34.0.0.4
R3(config-route-map)#exit
R3(config)#route-map PBR permit 20
R3(config-route-map)#match ip add 2
R3(config-route-map)#set ip next-ho
R3(config-route-map)#exit
R3(config)#route-map PBR permit 30
R3(config-route-map)#exit
R3(config)#int s 2/1
R3(config-if)#ip pol
R3(config-if)#ip policy ro
R3(config-if)#ip policy route-map PBR
R3(config-if)#EXIT
R3(config)#int s 2/2
R3(config-if)#ip policy route-map PBR
R3(config-if)#end
R3#
第三步:使用traceroute
命令进行测试
R3#traceroute
Protocol [ip]:
Target IP address:
Source address:
Numeric display [n]:
Timeout in seconds [3]:
Probe count [3]:
Minimum Time to Live [1]:
Maximum Time to Live [30]:
Port Number [33434]:
Loose, Strict, Record, Timestamp,
Verbose[none]:
Type escape sequence to abort.
Tracing the route to
1 34.0.0.4 168 msec 144 msec 96 msec
2
R3#tr
R3#traceroute
Protocol [ip]:
Target IP address:
Source address:
Numeric display [n]:
Timeout in seconds [3]:
Probe count [3]:
Minimum Time to Live [1]:
Maximum Time to Live [30]:
Port Number [33434]:
Loose, Strict, Record, Timestamp,
Verbose[none]:
Type escape sequence to abort.
Tracing the route to
1 34.0.0.4 120 msec 136 msec 96 msec
2
R3#
R3#traceroute
Protocol [ip]:
Target IP address:
Source address:
Numeric display [n]:
Timeout in seconds [3]:
Probe count [3]:
Minimum Time to Live [1]:
Maximum Time to Live
[30]:
Port Number [33434]:
Loose, Strict, Record,
Timestamp, Verbose[none]:
Type escape sequence to
abort.
Tracing the route to
1 34.0.0.4 120 msec 120 msec 72 msec
2
R3#tr
R3#traceroute
Protocol [ip]:
Target IP address:
Source address:
Numeric display [n]:
Timeout in seconds [3]:
Probe count [3]:
Minimum Time to Live
[1]:
Maximum Time to Live
[30]:
Port Number [33434]:
Loose, Strict, Record,
Timestamp, Verbose[none]:
Type escape sequence to
abort.
Tracing the route to
1 34.0.0.4 92 msec 72 msec 120 msec
2
R3# 本文出自 “davidsergent” 博客,请务必保留此出处http://davidsergent.blog.51cto.com/195892/89654 本文出自 51CTO.COM技术博客 |



davidsergent
博客统计信息
热门文章
最新评论
友情链接