Cisco 3640策略路由配置

发布者:上海IT外包来源:http://www.lanmon.net点击数:3876

策略路由是一种路由规划,它可以使数据包按照用户指定的策略进行转发。对于某些管理目的,如QoS需求或VPN拓扑结构,要求某些路由必须经过特定的路径,就可以使用策略路由。例如,一个策略可以指定从某个网络发出的数据包只能转发到某个特定的接口。

策略路由使用rout maps 实现的,它和访问控制列表很相似。下面是一个Cisco 3640来实现的策略路由的例子:


3640#show run
Current configuration:
!
version 12.0
service timestamps debug uptime
service timestamps log uptime
no service password-encryption
!
hostname 3640
!
!
ip subnet-zeroR>!
!
!
!
!
interface Ethernet0/0
ip address 172.16.0.1 255.255.255.0
no ip redirects
no ip directed-broadcast
standby 1 priority 120 preempt /*双机热备配置*/
standby 1 ip 172.16.0.100
standby 1 track Serial0/0 50 /*双机热备配置*/
interface Serial0/0
ip address 10.10.10.1 255.255.255.0
no ip directed-broadcast
encapsulation ppp
no ip mroute-cache
no fair-queue
!
interface Serial0/1
ip address 10.10.10.10 255.255.255.0
no ip directed-broadcast
encapsulation ppp
no ip mroute-cache
no fair-queue
!
interface Serial1/0
no ip address
no ip directed-broadcast
shutdown
!
interface Serial1/1
no ip address
no ip directed-broadcast
shutdown
!
interface Serial1/2
no ip address
no ip directed-broadcast
shutdown
priority-group 5 /*CQ 5 配置应用*/ CQ:定制队列
!
interface Serial1/3
no ip address
no ip directed-broadcast
shutdown
priority-group 2 /*PQ 2 配置应用*/ PQ:优先级队列
!
interface Serial3/0
no ip address
no ip directed-broadcast
ip policy route-map mail /*策略路由mail应用*/
shutdown
!
interface Serial3/1
no ip address
no ip directed-broadcast
ip route-cache policy /*启动策略路由mytest的快速转发*/
ip policy route-map mytest /*策略路由mytest应用*/
shutdown
no fair-queue
!
interface Serial3/2
no ip address
no ip directed-broadcast
shutdown
!


1998年,蓝色学苑www.bluestudy.net创立了,我们翻译了大量路由交换的资料和调试案例,启蒙了大批网络技术爱好者。我们的创始人也在1999年通过CCIE认证,成为国内为数不多的老牌CCIE之一。2002年,蓝色学苑骨干成员成立蓝盟www.lanmon.com 专注于网络维护、网管外包、电脑维护、服务器升级、网络改造、系统集成、网络咨询、服务管理、运维咨询、ITIL培训、ITSS咨询等一站式IT外包服务。我们拥有近200名工程师,正在为近500家客户提供“一站式” 的IT外包服务。网址:www.lanmon.net 官方微博:http://weibo.com/lanmon2012 咨询电话:4008200159
IT外包
>
400-635-8089
立即
咨询
电话咨询
服务热线
400-635-8089
微信咨询
微信咨询
微信咨询
公众号
公众号
公众号
返回顶部