:: Re: [DNG] netman, ifdown: interface…
Etusivu
Poista viesti
Vastaa
Lähettäjä: Edward Bartolo
Päiväys:  
Vastaanottaja: fsmithred
Kopio: dng
Aihe: Re: [DNG] netman, ifdown: interface wlan0 not configured
Hi fsmithred,

I think, Disconnect was failing in your case with the default
configuration of netman's /etc/network/wifi/* files, for the reason,
that I assumed that ifdown would automatically find where the
currently used interfaces file was located.

Since ifup worked the way netman invoked it, I think, doing the same
for ifdown should do the trick also for you without having to modify
any 'interfaces' files on your system.

It will help me improve the project if you find some time to test this
while connected to wifi but using your previous versions of
/etc/network/interfaces and /etc/network/wifi/your-wifi-file. The
command is simply as follows:

# ifdown wlan0 -i /etc/network/wifi/your-wifi-file


Edward

On 06/09/2015, fsmithred <fsmithred@???> wrote:
> I've been testing netman and discussing it with edbarx on this thread at fdn
> -
> http://forums.debian.net/viewtopic.php?f=3&t=124343&sid=39afc987dc48172a6553bb0941d12461
>
> netman connects but won't disconnect, and produces the following messages
> in the terminal:
>
> # click Disconnect first time:
> Ignoring unknown interface wlan0=wlan0.
>
> # click Disconnect second time:
> ifdown: interface wlan0 not configured
>
> If I try 'ifdown wlan0' in root terminal, I get the same messages. I have
> to bring the interface down with 'ifconfig wlan0 inet down'.
> And if I try running './backend 5' from /usr/bin/netman/ I get the same
> messages.
>
>
> Here's the output of 'ip a' under various circumstances (in order):
>
> Interface down:
>     wlan0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc pfifo_fast
> state DOWN group default qlen 1000
>         link/ether 00:1f:33:82:e4:8b brd ff:ff:ff:ff:ff:ff

>
> Connect with netman:
>     wlan0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast
> state UP group default qlen 1000
>         link/ether 00:1f:33:82:e4:8b brd ff:ff:ff:ff:ff:ff
>         inet 192.168.1.101/24 brd 192.168.1.255 scope global wlan0
>            valid_lft forever preferred_lft forever

>
> Disconnect with netman:
>     wlan0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast
> state UP group default qlen 1000
>         link/ether 00:1f:33:82:e4:8b brd ff:ff:ff:ff:ff:ff
>         inet 192.168.1.101/24 brd 192.168.1.255 scope global wlan0
>            valid_lft forever preferred_lft forever

>
>
>
> My workaround (and quote from post on fdn)
> ifup wants to see "allow" or "auto" associated with an interface. I tried
> adding "allow-hotplug wlan0" to /etc/network/interfaces, but that didn't
> help, so I removed it. Then I added it to the file in /etc/network/wifi
> and added "source wifi/*" to interfaces, and that seems to fix the
> problem. I can now connect and disconnect with the buttons in netman. And
> 'ifup/ifdown wlan0' works in root terminal now.
>
> /etc/network/interfaces
>
>     auto lo
>     iface lo inet loopback

>
>     source wifi/*        # I added this line

>
>
> /etc/network/wifi/my-essid
>
>     auto lo
>     iface lo inet loopback

>
>     allow-hotplug wlan0       # I added this line
>     iface wlan0 inet dhcp
>         wpa-ssid my-essid
>         wpa-psk "my-secret-password"

>
>
> Running devuan/angband/exegnu/jessie
>
> -fsmithred
>
> _______________________________________________
> Dng mailing list
> Dng@???
> https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng
>