Setup Menus in Admin Panel

Setup Menus in Admin Panel

Como Configurar PPPoE server EdgeRouter

Configuring PPPoE Server
===================

The minimal configuration for a pppoe server is:
1) define a pool of addresses to use
2) define the interface to listen on
3) chose between authentication mode (either local users or radius)
4) if local authentication mode, define username/password

For example:

1) define a pool of addresses to use

ubnt@rtr1:~$ configure

ubnt@rtr1# edit service pppoe-server

ubnt@rtr1# set client-ip-pool start 100.0.0.10

ubnt@rtr1# set client-ip-pool stop 100.0.0.100

2) define the interface to listen on

ubnt@rtr1# set interface eth0

3) chose between authentication mode (either local users or radius)

ubnt@rtr1# set authentication mode local

4) if local authentication mode, define username/password

ubnt@rtr1# set authentication local-users username bob password secret
                                                     
ubnt@rtr1# set authentication local-users username joe password secret2

ubnt@rtr1# commit

Starting pppoe-server: pppoe-server.
                                                                                

ubnt@rtr1# top


ubnt@rtr1# show service pppoe-server
 authentication {
     local-users {
         username bob {
             password secret
         }
         username joe {
             password secret2
         }
     }
     mode local
 }
 client-ip-pool {
     start 100.0.0.10
     stop 100.0.0.100
 }
 interface eth0

ubnt@rtr1# save
Saving configuration to '/config/config.boot'...
Done

ubnt@rtr1# exit
exit

It’s optional, but probably a good idea to add a dns-server

ubnt@rtr1:~$ configure

ubnt@rtr1# set service pppoe-server dns-servers server-1 8.8.8.8

ubnt@rtr1# commit

Restarting pppoe-server: pppoe-server.

ubnt@rtr1# save ; exit
Saving configuration to '/config/config.boot'...
Done
exit
ubnt@rtr1:~$

To see if there are connected PPPoE clients:

ubnt@rtr1:~$ show pppoe-server
Active PPPoE server sessions:

User       Time      Iface    Remote IP       TX pkt/byte   RX pkt/byte
---------- --------- -------- --------------- ------ ------ ------ ------       
joe        00h35m02s pppoes0  100.0.0.11         178  14.1K    178  13.3K
bob        00h00m19s pppoes1  100.0.0.12          28   2.3K     29   1.9K

To bump off user “joe”:

ubnt@rtr1:~$ clear pppoe-server user joe
ubnt@rtr1:~$ show pppoe-server
Active PPPoE server sessions:

User       Time      Iface    Remote IP       TX pkt/byte   RX pkt/byte
---------- --------- -------- --------------- ------ ------ ------ ------
bob        00h01m02s pppoes1  100.0.0.12          29   2.4K     30   2.0K

Configuring PPPoE Client
========================

On another router we’ll configure a PPPoE client. For the client, the minimal configuration is just user name and password on the outbound interface. For example:

ubnt@rtr2:~$ configure

ubnt@rtr2# set interfaces ethernet eth1 pppoe 0 user-id joe

ubnt@rtr2# set interfaces ethernet eth1 pppoe 0 password secret2

ubnt@rtr2# commit

ubnt@rtr2# show interfaces ethernet eth1 pppoe
 pppoe 0 {
     password secret2
     user-id joe
 }
ubnt@rtr2# save ; exit
Saving configuration to '/config/config.boot'...
Done

ubnt@rtr2# exit
exit

To verify that we have a connection, we’ll do “show interfaces”

ubnt@rtr2:~$ show interfaces
Codes: S - State, L - Link, u - Up, D - Down, A - Admin Down
Interface    IP Address                        S/L  Description
---------    ----------                        ---  -----------
eth0         -                                 u/D
eth1         -                                 u/u
eth2         -                                 u/D
lo           127.0.0.1/8                       u/u
             ::1/128
pppoe0       100.0.0.10                        u/u

As we can see pppoe0 was assigned 100.0.0.10.

If you want to disconnect from the pppoe server

ubnt@rtr2:~$ disconnect interface pppoe0
Bringing interface pppoe0 down...

To reconnect:

ubnt@rtr2:~$ connect interface pppoe0
Bringing interface pppoe0 up...
ubnt@rtr2:~$
EdgeMAX Router Software Development
17 de novembro de 2017

0 responses on "Como Configurar PPPoE server EdgeRouter"

Leave a Message

O seu endereço de e-mail não será publicado. Campos obrigatórios são marcados com *

top
Desenvolvido por MyRouter . All rights reserved.
X