Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

 
本页内容
 

示例:配置静态 PPPoE MLPPP 订阅者

此示例说明如何为已终止和隧道用户配置静态以太网点对点协议 (PPPoE) MLPPP。

要求

此示例使用以下硬件和软件组件:

  • 安装了 MPC2 的 MX 系列

  • Junos OS 13.3 或更高版本

在为已终止和隧道订阅者配置静态 PPPoE MLPPP 之前,请确保您已:

概述

一个 MLPPP 订阅者由两个 IFL(逻辑接口)、一个成员链路和一个捆绑包组成。对于静态 MLPPP 订阅者,您可以手动配置成员链路和捆绑 IFL。使用 family mlppp 语句配置订阅者接口后,在成员链路 IFL 可以启动 LCP(链路控制协议)协商 PPPoE 会话之前,还必须完全配置成员链路的捆绑 IFL。 图 1 显示了不同类型的流量如何遍历 MX 系列终止 PPPoE 会话的网络。

拓扑学

图 1:在 MX 系列 PPP and MLPPP Traffic Terminated at MX Series终止的 PPP 和 MLPPP 流量

显示了以下两个域在 MX 系列上终止流量:

  • PPP 域 — 包含数据和语音流量

  • MLPPP 域 — 仅包含数据流量

配置

要为已终止和隧道订阅者配置静态 PPPoE MLPPP,请执行以下任务:

CLI 快速配置

要快速配置此示例,请复制以下命令,将其粘贴到文本文件中,删除所有换行符,更改详细信息,以便与网络配置匹配,然后将命令复制并粘贴到层 [edit] 级的 CLI 中。

配置静态 pp0 成员链路 IFL

分步过程

下面的示例要求您在各个配置层级中进行导航。

要配置静态 PPPoE 成员链路,请使用语 family mlppp 句指定静态捆绑包。以下底层接口支持 PPPoE 会话:以太网接口、静态和动态 VLAN、通过以太网接口的 VLAN 多路分离 (demux) 和通过聚合以太网接口的 VLAN 多路分离。

您还必须在pp0接口中为隧道订阅者配置family inet语句。该family inet语句允许安装 L2TP 长路由,并支持查找引擎将控制数据包引导至路由引擎。

以下示例说明如何通过静态 VLAN 配置 pp0 成员链路 IFL 以支持以下不同类型的订阅者:

  • si-1/0/0.1—已终止和隧道的 PPP 和 MLPPP 订阅者均可成功登录。

  • si-1/0/0.2—只有已终止的 MLPPP 订阅者才能成功登录。

  • si-1/0/0.3—已终止和隧道的 MLPPP 订阅者可以成功登录。

  1. 为 PPPoE 会话创建千兆以太网底层接口, ge-3/0/0并启用 VLAN 标记。

    [edit interfaces]user@host# set ge-3/0/0 vlan-tagging

  2. ge-3/0/0对于接口,为三个 VLAN 配置以太网 PPP 封装。

    [edit interfaces ge-3/0/0]user@host# set unit 1 encapsulation ppp-over-ether vlan-id 1user@host# set unit 2 encapsulation ppp-over-ether vlan-id 2user@host#set unit 3 encapsulation ppp-over-ether vlan-id 3

  3. 配置动态 PPPoE pp0 用户接口以支持 PPPoE 会话。

    [edit interfaces]user@host# set pp0

  4. 配置三个逻辑接口中的第一个。

    分步过程
    1. pp0 MX 系列上的用户接口配置第一个逻辑接口,并为激活值设置 30 秒的间隔。

      [edit interfaces pp0]user@host# set unit 1 keepalives interval 30

    2. 为动态配置文件中的动态 PPPoE 逻辑接口配置底层接口 ge-3/0/0.1 和 PPPoE 服务器模式。

      [edit interfaces pp0 unit 1]user@host# set pppoe-options underlying-interface ge-3/0/0.1 server

    3. 在动态配置文件中配置特定于 PPP 的接口属性: papchapdynamic-profile 并将 设置为服务动态配置文件。

      注意:

      在 PPP 中协商链路控制协议 (LCP) 时,将应用动态配置文件。

      [edit interfaces pp0 unit 1]user@host# set ppp-options pap chap dynamic-profile pp0-l2l3-service prof

    4. 使用语 family mlppp 句为 MLPPP 订阅者的 PPPoE 成员链路配置静态捆绑包。

      注意:

      family mlppp 语句确定从底层接口传入的用户是否支持 MLPPP。

      [edit interfaces pp0 unit 1]user@host# set family mlppp bundle si-1/0/0.1

    5. family inet为 PPP 用户、隧道 PPP 和 MLPPP 用户所需的协议家族配置语句和未编号地址。

      [edit interfaces pp0 unit 1]user@host# set family inet unnumbered-address lo0.0

    6. (选答)启用 family inet6 对 PPP 和 MLPPP 订阅者的混合模式支持的语句和地址。

      [edit interfaces pp0 unit 1]user@host# set family inet6 address 2001:db8:204::1:1:2/64

  5. 配置三个逻辑接口中的第二个。

    分步过程
    1. pp0 MX 系列上的用户接口配置第二个逻辑接口,并为激活值设置 30 秒的间隔。

      [edit interfaces pp0]user@host# set unit 2 keepalives interval 30

    2. 为动态配置文件中的动态 PPPoE 逻辑接口配置底层接口 ge-3/0/0.2 和 PPPoE 服务器模式。

      [edit interfaces pp0 unit 2]user@host# set pppoe-options underlying interface ge-3/0/0.2 server

    3. 在动态配置文件中配置特定于 PPP 的接口属性: pap,并将 设置为 dynamic-profile 服务动态配置文件。

      注意:

      在 PPP 中协商链路控制协议 (LCP) 时,将应用动态配置文件。

      [edit interfaces pp0 unit 2]user@host# set ppp-options pap dynamic-profile pp0-l2l3-service prof

    4. 使用语 family mlppp 句为 MLPPP 订阅者的 PPPoE 成员链路配置静态捆绑包。

      注意:

      family mlppp 语句确定从底层接口传入的用户是否支持 MLPPP。

      [edit interfaces pp0 unit 2]user@host# set family mlppp bundle si-1/0/0.2

  6. 配置三个逻辑接口中的最后一个。

    分步过程
    1. pp0 MX 系列上的用户接口配置第三个逻辑接口,并为激活值设置 30 秒的间隔。

      [edit interfaces pp0]user@host# set unit 3 keepalives interval 30

    2. 为动态配置文件中的动态 PPPoE 逻辑接口配置底层接口 ge-3/0/0.3 和 PPPoE 服务器模式。

      [edit interfaces pp0 unit 3]user@host# set pppoe-options underlying interface ge-3/0/0.3 server

    3. 在动态配置文件中配置特定于 PPP 的接口属性: papchapdynamic-profile 并将 设置为服务动态配置文件。

      注意:

      在 PPP 中协商链路控制协议 (LCP) 时,将应用动态配置文件。

      [edit interfaces pp0 unit 3]user@host# set ppp-options pap chap dynamic-profile pp0-l2l3-service prof

    4. 使用语 family mlppp 句为 MLPPP 订阅者的 PPPoE 成员链路配置静态捆绑包。

      注意:

      family mlppp 语句确定从底层接口传入的用户是否支持 MLPPP。

      [edit interfaces pp0 unit 3]user@host# set family mlppp bundle si-1/0/0.3

    5. 配置隧道订阅者。

      [edit interfaces pp0 unit 3]user@host# set family inet

  7. 如果完成设备配置,请提交配置。

