Difference between revisions of "Juniper"

From XMission Wiki
Jump to: navigation, search
(Juniper PPPoE Proceedure)
 
(6 intermediate revisions by 3 users not shown)
Line 1: Line 1:
 +
{{archived}}
 +
 
===Juniper PPPoE Proceedure===
 
===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:
 
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>
+
<pre>
 
interfaces {
 
interfaces {
 
     fe-0/0/1 {
 
     fe-0/0/1 {
Line 13: Line 15:
 
             ppp-options {
 
             ppp-options {
 
                 pap {
 
                 pap {
                    access-profile ppp-profile;
 
 
                     local-password "dkwoxslxqpz";##SECRET-DATA
 
                     local-password "dkwoxslxqpz";##SECRET-DATA
 
                     local-name "username";
 
                     local-name "username";
Line 28: Line 29:
 
                 negotiate-address;
 
                 negotiate-address;
 
                 mtu 1492;
 
                 mtu 1492;
 +
            }
 +
            family inet6 {
 +
                mtu 1492;
 +
                dhcpv6-client {
 +
                    client-type statefull;
 +
                    client-ia-type ia-pd;
 +
                    client-ia-type ia-na;
 +
                    update-router-advertisement {
 +
                        interface pp0.0;
 +
                    }
 +
                    client-identifier duid-type duid-ll;
 +
                    req-option domain;
 +
            }
 +
        }
 +
    }
 +
}
 +
security {
 +
    flow {
 +
        tcp-mss {
 +
            all-tcp {
 +
                mss 1452;
 
             }
 
             }
 
         }
 
         }
 
     }
 
     }
 
}
 
}
</poem>
+
</pre>
  
 
'''Below is a walk through on what commands to enter:'''
 
'''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):
 
You will want to ssh / telnet to the router and be at the CLI (command line interface):
<poem>
+
<pre>
 
--- JUNOS 11.4xxxx built 2011-05-15 22:21:00 UTC
 
--- JUNOS 11.4xxxx built 2011-05-15 22:21:00 UTC
 
{master}
 
{master}
 
user@router>
 
user@router>
</poem>
+
</pre>
  
 
We will need to be in the edit mode at this point:
 
We will need to be in the edit mode at this point:
<poem>
+
<pre>
 
user@router>edit
 
user@router>edit
  
Line 51: Line 73:
 
{master}[edit]
 
{master}[edit]
 
user@router#
 
user@router#
</poem>
+
</pre>
  
 
Now we will want to set the interface FastEthernet 0/0/1 to use PPPoE encapsulation:
 
Now we will want to set the interface FastEthernet 0/0/1 to use PPPoE encapsulation:
<poem>
+
<pre>
 
user@router#edit interfaces fe-0/0/1 unit 0
 
user@router#edit interfaces fe-0/0/1 unit 0
  
Line 63: Line 85:
 
{master}[edit]
 
{master}[edit]
 
user@router#
 
user@router#
</poem>
+
</pre>
  
 
Next we will want to edit the ppp pap options pp0 interface:
 
Next we will want to edit the ppp pap options pp0 interface:
<poem>
+
<pre>
 
user@router#edit interfaces pp0 unit 0 ppp-options pap
 
user@router#edit interfaces pp0 unit 0 ppp-options pap
  
Line 78: Line 100:
 
{master}
 
{master}
 
user@router#
 
user@router#
</poem>
+
</pre>
  
 
Now we will want to configure the pppoe options:
 
Now we will want to configure the pppoe options:
<poem>
+
<pre>
 
user@router#edit interfaces pp0 unit 0 pppoe-options
 
user@router#edit interfaces pp0 unit 0 pppoe-options
  
Line 93: Line 115:
 
{master}
 
{master}
 
user@router#
 
user@router#
</poem>
+
</pre>
  
 
Last we will want to set the ip address, in this example we will use auto negotiate:
 
Last we will want to set the ip address, in this example we will use auto negotiate:
<poem>
+
<pre>
 
user@router#edit interfaces pp0 unit 0 family-inet
 
user@router#edit interfaces pp0 unit 0 family-inet
  
Line 106: Line 128:
 
{master}
 
{master}
 
user@router#
 
user@router#
</poem>
+
</pre>
 +
 
 +
If you have ipv6 use the following
 +
<pre>
 +
user@router#edit interfaces pp0 unit 0 family inet6
 +
 
 +
{master}[edit interfaces pp0 unit 0 family inet6]
 +
user@router#set mtu 1492
 +
user@router#set dhcpv6-client client-type statefull
 +
user@router#set dhcpv6-client client-ia-type ia-pd
 +
user@router#set dhcpv6-client client-ia-type ia-nd
 +
user@router#set dhcpv6-client update-router-advertisement interface pp0.0
 +
user@router#set dhcpv6-client client-identifier duid-type duid-ll
 +
user@router#set dhcpv6-client req-option domain
 +
user@router#exit
 +
 
 +
{master}
 +
user@router#
 +
</pre>
 +
 
 +
Commit these changes and exit edit mode.
  
Then just commit these changes and exit edit mode
+
[[Category:UTOPIA Troubleshooting|Juniper]]
 +
[[Category:UTOPIA]]
 +
[[Category:PPPoE]]

Latest revision as of 15:02, 30 November 2022

Archives.png


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:

interfaces {
    fe-0/0/1 {
        unit 0 {
            encapsulation ppp-over-ether;
        }
    }
    pp0 {
        unit 0 {
            ppp-options {
                pap {
                    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;
            }
            family inet6 {
                mtu 1492;
                dhcpv6-client {
                    client-type statefull;
                    client-ia-type ia-pd;
                    client-ia-type ia-na;
                    update-router-advertisement {
                        interface pp0.0;
                    }
                    client-identifier duid-type duid-ll;
                    req-option domain;
            }
        }
    }
}
security {
    flow {
        tcp-mss {
            all-tcp {
                mss 1452;
            }
        }
    }
}

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):

--- JUNOS 11.4xxxx built 2011-05-15 22:21:00 UTC
{master}
user@router>

We will need to be in the edit mode at this point:

user@router>edit

Entering configuration mode
Users currently editing the configuration:
{master}[edit]
user@router#

Now we will want to set the interface FastEthernet 0/0/1 to use PPPoE encapsulation:

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#

Next we will want to edit the ppp pap options pp0 interface:

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#

Now we will want to configure the pppoe options:

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#

Last we will want to set the ip address, in this example we will use auto negotiate:

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#

If you have ipv6 use the following

user@router#edit interfaces pp0 unit 0 family inet6

{master}[edit interfaces pp0 unit 0 family inet6]
user@router#set mtu 1492
user@router#set dhcpv6-client client-type statefull
user@router#set dhcpv6-client client-ia-type ia-pd
user@router#set dhcpv6-client client-ia-type ia-nd
user@router#set dhcpv6-client update-router-advertisement interface pp0.0
user@router#set dhcpv6-client client-identifier duid-type duid-ll
user@router#set dhcpv6-client req-option domain
user@router#exit

{master}
user@router#

Commit these changes and exit edit mode.