# 为每条PPPoE链路创建NQA检测
nqa entry admin pppoe1 # 检测第一条PPPoE
type icmp-echo
destination-ip 114.114.114.114 # 可靠的公网IP
frequency 1000 # 1秒检测一次
reaction 1 checked-element probe-fail threshold-type consecutive 3 # 连续3次失败判定为故障
nqa entry admin pppoe2 # 检测第二条PPPoE
type icmp-echo
destination-ip 114.114.115.115
frequency 1000
reaction 1 checked-element probe-fail threshold-type consecutive 3
# 同样配置pppoe3、pppoe4...
nqa schedule admin pppoe1 start-time now lifetime forever
nqa schedule admin pppoe2 start-time now lifetime forever
# 创建Track项关联NQA
track 1 nqa entry admin pppoe1 reaction 1
track 2 nqa entry admin pppoe2 reaction 1
track 3 nqa entry admin pppoe3 reaction 1
track 4 nqa entry admin pppoe4 reaction 1
# 配置按优先级排列的默认路由(非等价)
ip route-static 0.0.0.0 0 Dialer1 preference 10 track 1 # 主用
ip route-static 0.0.0.0 0 Dialer2 preference 20 track 2 # 备用1
ip route-static 0.0.0.0 0 Dialer3 preference 30 track 3 # 备用2
ip route-static 0.0.0.0 0 Dialer4 preference 40 track 4 # 备用3
# 创建VRRP组
interface Vlan-interface10
vrrp vrid 1 virtual-ip 192.168.1.1 # 虚拟网关
vrrp vrid 1 priority 120 # 主设备优先级
vrrp vrid 1 preempt-mode delay 5 # 抢占延迟
vrrp vrid 1 track 1 reduced 30 # 跟踪PPPoE1,故障时降优先级
# 备用设备配置
interface Vlan-interface10
vrrp vrid 1 virtual-ip 192.168.1.1
vrrp vrid 1 priority 100
# 创建ACL识别关键业务
acl advanced 3100
rule 5 permit ip destination 192.168.10.0 0.0.0.255 # 重要服务器网段
rule 10 permit tcp destination-port eq 5060 # VoIP信令
rule 15 permit tcp destination-port range 10000 20000 # 媒体端口
# 创建智能策略路由
policy-based-route smart-route permit node 10
if-match acl 3100
apply access-vpn-instance MAIN-VPN # 主用VPN实例
apply next-hop # 主用下一跳
policy-based-route smart-route permit node 20
if-match acl 3100
apply access-vpn-instance BACKUP-VPN # 备用VPN实例
apply next-hop track 1 negative # 主用故障时启用
# 创建路由策略,根据Track状态调整权重
route-policy pppoe-weight permit node 10
if-match track 1
apply cost 10
route-policy pppoe-weight permit node 20
if-match track 2
apply cost 20
# 应用路由策略
ip route-static 0.0.0.0 0 Dialer1 route-policy pppoe-weight
ip route-static 0.0.0.0 0 Dialer2 route-policy pppoe-weight
# 1. 基础接口配置
interface Dialer1
pppoe-client dial-bundle-number 1
ip address ppp-negotiate
nat outbound 2000
# 2. NQA检测配置
nqa entry admin pppoe1
type icmp-echo
destination-ip 223.5.5.5
frequency 2000
timeout 1000
reaction 1 checked-element probe-fail threshold-type consecutive 2
# 3. Track配置
track 1 nqa entry admin pppoe1 reaction 1
# 4. 优先级路由配置
ip route-static 0.0.0.0 0 Dialer1 preference 10 track 1
ip route-static 0.0.0.0 0 Dialer2 preference 20 track 2
ip route-static 0.0.0.0 0 Dialer3 preference 30 track 3
ip route-static 0.0.0.0 0 Dialer4 preference 40 track 4
# 5. 会话保持(减少切换时连接中断)
session fast-backup enable
nat session fast-backup enable
# 配置链路状态告警
snmp-agent trap enable
snmp-agent target-host trap address udp-domain 192.168.1.100 params securityname public
# 查看Track状态
display track all
# 查看NQA检测结果
display nqa result admin pppoe1
# 查看路由表
display ip routing-table
# 查看会话状态
display session table
亲~登录后才可以操作哦!
确定你的邮箱还未认证,请认证邮箱或绑定手机后进行当前操作
举报
×
侵犯我的权益
×
侵犯了我企业的权益
×
抄袭了我的内容
×
原文链接或出处
诽谤我
×
对根叔社区有害的内容
×
不规范转载
×
举报说明
暂无评论