限制底层接口上的最大 PPPoE 会话数
您可以限制路由器可以在 PPPoE 底层接口上激活的并发静态或动态 PPPoE 逻辑接口(会话)数量,或者限制路由器可以使用 PPPoE 服务名称表中的特定服务条目建立的活动静态或动态 PPPoE 会话数。
要配置 PPPoE 最大会话限制:
- 指定您希望在底层接口上配置 PPPoE 特定的选项:
对于 VLAN 多路分离(多路分离)逻辑接口动态配置文件中的 PPPoE 系列:
[edit dynamic-profiles profile-name interfaces demux0 unit logical-unit-number] user@host# edit family pppoe
对于动态配置文件中的 PPPoE 系列:
[edit dynamic-profiles profile-name interfaces interface-name unit logical-unit-number] user@host# edit family pppoe
对于动态配置文件中的 PPPoE 底层接口:
[edit dynamic-profiles profile-name interfaces interface-name unit logical-unit-number] user@host# edit pppoe-underlying-options
对于底层接口上的 PPPoE 系列:
[edit interfaces interface-name unit logical-unit-number] user@host# edit family pppoe
对于采用 PPPoE 封装的底层接口:
[edit interfaces interface-name unit logical-unit-number] user@host# edit pppoe-underlying-options
对于使用 PPPoE 服务名称表中的特定服务条目建立的底层接口:
[edit protocols pppoe service-name-tables table-name] user@host# edit service service-name
- 配置路由器可通过以下任一方式在底层接口上激活的最大并发 PPPoE 会话数:
要按接口配置最大并发 PPPoE 会话数(从 1 到路由器的平台特定默认值),请使用
max-sessions
以下语句:[edit interfaces interface-name unit logical-unit-number pppoe-underlying-options] user@host# set max-sessions number
要配置每个订阅者的最大并发 PPPoE 会话数,请使用 RADIUS 在“最大客户端-每接口数”中返回的值瞻博网络供应商特定的属性 (VSA) [26-143]。默认情况下,RADIUS 在“每个接口的最大客户端数 VSA”中返回的 PPPoE 最大会话值优先于使用
max-sessions
语句配置的 PPPoE 最大会话值。
- (可选)若要将底层接口上的 PPPoE 最大会话值还原到使用
max-sessions
语句的 CLI 中配置的值,请将路由器配置为忽略“最大客户端-每接口 VSA”中的 RADIUS 返回的值。[edit interfaces interface-name unit logical-unit-number pppoe-underlying-options] user@host# set max-sessions-vsa-ignore
注意:您可以在与
max-sessions-vsa-ignore
语句相同的层级max-sessions
发布语句,但层次结构级别除外[edit protocols pppoe service-name-tables table-name service service-name]
。