PAN and bridge problem when bnep0 disconnects before bnep1
Hello,
I have a BlueZ NAP setup with bridging (essentially following the PAN HOWTO), which works quite nicely (thanks to all developers :) except when the first connected bnep0 client is killed before the 2nd client (bnep1).
I am running a DHCP server on the server's bridge (pan0), and eth0 is NOT part of the bridge, I use IP forwarding instead.
The problem is, that after bnep0 is removed (by killing it on the respective client with 'pand -K'), bnep1 doesn't 'work' any longer, meaning ping etc. don't work any more. And I couldn't find anything in the syslogs, except that after a while the client's DHCP client starts to issue DHCPDISCOVERs.
ifdown/ifup on bnep1 don't seem to help either, the only way I could find to make it work again was to issue 'pand -K' on the server and reconnect the clients.
If bnep1 disconnects before bnep0, no problem.
I'm using quite late BlueZ versions on all machines (at least kernel 2.6.5-mh3 and the latest Debian bluez-utils 2.6-1 and bluez-pan 1.1rel-4), and I can reproduce the behaviour also with a Windows client on bnep0.
Any clues?
Regards.
Matthias
-------------------------------------------------------
This SF.Net email is sponsored by Sleepycat Software
Learn developer strategies Cisco, Motorola, Ericsson & Lucent use to deliver higher performing products faster, at low TCO.
http://www.sleepycat.com/telcomwpreg.php?From=osdnemail3
_______________________________________________
Bluez-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel
Marcel Holtmann
maintainerHi Matthias,
Quoted 18 lines
I have a BlueZ NAP setup with bridging (essentially following the PAN HOWTO), which works quite nicely (thanks to all developers :) except when the first connected bnep0 client is killed before the 2nd client (bnep1).
I am running a DHCP server on the server's bridge (pan0), and eth0 is NOT part of the bridge, I use IP forwarding instead.
The problem is, that after bnep0 is removed (by killing it on the respective client with 'pand -K'), bnep1 doesn't 'work' any longer, meaning ping etc. don't work any more. And I couldn't find anything in the syslogs, except that after a while the client's DHCP client starts to issue DHCPDISCOVERs.
ifdown/ifup on bnep1 don't seem to help either, the only way I could find to make it work again was to issue 'pand -K' on the server and reconnect the clients.
Quoted 6 lines
If bnep1 disconnects before bnep0, no problem.
I'm using quite late BlueZ versions on all machines (at least kernel 2.6.5-mh3 and the latest Debian bluez-utils 2.6-1 and bluez-pan 1.1rel-4), and I can reproduce the behaviour also with a Windows client on bnep0.
sounds like a bridge problem to me. Are you sure that your bridge is setup correctly. Take a look at the bridge howto's.
Regards
Marcel
-------------------------------------------------------
This SF.Net email is sponsored by Sleepycat Software
Learn developer strategies Cisco, Motorola, Ericsson & Lucent use to deliver higher performing products faster, at low TCO.
http://www.sleepycat.com/telcomwpreg.php?From=osdnemail3
_______________________________________________
Bluez-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel
Quoted 3 lines
Quoted 3 lines
If bnep1 disconnects before bnep0, no problem.
I had a similar problem a while ago (it was a 2.4.xx kernel, didn't try a 2.6 kernel yet).
The problem was that the bridge interface borrowed the mac address from one of the interfaces attached to it.
When this interface disconnected, the bridge would start using the MAC from some other interface. Because of this, other computers on the network, relying on their arp cache, could not contact the bridge any more.
I tried "arp-pinging" the network to announce the new mac, but couldn't make it work. (maybe I was doing something wrong)
I eventually gave up, without finding any solution.
As I said, I didn't try kernel 2.6. I remember reading somewhere that there was a new kernel internal API to get a "valid" random MAC address and that the bridging code was using it, but I'm not sure I didn't got it wrong.
Just my 2 cents,
Signature · 2 lines
Paulo Marques - www.grupopie.com "In a world without walls and fences who needs windows and gates?"