如何为新一代服务配置服务接口
要配置服务接口,请执行以下操作:
- 配置服务接口名称。
[edit] user@host# set interfaces interface-name
其中, interface-name 存在以下情况之一:
vms-slot-number//port-numberpic-number(用于 MX-SPC3 服务卡)
si-slot-number/pic-number/0 表示线卡 PFE(内联服务接口)
- 配置接口的单元和家族。
- 如果在接口服务集中使用服务接口:
[edit] user@host# set interfaces interface-name unit logical-unit-number family (inet | inet6)
- 如果您在下一跃点服务集中使用服务接口,请配置内部和外部接口单元:
[edit] user@host# set interfaces interface-name unit logical-unit-number family (inet | inet6) user@host# set interfaces interface-name unit logical-unit-number service-domain inside user@host# set interfaces interface-name unit logical-unit-number family (inet | inet6) user@host# set interfaces interface-name unit logical-unit-number service-domain outside
例如:
[edit] user@host# set interfaces vms-1/0/0 unit 100 family inet user@host# set interfaces vms-1/0/0 unit 100 service-domain inside user@host# set interfaces vms-1/0/0 unit 1000 family inet user@host# set interfaces vms-1/0/0 unit 1000 service-domain outside
- 如果在接口服务集中使用服务接口:
- 如果既未配置 NAT 也未
max-sessions-per-subscriber
配置[edit service-set service-set-name service-set-options]
层次结构级别的语句,如果要跟踪订阅者,请启用创建订阅者。[edit interfaces interface-name services-options] user@host# set enable-subscriber-analysis
- 配置服务接口的 CPU 资源限制。
[edit interfaces interface-name services-options session-limit] user@host# set cpu-load-threshold percentage
当 CPU 使用率超过该值(占可用 CPU 资源总数的百分比)时,系统会降低新会话的速率,以便现有会话不会受到 CPU 可用性低的影响。我们会持续监控 CPU 使用率,如果 CPU 使用率连续 5 秒保持在配置
cpu-load-threshold
值上方,则 Junos OS 会将配置edit interfaces interface-name services-options session-limit rate
的会话速率值降低 10%。重复此操作,直到 CPU 使用率下降到配置的限制。 - 配置服务卡上同时允许的最大会话数。
[edit interfaces interface-name services-options session-limit] user@host# set maximum number
如果将最大会话数指定为零,则表示配置无效。您必须为最大会话数指定一个高于零的值。
- 配置服务卡上每秒允许的最大新会话数。
[edit interfaces interface-name services-options session-limit] user@host# set rate rate