2024年4月2日发(作者:)

策略路由的配置详解和实例

Routemap和ACL很类似,它可以用于路由的再发布和策略路由,还经常使用在BGP中.策略

路由(policyroute)实际上是复杂的静态路由,静态路由是基于数据包的目标地址并转发到指定的

下一跳路由器,策略路由还利用和扩展IPACL链接,这样就可以提供更多功能的过滤和分类。

策略路由配置实例:

ROUTEA:

Verion11.2

Noerviceudp-mall-erver

Noervicetcp-mall-erver

HotnamerouterA

Interfaceethernet0

Ipaddre192.1.1.1255.255.255.0econdary

Ipaddre192.1.1.2255.255.255.0econdary

Ipaddre192.1.1.3255.255.255.0econdary

Ipaddre192.1.1.10255.255.255.0

Ippolicyroute-maplab1

//策略路由应用于E0口

interfaceerial0

ipaddr150.1.1.1255.255.255.0

interfaceerial1

ipaddr151.1.1.1255.255.255.0

routerrip

network192.1.1.0

network150.1.0.0

network151.1.0.0

iplocalpolicyroute-maplab1

//使路由器策略路由本地产生报文