help for bluez and bridge configuration needed
I am new to Linux and Bluez so maybe someone could give me a hand here? Thanx ahead!
I am using a 2.4.2 kernel (SuSE 8.2) and the bridge within it to tie a bluetooth PAN and my Laptop together under one IP address which must come from a DHCP server as I am using the constellation in various networks.
The bridge is activated like this:
brctl addbr pan0
brctl addif pan0 eth0
brctl setfd pan0 0
brctl stp pan0 disable
(got those settings from a bluetooth howto, activated by a init.d/rc5 script - works fine)
ifconfig eth0 0.0.0.0 then disables the IP on my lan card for the bridge to work, set by the ifcfg-eth0 init.d file.
the ifctrl-pan0 calls the DHCP server for an IP adress and this is assigned - works well.
brctl addif pan0 bnep0 gets called from the bluetooth startup (hotplug)
With the bluetooth pan added to the bridge heres the trouble I have:
While before pings to the local machine work ok and I get constant periodic reponses, after the bnep0 interface becomes part of the bridge, ping stops about every 5 instances, no longer displays the ping'd machine's name and goes down with response frequency (from normally one a second to one response every 10 or so seconds). While the response frequency remains low, after 8-10 no-name resolution pings, the machine name comes back with each ping. and so on....
Pings directly to the IP address continue to work fine, also pings from another machine in the network to both my local linux laptop and the bluetooth attached PDA. Also DHCP is working fine for the PDA.
Any ideas? Thanks ahead for your help!
Theo
Signature · 16 lines
Theo Beisch 106 Ronheider Weg Aachen, Germany 52066 Tel +49 (241) 13935 & +49 (9401) 6000283 Mobil +49 (172) 2102211 [email protected] ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Bluez-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/bluez-users
Quoted 2 lines · Theo Beisch
I am using a 2.4.2 kernel (SuSE 8.2) and the bridge within it to tie a bluetooth PAN and my Laptop together under one IP address which must come from a DHCP server as I am using the constellation in various networks.
This kernel is quite old. You really should upgrade the kernel...
Quoted 3 lines
...
While before pings to the local machine work ok and I get constant periodic reponses, after the bnep0 interface becomes part of the bridge, ping stops about every 5 instances, no longer displays the ping'd machine's name and goes down with response frequency (from normally one a second to one response every 10 or so seconds). While the response frequency remains low, after 8-10 no-name resolution pings, the machine name comes back with each ping. and so on....
I had similar problems with a very similar setup.
The problem is that when the bnep0 interface enters the bridge, the bridge's "mac address" changes. You can see that happening doing a "ifconfig pan0" before the bnep0 joining the bridge and after, to see the hardware address of the pan0 interface.
I tried to solve this by issuing "arping's" so that other machines on the network would be warned about the new hardware address, but unfortunately never got this to work properly... :(
It has been quite a while since i've tried this, though. So maybe in recent versions the bridging layer doesn't change the hardware address anymore?
If you have better luck than me, please let me know.
Signature · 17 lines
Paulo Marques Software Development Department - Restinfor, Lda. Phone: +351 252 290600, Fax: +351 252 290601 Web: www.grupopie.com "In a world without walls and fences who needs windows and gates?" ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Bluez-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/bluez-users
Marcel Holtmann
maintainerHi,
Quoted 8 lines
The problem is that when the bnep0 interface enters the bridge, the bridge's "mac address" changes. You can see that happening doing a "ifconfig pan0" before the bnep0 joining the bridge and after, to see the hardware address of the pan0 interface.
I tried to solve this by issuing "arping's" so that other machines on the network would be warned about the new hardware address, but unfortunately never got this to work properly... :(
I never put the eth0 into the bridge ;) You can use IP forwarding and NAT between eth0 und pan0.
Regards
Marcel
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Bluez-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users
Marcel,
thanks, I tried this but couldnt get it to work at least with SuSEfirewall2, activating NAT between the internal:pan0 (bridge) and external:eth0. ANy other ways?
What I am trying to get to: as I use my linux-laptop online (DHCP on eth0 in different networks) and offline (with th PDA/BT connection with apache etc. running on the laptop) my plan was to have a default configuration which at boot is overridden after DHCP on eth0 (or the bridge) has provided the laptop with its network IP, gateway and so on.
As I said, new to all this stuff....
Tx again
Theo
Am Dienstag, 7. Oktober 2003 13:34 schrieb Marcel Holtmann:
Quoted 29 lines
Hi,
Quoted 8 lines
The problem is that when the bnep0 interface enters the bridge, the bridge's "mac address" changes. You can see that happening doing a "ifconfig pan0" before the bnep0 joining the bridge and after, to see the hardware address of the pan0 interface.
I tried to solve this by issuing "arping's" so that other machines on the network would be warned about the new hardware address, but unfortunately never got this to work properly... :(
I never put the eth0 into the bridge ;) You can use IP forwarding and NAT between eth0 und pan0.
Regards
Marcel
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Bluez-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users
Signature · 6 lines
Theo Beisch 106 Ronheider Weg Aachen, Germany 52066 Tel +49 (241) 13935 & +49 (9401) 6000283 Mobil +49 (172) 2102211 [email protected]
Marcel Holtmann
maintainerHi Theo,
Quoted 3 lines
thanks, I tried this but couldnt get it to work at least with SuSEfirewall2, activating NAT between the internal:pan0 (bridge) and external:eth0. ANy other ways?
I am not using SuSE, so I can't help here.
Regards
Marcel
-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program. SourceForge.net hosts over 70,000 Open Source Projects. See the people who have HELPED US provide better services:
Click here: http://sourceforge.net/supporters.php
_______________________________________________
Bluez-users mailing list [email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users
Just one more thing i forgot to mention: you can try and send a similar report to the bridging mailing list to see if there is some solution on the bridge side.
The mailing list for bridging is at:
http://www.math.leidenuniv.nl/mailman/listinfo/bridge
I hope this helps,
Signature · 17 lines
Paulo Marques Software Development Department - Restinfor, Lda. Phone: +351 252 290600, Fax: +351 252 290601 Web: www.grupopie.com "In a world without walls and fences who needs windows and gates?" ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Bluez-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/bluez-users