On 2015-02-08, Maximilian Pichler <maxim.pich...@gmail.com> wrote: > Hi, > > I'm trying to restart the pppoe0 interface, so as to renegotiate a new > connection to the ISP, but am getting the following error. > > $ sudo sh /etc/netstart pppoe0 > ifconfig: SIOCSSPPPPARAMS(SPPPIOSXAUTH): Device busy > route: writing to routing socket: File exists > add net default: gateway 0.0.0.1: File exists > > Does anyone know what does SIOCSSPPPPARAMS(SPPPIOSXAUTH) means?
The ioctl to set ppp parameters failed. Probably because of this: /* * We have a very specific idea of which fields we allow * being passed back from userland, so to not clobber our * current state. For one, we only allow setting * anything if LCP is in dead phase. Once the LCP * negotiations started, the authentication settings must * not be changed again. (The administrator can force an * ifconfig down in order to get LCP back into dead * phase.) */ if (sp->pp_phase != PHASE_DEAD) return EBUSY; > $ ifconfig re0 down > ifconfig: SIOCSIFFLAGS: Operation not permitted Needs root, and you want the pppoe interface not the device it's running over. There was a suggestion to destroy the interface. down+up should be enough, but if you do have to destroy it, you'll often reconnect more quickly if you have disconnected properly with "ifconfig pppoe0 down".