现有两台出口设备A.B都接到核心,172.168.10.0段从A设备出,192.168.20.0段从B设备出,从核心到出口的路由该怎么写?
(0)
最佳答案
#
vlan 1
#
vlan 10
#
vlan 20
#
interface Vlan-interface10
ip address 192.168.10.1 255.255.255.0
#
interface Vlan-interface20
ip address 192.168.20.1 255.255.255.0
#
nqa entry admin 2
type icmp-echo
destination ip 192.168.1.2
frequency 1000
next-hop ip 192.168.1.2
reaction 1 checked-element probe-fail threshold-type consecutive 3 action-type trigger-only
source ip 192.168.1.1
#
nqa entry admin 3
type icmp-echo
destination ip 192.168.1.3
frequency 1000
next-hop ip 192.168.1.3
reaction 1 checked-element probe-fail threshold-type consecutive 3 action-type trigger-only
source ip 192.168.1.1
nqa schedule admin 2 start-time now lifetime forever
nqa schedule admin 3 start-time now lifetime forever
#
track 2 nqa entry admin 2 reaction 1
track 3 nqa entry admin 3 reaction 1
#
acl advanced 3000
description 内部互通
rule 10 permit ip source 192.168.0.0 0.0.255.255 destination 192.168.0.0 0.0.255.255
#
acl advanced 3010
description out-router-A-1.2
rule 10 permit ip source 192.168.10.0 0.0.0.255
#
acl advanced 3020
description out-router-B-1.3
rule 10 permit ip source 192.168.20.0 0.0.0.255
#
policy-based-route pbr permit node 5
if-match acl 3000
#
policy-based-route pbr permit node 10
if-match acl 3010
apply next-hop 192.168.1.2 track 2 //源网段192.168.10.0访问任何目标网段的数据优先走1.2出口
apply next-hop 192.168.1.3 track 3 //当192.168.1.2出口挂机后,自动切换到备用链路1.3出口
#
policy-based-route pbr permit node 20
if-match acl 3020
apply next-hop 192.168.1.3 track 3 //源网段192.168.20.0访问任何目标网段的数据优先走1.3出口
apply next-hop 192.168.1.2 track 2 //当192.168.1.3出口挂机后,自动切换到备用链路1.2出口
#
interface Vlan-interface1
ip address 192.168.1.1 255.255.255.0
ip policy-based-route pbr
#
(0)
暂无评论
亲~登录后才可以操作哦!
确定你的邮箱还未认证,请认证邮箱或绑定手机后进行当前操作
举报
×
侵犯我的权益
×
侵犯了我企业的权益
×
抄袭了我的内容
×
原文链接或出处
诽谤我
×
对根叔社区有害的内容
×
不规范转载
×
举报说明
暂无评论