Community discussions

MikroTik App
 
planetcaravan
Member Candidate
Member Candidate
Topic Author
Posts: 267
Joined: Tue Aug 25, 2009 5:33 pm

PPPoE Client inside PPPoE Server

Wed Mar 04, 2015 8:15 pm

Hi there,

I've set up a simple PPPoE server with a local PPP user on an RB951Ui-2HnD (RouterOS 6.27).
I've created a PPPoE client interface (using with the local PPP user) on the same RB951Ui-2HnD.
My problem is tat the session never becomes active... What is my error?
 
ronix
Member Candidate
Member Candidate
Posts: 151
Joined: Thu Nov 17, 2011 6:51 pm

Re: PPPoE Client inside PPPoE Server

Fri Mar 06, 2015 10:26 am

if you write your config maybe we can help
 
planetcaravan
Member Candidate
Member Candidate
Topic Author
Posts: 267
Joined: Tue Aug 25, 2009 5:33 pm

Re: PPPoE Client inside PPPoE Server

Fri Mar 06, 2015 2:10 pm

Here is my config:
/interface bridge
add name=bridge-PPP

/interface bridge port
add bridge=bridge-PPP interface=ether2

/ip pool
add name=pool-ppp ranges=172.16.6.2-172.16.6.100

/ppp profile
add bridge=bridge-PPP change-tcp-mss=yes local-address=172.16.6.254 name=\
    profilePPP remote-address=pool-ppp use-encryption=yes

/ppp secret
add name=user password=pwd profile=profilePPP service=pppoe

/interface pppoe-client
add add-default-route=yes allow=pap,chap disabled=no interface=ether2 mrru=\
    1600 name=pppoe-out1 password=pwd profile=profilePPP use-peer-dns=yes \
    user=user
    
/interface pppoe-server server
add authentication=pap,chap default-profile=profilePPP disabled=no interface=\
    bridge-PPP one-session-per-host=yes service-name=ADSL
log says:
pppoe-out1: initializing...
pppoe-out: connecting...
pppoe-out1 terminating... - disconnected
What's my fault?
 
ronix
Member Candidate
Member Candidate
Posts: 151
Joined: Thu Nov 17, 2011 6:51 pm

Re: PPPoE Client inside PPPoE Server

Sat Mar 07, 2015 4:05 pm

Dear planetcaravan

what is your scenario ?
we need more details about your pppoe user and the interface connected to it
also about you local pppoe server and the interface that its used .
 
planetcaravan
Member Candidate
Member Candidate
Topic Author
Posts: 267
Joined: Tue Aug 25, 2009 5:33 pm

Re: PPPoE Client inside PPPoE Server

Sat Mar 07, 2015 4:27 pm

Thanks for your answer. This PPPoE is connected to the internet via ether1 and I want to set a PPPoE client on the same RB in order to create a LAN network on the other ethernet interfaces of the RB.
 
User avatar
NathanA
Forum Veteran
Forum Veteran
Posts: 829
Joined: Tue Aug 03, 2004 9:01 am

Re: PPPoE Client inside PPPoE Server

Sat Mar 07, 2015 11:33 pm

Very confused about what you are trying to do. You have ether2 in a bridge, and a pppoe-server running on the bridge, but then you also have a pppoe-client on ether2. That is nonsense. Once ether2 is in a bridge, you should not reference it or treat it as a discrete interface. You should only ever reference the bridge interface.

And it makes no sense to have a pppoe-client and a pppoe-server on the same interface unless you want your client to connect to another pppoe-server that is running elsewhere on the same ethernet broadcast domain. Are you trying to make the pppoe-client on your router connect to itself (to the server that the same router is running)?? You can't do that, and furthermore, I can't conceive of a scenario in which anybody would want to do that or find such a configuration useful.

-- Nathan
 
ronix
Member Candidate
Member Candidate
Posts: 151
Joined: Thu Nov 17, 2011 6:51 pm

Re: PPPoE Client inside PPPoE Server

Sun Mar 08, 2015 12:01 pm

I think you must bridge all interfaces except ether1
then create your pppoe server for that bridge
your local pppoe users must connected from ether2 to ether5
try this and feed back if its work :
/ip pool
add name=pool1 ranges=172.16.6.2-172.16.6.100

/interface bridge
add mtu=1500 name=bridge1

/interface bridge port
add bridge=bridge1 interface=ether2
add bridge=bridge1 interface=ether3
add bridge=bridge1 interface=ether4
add bridge=bridge1 interface=ether5

/ppp profile
add change-tcp-mss=yes local-address=1.1.1.1 name=PPPoE_Local only-one=yes remote-address=pool1 use-compression=no use-encryption=no use-ipv6=no use-mpls=no use-vj-compression=no

/interface pppoe-server server
add authentication=pap,chap default-profile=PPPoE_Local disabled=no interface=bridge1 max-mru=1480 max-mtu=1480 mrru=1600 service-name=service1

/ip firewall nat
add action=masquerade chain=srcnat src-address=172.16.6.2-172.16.6.100

Don't forget to add your users in secrets

Who is online

Users browsing this forum: No registered users and 14 guests