配置静态内联服务 MLPPP 捆绑包 IFL

分步过程

下面的示例要求您在各个配置层级中进行导航。

要配置静态内联服务 (si) 接口 MLPPP 捆绑包 IFL,请在接口中si指定encapsulation multilink-ppp语句。si接口锚定捆绑接口。

您还可以设置以下可选 MLPPP 参数:MRRU、短序列和片段阈值。以下示例说明如何配置静态 si 接口 MLPPP 捆绑包 IFL:

  1. 创建单元为 100 的静态 (si) 接口 MLPPP 捆绑包 IFL si-5/0/0

    [edit interfaces]user@host# set si-5/0/0 unit 100

  2. 配置 encapsulation multilink-ppp 语句为接口启用 MLPPP 捆绑 si-5/0/0.100

    [edit interfaces si-5/0/0.100]user@host# set encapsulation multilink-ppp

  3. 为此示例配置以下 MLPPP 选项:

    • mrru- 指定 1500 到 4500 字节的最大接收重构单位值。

    • fragment-threshold- 适用于所有数据包和转发类,范围为 128 到 16,320 字节。

    • short-sequence- 确定 MLPPP 的报头格式。默认值为 long-sequence

    [edit interfaces si-5/0/0.100]user@host# set mrru 1500user@host# set fragment-threshold 640user@host#set short-sequence

  4. 通过配置ppp-options dynamic profile语句,启用对静态si接口 IFL 动态服务的支持。

    [edit interfaces si-5/0/0.100]user@host# set ppp-options dynamic-profile l2l3-service-prof

  5. 如果完成设备配置,请提交配置。

结果

在配置模式下,输入 show interfaces 命令以确认您的配置。如果输出未显示预期的配置,请重复此示例中的说明以更正配置。

验证

确认配置工作正常。

验证捆绑包 IFL 信息

目的

验证捆绑 IFL 信息对于 PPPoE MLPPP 订阅者是否正确。

行动

意义

由于实现的特殊性,与捆绑包关联的以下错误计数始终显示 0:数据包丢弃(字节)、分段丢弃(字节)、分段超时、缺少序列号、乱序序列号、超出范围的序列号、数据包数据缓冲区溢出和分段数据缓冲区溢出以及超出 MRRU。

验证成员链接 IFL 信息

目的

验证成员链路 IFL 信息对于订阅者是否正确。

行动

意义

逻辑接口 pp0.1073756923 已配置了 PPPoE、多链路束 si-1/0/0.1073756924和协议 mlppp

验证订阅者信息

目的

验证通过 PPPoE 的静态 MLPPP 的用户信息是否正确。

行动

意义

已为带接口 pp0.20的静态 PPPoE 和带接口 si-1/0/0.1020的静态 MLPPP 配置了用户信息。