ADSL & VDSL &configuration + PPP


Quick Configs Juniper - PPPoE Server & Client

ADSL: PPPoA

set interfaces at-2/0/0 encapsulation atm-pvc 
set interfaces at-2/0/0 atm-options vpi 0
set interfaces at-2/0/0 dsl-options operating-mode auto
set interfaces at-2/0/0 unit 0 encapsulation atm-ppp-vc-mux
set interfaces at-2/0/0 unit 0 vci 0.38
set interfaces at-2/0/0 unit 0 ppp-options chap default-chap-secret “chap-password”        ## SECRET-DATA
set interfaces at-2/0/0 unit 0 ppp-options chap local-name “username@testisp.net
set interfaces at-2/0/0 unit 0 ppp-options chap passive
set interfaces at-2/0/0 unit 0 family inet negotiate-address

ADSL: PPPoEoA

set interfaces at-2/0/0 encapsulation ethernet-over-atm
set interfaces at-2/0/0 atm-options vpi 0
set interfaces at-2/0/0 dsl-options operating-mode auto
set interfaces at-2/0/0 unit 0 encapsulation ppp-over-ether-over-atm-llc
set interfaces at-2/0/0 unit 0 vci 0.38

set interfaces pp0 traceoptions flag all
set interfaces pp0 unit 0 point-to-point
set interfaces pp0 unit 0 ppp-options pap local-name username@testisp.net <<<<--- provided by the Internet SP
set interfaces pp0 unit 0 ppp-options pap local-password <password> <<<<--- provided by the Internet SP
set interfaces pp0 unit 0 ppp-options pap passive
set interfaces pp0 unit 0 pppoe-options underlying-interface at-2/0/0.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 address x.x.x.x/32 <<<<--- provided by the SP

set interfaces st0 unit 0 family inet mtu 1480
set interfaces st0 unit 0 family inet address x.x.x.x/30


VDSL: PPPoE

set interfaces pt-1/0/0 mtu 1530
set interfaces pt-1/0/0 vdsl-options vdsl-profile 17a
set interfaces pt-1/0/0 unit 0 encapsulation ppp-over-ether
set interfaces pt-1/0/0 unit 0 vlan-id 10
set interfaces pp0 unit 0 ppp-options pap default-password "<<VDSL Password>>"
set interfaces pp0 unit 0 ppp-options pap local-name <<VDSL Username>>
set interfaces pp0 unit 0 ppp-options pap local-password "<<VDSL Password>>"
set interfaces pp0 unit 0 ppp-options pap passive
set interfaces pp0 unit 0 pppoe-options underlying-interface pt-1/0/0.0
set interfaces pp0 unit 0 pppoe-options idle-timeout 0
set interfaces pp0 unit 0 pppoe-options auto-reconnect 2
set interfaces pp0 unit 0 pppoe-options client
set interfaces pp0 unit 0 family inet negotiate-address
set interfaces vlan unit 0 family inet address <<internal IP range>>/24
set routing-options static route 0.0.0.0/0 next-hop pp0.0
set routing-options generate route 0.0.0.0/0


MTU calculation:


PPP FCS = 4???
Payload = 1472
ICMP Header = 8
IPv4 header = 20
PPP header = 2
PPPoE Header = 6
Vlan tag = 4
Ethernet Header = 14
                = 1530