Page 1 of 1

PPPOE client disconnect and connect command

Posted: Wed Oct 21, 2015 2:40 am
by zhex900
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

Re: PPPOE client disconnect and connect command

Posted: Wed Oct 21, 2015 5:36 pm
by pukkita
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.

Re: PPPOE client disconnect and connect command

Posted: Tue Oct 27, 2015 5:31 am
by zhex900
/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 

Re: PPPOE client disconnect and connect command

Posted: Tue Oct 27, 2015 12:31 pm
by pukkita
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.