那里有v7 多条拔号宽带上网,做负载分担,因为拔号不通,但是端口还是up,需要检测上行链路的,完整配置案例
(0)
最佳答案
我直接给你做一个吧,楼上那个槽点太多了。
这东西原理很简单,就是路由绑track,track联动nqa。
实际操作的时候,可以把我配的那个3.3.3.3和4.4.4.4换成公网dns 114.114.114.114。如果你们那里公网dns禁ping或ping不稳定,可以把nqa的icmp测试改成dns解析测试。
<R1>
sysname R1
#
interface GigabitEthernet0/0
ip address 10.0.12.1 255.255.255.0
#
ip route-static 0.0.0.0 0 10.0.12.2
<R2>
#
sysname R2
#
track 3 nqa entry test3 route3 reaction 1
#
track 4 nqa entry test4 route4 reaction 1
#
policy-based-route test permit node 10
if-match acl 3000
apply output-interface Dialer4 track 4
#
nqa entry test3 route3
type icmp-echo
destination ip 3.3.3.3
frequency 3000
out interface Dialer3
probe timeout 1000
reaction 1 checked-element probe-fail threshold-type consecutive 3 action-type trigger-only
#
nqa entry test4 route4
type icmp-echo
destination ip 4.4.4.4
frequency 3000
out interface Dialer4
probe timeout 1000
reaction 1 checked-element probe-fail threshold-type consecutive 3 action-type trigger-only
#
nqa schedule test3 route3 start-time now lifetime forever
nqa schedule test4 route4 start-time now lifetime forever
#
interface Dialer3
ppp pap local-user test3 password simple 1234qwerasdfzxcv
dialer bundle enable
dialer timer idle 0
dialer timer autodial 60
ip address ppp-negotiate
nat outbound
#
interface Dialer4
ppp pap local-user test4 password simple 4321rewqfdsavcxz
dialer bundle enable
dialer timer idle 0
dialer timer autodial 60
ip address ppp-negotiate
nat outbound
#
interface GigabitEthernet0/0
ip address 10.0.12.2 255.255.255.0
ip policy-based-route test
#
interface GigabitEthernet0/1
pppoe-client dial-bundle-number 3
#
interface GigabitEthernet0/2
pppoe-client dial-bundle-number 4
#
ip route-static 0.0.0.0 0 Dialer3 track 3
#
acl advanced 3000
rule 0 permit ip source 10.0.12.1 0
<R3>
sysname R3
#
interface Virtual-Template3
ppp authentication-mode pap domain test
remote address 10.0.23.2
ip address 10.0.23.3 255.255.255.0
#
interface LoopBack0
ip address 3.3.3.3 255.255.255.255
#
interface GigabitEthernet0/0
pppoe-server bind virtual-template 3
#
domain test
authentication ppp local
authorization ppp local
accounting ppp local
#
local-user test3 class network
password simple 1234qwerasdfzxcv
service-type ppp
authorization-attribute user-role network-operator
<R4>
sysname R4
#
interface Virtual-Template4
ppp authentication-mode pap domain test
remote address 10.0.24.2
ip address 10.0.24.4 255.255.255.0
#
interface LoopBack0
ip address 4.4.4.4 255.255.255.255
#
interface GigabitEthernet0/0
pppoe-server bind virtual-template 4
#
domain test
authentication ppp local
authorization ppp local
accounting ppp local
#
local-user test4 class network
password simple 4321rewqfdsavcxz
service-type ppp
authorization-attribute user-role network-operator
(0)
要实现拨号口进行切换,需要起一个loopback地址作为探测源,结合本地策略路由来实现联动,举例案例配置如下:
#
interface LoopBack0
ip address 3.3.3.3 255.255.255.0
#
#
acl basic 2000
rule 0 permit source 3.3.3.3 0
#
#
policy-based-route test permit node 10
if-match acl 2000
apply output-interface Dialer1
#
#
ip local policy-based-route test
#
#
nqa entry admin admin
type icmp-echo
destination ip 1.1.1.10
frequency 100
reaction 1 checked-element probe-fail threshold-type consecutive 5 action-type trigger-only
source ip 3.3.3.3
#
nqa schedule admin admin start-time now lifetime forever
#
track 1 nqa entry admin admin reaction 1
#
(0)
暂无评论
亲~登录后才可以操作哦!
确定你的邮箱还未认证,请认证邮箱或绑定手机后进行当前操作
举报
×
侵犯我的权益
×
侵犯了我企业的权益
×
抄袭了我的内容
×
原文链接或出处
诽谤我
×
对根叔社区有害的内容
×
不规范转载
×
举报说明
暂无评论