使用流监控配置服务接口冗余
AS、多服务 PIC 和多服务 DPC 上的主动监控服务配置支持冗余。要配置冗余,请指定一个冗余服务 PIC (rsp) 接口,其中主 AS 或多服务 PIC 处于活动状态,辅助 PIC 处于备用状态。如果主 PIC 发生故障,辅助 PIC 将变为活动状态,并且所有服务处理都将转移到该 PIC 上。如果主 PIC 已恢复,它将保持待机状态,不会抢占辅助 PIC;您需要手动将服务还原到主 PIC。要确定哪个 PIC 当前处于活动状态, show interfaces redundancy 请发出命令。
注意:
在流监控配置中,唯一支持的服务选项是 热备用,其中一个备份 PIC 支持多个工作 PIC。无法保证恢复时间,因为在检测到故障后,必须在备份 PIC 上完全恢复配置。但是,配置将保留在新的活动 PIC 上并提供。
与其他支持热备用的服务一样,您可以发出 request interfaces (revert | switchover) 命令在主流监控接口和辅助流监控接口之间手动切换。
有关详细信息,请参阅 配置 AS 或多服务 PIC 冗余。有关作模式命令的信息,请参阅 CLI 资源管理器。
下面是配置示例。
interface {
rsp0 {
redundancy-options {
primary sp-0/0/0;
secondary sp-1/3/0;
}
unit 0 {
family inet;
}
}
}
interface {
ge-0/2/0 {
unit 0 {
family inet {
filter {
input as_sample;
}
}
address 10.58.255.49/28;
}
}
}
forwarding-options {
sampling {
instance instance1 { # named instances of sampling parameters
input {
rate 1;
run-length 0;
max-packets-per-second 65535;
}
family inet {
output {
flow-server 10.10.10.2 {
port 5000;
version 5;
}
flow-active-timeout 60;
interface rsp0 {
source-address 10.10.10.1;
}
}
}
}
}
}
firewall {
filter as_sample {
term t1 {
then {
sample;
accept;
}
}
}
}