Juniper
Juniper PPPoE Proceedure
Juniper users a hierarchical configuration and the PPPoE settings fall under the interfaces section. In this example we will be using the fast ethernet port 0/0/1 for the WAN interface and the final configuration will look like: <poem> interfaces {
fe-0/0/1 { unit 0 { encapsulation ppp-over-ether; } } pp0 { unit 0 { ppp-options { pap { access-profile ppp-profile; local-password "dkwoxslxqpz";##SECRET-DATA local-name "username"; passive; } } pppoe-options { underlying-interface fe-0/0/1.0; auto-reconnect 10; client; idle-timeout 0; } family inet { negotiate-address; mtu 1492; } } }
} </poem>
Below is a walk through on what commands to enter:
You will want to ssh / telnet to the router and be at the CLI (command line interface): <poem> --- JUNOS 11.4xxxx built 2011-05-15 22:21:00 UTC {master} user@router> </poem>
We will need to be in the edit mode at this point: <poem> user@router>edit
Entering configuration mode Users currently editing the configuration: {master}[edit] user@router# </poem>
Now we will want to set the interface FastEthernet 0/0/1 to use PPPoE encapsulation: <poem> user@router#edit interfaces fe-0/0/1 unit 0
{master}[edit interfaces fe-0/0/1 unit 0] user@router#set encapsulation ppp-over-ether; user@router#exit
{master}[edit] user@router# </poem>
Next we will want to edit the ppp pap options pp0 interface: <poem> user@router#edit interfaces pp0 unit 0 ppp-options pap
{master}[edit interfaces pp0 unit 0 ppp-options pap] user@router#set access-profile ppp-profile user@router#set local-password "xmission password" user@router#set local-name "xmission username" user@router#set passive user@router#exit
{master} user@router# </poem>
Now we will want to configure the pppoe options: <poem> user@router#edit interfaces pp0 unit 0 pppoe-options
{master}[edit interfaces pp0 unit 0 pppoe-options] user@router#set underlying-interface fe-0/0/1.0 user@router#set auto-reconnect 10 user@router#set client user@router#set idle-timeout 0 user@router#exit
{master} user@router# </poem>
Last we will want to set the ip address, in this example we will use auto negotiate: <poem> user@router#edit interfaces pp0 unit 0 family-inet
{master}[edit interfaces pp0 unit 0 family-inet] user@router#set negotiate-address user@router#set mtu 1492 user@router#exit
{master} user@router# </poem>
Then just commit these changes and exit edit mode