频道栏目
首页 > 资讯 > 路由器 > 正文

策略路由

11-07-21        来源:[db:作者]  
收藏   我要投稿

策略路由:route-map来实现:(策略路由优于路由策略)
实验拓扑:
实验需求:企业内网分为192.168.100.0和192.168.200.0两个网络。实现192.168.100.0网段数据流通过ISP1进入互联网;现192.168.200.0数据流通过ISP3进入互联网。

clip_image002

实验代码如下:
R1:
enable
config t
hostname ISP1
int s1/1
ip add 192.168.12.1 255.255.255.0
no shutdown
exit
int fa0/0
ip add 192.168.123.1 255.255.255.0
no shutdown
exit
R2:
enable
config t
hostname qiye
int s1/0
ip add 192.168.12.2 255.255.255.0
no shutdown
exit
int s1/1
ip add 192.168.23.2 255.255.255.0
no shutdown
exit
int lo100
ip add 192.168.100.1 255.255.255.0
no shutdown
int lo100
ip add 192.168.200.1 255.255.255.0
no shutdown
exit
ip route 0.0.0.0 0.0.0.0 s1/0
ip route 0.0.0.0 0.0.0.0 s1/1
access-list 1 permit 192.168.100.0 0.0.0.255
access-list 2 permit 192.168.200.0 0.0.0.255
route-map xiaoxiao permit 10
match ip add 1
set default int s1/0
route-map xiaoxiao permit 20
match ip add 2
set default int s1/1
int lo100
ip policy route-map xiaoxiao
exit
int lo200
ip policy route-map xiaoxiao
end
R3:
enable
config t
hostname ISP3
int s1/0
ip add 192.168.23.3 255.255.255.0
no shutdown
exit
int fa0/0
ip add 192.168.123.3 255.255.255.0
no shutdown
end
实验现象:

clip_image004

相关TAG标签
上一篇:GRE_over_IPsec配置
下一篇:多协议路由重发布
相关文章
图文推荐

关于我们 | 联系我们 | 广告服务 | 投资合作 | 版权申明 | 在线帮助 | 网站地图 | 作品发布 | Vip技术培训 | 举报中心

版权所有: 红黑联盟--致力于做实用的IT技术学习网站