为底层接口配置 PPPoE 系列
介绍 PPPoE 封装及其限制。本文还介绍了“家族PPPoE”的介绍,该家族可以支持 IPv4 和 IPv6 等其他协议家族在底层接口上共存。
在物理接口上使用 PPPoE 封装,将接口专用于 PPPoE。PPPoE 不支持该接口上的其他协议家族。在同一接口上配置 IPv4 with PPPoE 和 IPv6 可能会产生协议冲突和操作复杂性。要解决这些问题,请配置新的 PPPoE 家族,如 IPv4 或 IPv6。这种方法简化了运维并解决了冲突。
只能在 、 xe和 reth 接口上ge进行 PPPoE 系列配置。此外,您不能同时配置同时使用“encapsulation ppp-over-ether”和“family pppoe”的接口。
优势
PPPoE 配置支持同一接口上无 PPPoE 的 IPv4 流量和以太网 IPv6 流量。这种配置消除了单独的接口,从而简化了网络架构和管理。
配置
要通过底层接口配置 PPPoE 系列,请使用以下命令:
[edit interfaces ge-0/0/1 unit logical-unit-number] user@host# set family pppoe
示例配置
当已有以太网 PPP 封装配置时,不能只替换为系列 PPPoE。
例如,以下配置显示了采用封装的 PPPoE:
set interfaces ge-0/0/11 unit 0 encapsulation ppp-over-ether set interfaces pp0 unit 0 ppp-options pap local-name SRX2 set interfaces pp0 unit 0 ppp-options pap local-password "$9$WhBLX-bwgJZjVb.PQz6/" set interfaces pp0 unit 0 ppp-options pap passive set interfaces pp0 unit 0 pppoe-options underlying-interface ge-0/0/11.0 set interfaces pp0 unit 0 pppoe-options idle-timeout 0 set interfaces pp0 unit 0 pppoe-options auto-reconnect 10 set interfaces pp0 unit 0 pppoe-options client set interfaces pp0 unit 0 family inet mtu 1492 set interfaces pp0 unit 0 family inet negotiate-address
要添加 PPPoE 系列配置,您需要:
delete interface ge-0/0/11delete interface pp0commit
提交完成后,添加 PPPoE 家族配置。请注意,您还需要添加 pp0 配置。
set interfaces ge-0/0/11 unit 0 family pppoe set interfaces pp0 unit 0 ppp-options pap local-name SRX2 set interfaces pp0 unit 0 ppp-options pap local-password "$9$WhBLX-bwgJZjVb.PQz6/" set interfaces pp0 unit 0 ppp-options pap passive set interfaces pp0 unit 0 pppoe-options underlying-interface ge-0/0/11.0 set interfaces pp0 unit 0 pppoe-options idle-timeout 0 set interfaces pp0 unit 0 pppoe-options auto-reconnect 10 set interfaces pp0 unit 0 pppoe-options client set interfaces pp0 unit 0 family inet mtu 1492 set interfaces pp0 unit 0 family inet negotiate-address