非等价负载均衡
原创
©著作权归作者所有:来自51CTO博客作者davidsergent的原创作品,请联系作者获取转载授权,否则将追究法律责任
目的:
让5.5.5 .0/24到4.4.4.0/24路由:R5-R2-R1-R4
让25.0.0.0/24到4.4.4 .0/24路由:R5-R2-R3-R4
因为默认状态下跌幅:R5-R2-R1-R4
第一步:全网互通
R5#traceroute
Protocol [ip]:
Target IP address: 4.4.4 .4
Source address: 5.5.5 .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 4.4.4 .4
1 25.0.0.2 168 msec 216 msec 144 msec
2 12.0.0 .1
240 msec 216 msec 360 msec
3 14.0.0 .4
456 msec 576 msec *
R5#traceroute
Protocol [ip]:
Target IP address: 4.4.4 .4
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 4.4.4 .4
1 25.0.0.2 144 msec
120 msec
2 12.0.0 .1
216 msec 264 msec 216 msec
3 14.0.0 .4
444 msec * 392 msec
第二步:用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-hop
23.0.0 .3
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-hop 23.0.0 .3
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: 4.4.4 .4
Source address: 5.5.5 .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 4.4.4 .4
1 25.0.0.2 136 msec 132 msec 156 msec
2 12.0.0 .1
288 msec 288 msec 216 msec
3 14.0.0 .4
408 msec * 480 msec
R5#traceroute
Protocol [ip]:
Target IP address: 4.4.4 .4
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 4.4.4 .4
1 25.0.0.2 216 msec 144 msec 144 msec
2 23.0.0 .3
216 msec 264 msec 312 msec
3 34.0.0.4 384 msec * 456 msec
下一篇:建立BGP互连
提问和评论都可以,用心的回复会被更多人看到
评论
发布评论
相关文章
-
非你所想:eigrp非等价负载均衡
eigrp的非等价负载均衡。修正你的不准确认知
职场 路由 eigrp 休闲 不等价负载均衡 -
TCP/IP 6.4.2 非等价负载均衡
EIGRP非等价负载均衡
EIGRP非等价负载均衡 -
CCNP(BSCI)实验:配置EIGRP等价负载均衡扣非等价负载
配置EIGRP等价负载均衡扣非等价负载
配置EIGRP等价负载均衡扣非等价负载