:: Re: [DNG] netman, ifdown: interface…
Page principale
Supprimer ce message
Répondre à ce message
Auteur: Edward Bartolo
Date:  
À: fsmithred
CC: dng
Sujet: Re: [DNG] netman, ifdown: interface wlan0 not configured
Correction: <<Now, I moved the essid and password to another file
under /etc/network/interfaces>>

Should be: Now, I moved the essid and password to another file under
/etc/network/wifi.

On 07/09/2015, Edward Bartolo <edbarx@???> wrote:
> More testing on my part is indicating that the cause appears to be:
>
> iface wlan0 inet dhcp
>
> Evidence is indicating that the above is required to be in
> /etc/network/interfaces.
>
> Previously, I also had the wifi's essid and password. Now, I moved the
> essid and password to another file under /etc/network/interfaces. I
> was able to reproduce the same behaviour as experienced by fsmithred.
> Now my setup works.
>
> With my setup I was able to connect to various wifis not just the one
> at my home. This means, my configuration works and was far more stable
> than what I was experiencing using wicd.
>
> On 06/09/2015, Edward Bartolo <edbarx@???> wrote:
>> 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
>>>
>>
>