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##3) 配置與MSSset interfaces pp0 unit 0 family inet mtu 1492set security flow tcp-mss all-tcp mss 13504)配置為addressset interfaces pp0 unit 0 family inet negotiate-address5)設定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.gdset interfaces pp0 unit 0 ppp-options chap no-rfc2486 #印#印>印>>成本>>>>>>>>>>>>>>>>已45號options are configured for unit 0 on pp0 interface.set interfaces pp0 unit 0 ppp-options pap default-password 12345678set interXXXs@0 unit 0 pap-options papz .gdset interfaces pp0 unit 0 ppp-options pap local-password 12345678set interfaces pp0 unit 0 ppp-options pap passive6)設定預設路由set routing-options static route 0.0.0.0/0 next-hop pp0.07)設定區域set security zones security-zone untrust interfaces pp0.0set security zones security-zone untrust interfaces fe-0/0/1.08)Interface based Nat 基於介面的來源位址轉換內部網段請自行更改,別全部複製。 。 。 set security nat source rule-set trust-to-untrust from zone trustset 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中文網其他相關文章!