1)选择接口fe-0/0/1作为PPPOE拨号接口的物理接口,并封装成pppoe
set interfaces fe-0/0/1 unit 0 encapsulation ppp-over-ether
2)配置PPPOE接口的PP0.0参数
set interfaces pp0 unit 0 pppoe-options underlying-interface fe-0/0/1.0
set interfaces pp0 unit 0 pppoe-options idle-timeout 0
set interfaces pp0 unit 0 pppoe-options auto-reconnect 3
set interfaces pp0 unit 0 pppoe-options client
3)配置MTU与MSS
set interfaces pp0 unit 0 family inet mtu 1492
set security flow tcp-mss all-tcp mss 1350
4)配置pppoe接口的地址为negotiate-address
set interfaces pp0 unit 0 family inet negotiate-address
5)配置PPPOE pap 认证
set interfaces pp0 unit 0 ppp-options chap default-chap-secret 12345678
set interfaces pp0 unit 0 ppp-options chap local-name szXXXXXXXX@163.gd
set interfaces pp0 unit 0 ppp-options chap no-rfc2486
Passive CHAP authentication options are configured for unit 0 on pp0 interface.
set interfaces pp0 unit 0 ppp-options pap default-password 12345678
set interfaces pp0 unit 0 ppp-options pap local-name szXXXXXXXX@163.gd
set interfaces pp0 unit 0 ppp-options pap local-password 12345678
set interfaces pp0 unit 0 ppp-options pap passive
6)配置缺省路由
set routing-options static route 0.0.0.0/0 next-hop pp0.0
7)设置区域
set security zones security-zone untrust interfaces pp0.0
set security zones security-zone untrust interfaces fe-0/0/1.0
8)Interface based Nat 基于接口的源地址转换
内部网段请自行更改,别全部复制。。。
set security nat source rule-set trust-to-untrust from zone trust
set security nat source rule-set trust-to-untrust to zone untrust
set security nat source rule-set trust-to-untrust rule source-nat-rule match source-address 192.168.10.0/24
set security nat source rule-set trust-to-untrust rule source-nat-rule match source-address 172.16.0.0/16
set security nat source rule-set trust-to-untrust rule source-nat-rule then source-nat interface
以上是如何实现Juniper JunOS PPPOE配置的详细内容。更多信息请关注PHP中文网其他相关文章!

热AI工具

Undresser.AI Undress
人工智能驱动的应用程序,用于创建逼真的裸体照片

AI Clothes Remover
用于从照片中去除衣服的在线人工智能工具。

Undress AI Tool
免费脱衣服图片

Clothoff.io
AI脱衣机

AI Hentai Generator
免费生成ai无尽的。

热门文章

热工具

Dreamweaver CS6
视觉化网页开发工具

安全考试浏览器
Safe Exam Browser是一个安全的浏览器环境,用于安全地进行在线考试。该软件将任何计算机变成一个安全的工作站。它控制对任何实用工具的访问,并防止学生使用未经授权的资源。

EditPlus 中文破解版
体积小,语法高亮,不支持代码提示功能

禅工作室 13.0.1
功能强大的PHP集成开发环境

WebStorm Mac版
好用的JavaScript开发工具