非等价负载均衡
版权声明:原创作品,允许转载,转载时请务必以超链接形式标明文章 原始出处 、作者信息和本声明。否则将追究法律责任。http://davidsergent.blog.51cto.com/195892/89629 |
![]() 目的:
让
让25.0.0.0/24到
因为默认状态下跌幅:R5-R2-R1-R4
第一步:全网互通
R5#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 25.0.0.2 168 msec 216 msec 144 msec
2
3
R5#traceroute
Protocol [ip]:
Target IP address:
Source address: 25.0.0.5
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 25.0.0.2 144 msec
120 msec
2
3
第二步:用route-map在R2上做非等价负载均衡
R2(config)#access-list 1 permit 25.0.0.5
R2(config)#route-map PBR permit 10
R2(config-route-map)#match ip add 1
R2(config-route-map)#set ip next-ho
R2(config)#route-map PBR permit 20
R2(config)#
R2(config)#
R2(config)#int f 0/0
R2(config-if)#ip policy route-map PBR
第三步:在R2是查看配制
R2#sh ip policy
Interface Route map
Fa0/0 PBR
R2#sh access-lists
Standard IP access list 1
10 permit 25.0.0.5
R2#sh route-map
route-map PBR, permit, sequence 10
Match clauses:
ip address (access-lists): 1
Set
clauses:
ip next-ho
Policy routing matches: 0 packets, 0 bytes
route-map PBR, permit, sequence 20
Match clauses:
Set
clauses:
Policy routing matches: 0 packets, 0 bytes
第四步:用traceroute命令进行测试
R5#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 25.0.0.2 136 msec 132 msec 156 msec
2
3
R5#traceroute
Protocol [ip]:
Target IP address:
Source address: 25.0.0.5
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 25.0.0.2 216 msec 144 msec 144 msec
2
3 34.0.0.4 384 msec * 456 msec
本文出自 “davidsergent” 博客,请务必保留此出处http://davidsergent.blog.51cto.com/195892/89629 本文出自 51CTO.COM技术博客 |



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