Juniper ADSL config,
ADSL config is done on the AT-x/x/x interface. The first thing is to set the vpi and dsl options. In this case we used 0 for vpi and auto for dsl
set interfaces at-1/0/0 description ADSL set interfaces at-1/0/0 encapsulation atm-pvc set interfaces at-1/0/0 atm-options vpi 0 set interfaces at-1/0/0 dsl-options operating-mode auto
Now we set this encapsulation which is set to pppoa and we set the vci where 0 is the vpi and 38 is the vci.
set interfaces at-1/0/0 unit 0 description PPPoA set interfaces at-1/0/0 unit 0 encapsulation atm-ppp-vc-mux encapsulation for the interface In this case PPPOA set interfaces at-1/0/0 unit 0 vci 0.38
There is 2 ways to set up Chaps auth via a Access-profile or under the interface as below.
set interfaces at-1/0/0 unit 0 ppp-options chap access-profile ADSL1 set access profile ADSL1 client 123456789@bt.net.uk chap-secret pass
set interfaces at-1/0/0 unit 0 ppp-options chap default-chap-secret Pass set interfaces at-1/0/0 unit 0 ppp-options chap local-name “123456789@bt.net.uk” set interfaces at-1/0/0 unit 0 ppp-options chap passive
Below is the commands to setup PAP auth under the interfce
set interfaces at-1/0/0 unit 0 ppp-options pap default-password pass set interfaces at-1/0/0 unit 0 ppp-options pap local-name 123456789@bt.net.uk set interfaces at-1/0/0 unit 0 ppp-options pap passive
To get an IP address we use the following command under the unit family inet
set interfaces at-1/0/0 unit 0 family inet address negotiate-address
Do not forget to add the interface to the firewall untrust zone if this is a SRX or J-series router.
set security zones security-zone untrust interfaces at-1/0/0.0
to check this us working we an set up trace-options or use the following
show ppp statistics / detail show ppp interface at-x/x/x/