直接上配置脚本
6号口接运营商进行拨号
----------
set interfaces ge-0/0/6 unit 0 encapsulation ppp-over-ether
set interfaces ge-0/0/6 description "Connect_to_Modem"
set interfaces pp0 unit 0 pppoe-options underlying-interface ge-0/0/6.0
set interfaces pp0 unit 0 pppoe-options client
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 family inet mtu 1492
set interfaces pp0 unit 0 family inet negotiate-address
--------------
set interfaces pp0 unit 0 ppp-options chap default-chap-secret 拨号密码
set interfaces pp0 unit 0 ppp-options chap local-name 拨号用户名
set interfaces pp0 unit 0 ppp-options chap passive
or
set interfaces pp0 unit 0 ppp-options pap local-name 拨号用户名
set interfa