Community discussions

MikroTik App
 
zhex900
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 65
Joined: Mon Apr 15, 2013 5:34 pm

PPPOE client disconnect and connect command

Wed Oct 21, 2015 2:40 am

Hi,

I want to disconnect and reconnect pppoe client in MK via command line. This is not just disable and enable pppoe. The Webfig GUI allows you to reconnect the pppoe client. How do I do this via the command line?

Thank you

Jake
 
User avatar
pukkita
Trainer
Trainer
Posts: 3051
Joined: Wed Dec 04, 2013 11:09 am
Location: Spain

Re: PPPOE client disconnect and connect command

Wed Oct 21, 2015 5:36 pm

First locate the pppoe connection you want to remove
/ppp active print
Let's say is number 4; do
/ppp active remove numbers=4
That would do it.

Most CLI menus follow closely the GUI menus naming and submenus. While on the CLI, play with tab, it will show context-aware options and commands, it's a great way of learning the CLI.
 
zhex900
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 65
Joined: Mon Apr 15, 2013 5:34 pm

Re: PPPOE client disconnect and connect command

Tue Oct 27, 2015 5:31 am

/ppp active print
returns nothing. What should I do?
/interface pppoe-client print 
Flags: X - disabled, R - running 
 0  R name="pppoe-out-iinet" max-mtu=1492 max-mru=1492 mrru=disabled 
      interface=ether1-gateway user="churchinperth" password="xixI3WFo9" 
      profile=default keepalive-timeout=disabled service-name="" ac-name="" 
      add-default-route=yes default-route-distance=0 dial-on-demand=no 
      use-peer-dns=no allow=pap,chap,mschap1,mschap2 
 
User avatar
pukkita
Trainer
Trainer
Posts: 3051
Joined: Wed Dec 04, 2013 11:09 am
Location: Spain

Re: PPPOE client disconnect and connect command

Tue Oct 27, 2015 12:31 pm

Sorry, I thought you had a server and wanted to disconnect a client! :)

Cannot see any other way from the CLI than to disable and later enable it again.

Who is online

Users browsing this forum: No registered users and 22 guests