acl advanced 3000
rule 0 permit ip source X.X.X.X 0.0.0.255 //定义匹配的源ip(内网地址)
#
acl advanced 3001
rule 0 permit ip source X.X.X.X 0.0.0.255 //定义匹配的源ip(内网地址)
#
acl advanced 3002
rule 0 permit ip source X.X.X.X 0.0.0.255 //定义匹配的源ip(内网地址)
#
policy-based-route pbr1 permit node 0
if-match acl 3000
apply next-hop X.X.X.X //下一跳重定向外网
#
policy-based-route pbr1 permit node 1
if-match acl 3001
apply next-hop X.X.X.X //下一跳重定向外网
#
policy-based-route pbr1 permit node 2
if-match acl 3002
apply next-hop X.X.X.X //下一跳重定向外网
#
quit
interface gx/x/x
ip policy-based-route pbr1 应用到内网入方向的接口上
display ip policy-based-route policy pbr1 查看到当前策略路由配置
暂无评论