This HOWTO describes how to configure a bluetooth network access point using ethernet bridging. You need this if you want to access your local area network by using a bluetooth connection. It's compatible with all bluetooth devices which support the PAN profile.
[ edit] RequisitesYou will need at least (FIXME: might be lower requisites):
Code: emerge dependenciesAnd bridge support in your kernel:
Code: kernel bridge supportAdding bridging support in the kernel:
Networking --->Remove your current configuration from your network interface by replacing it with, don't forget to remove your default gateway:
File: /etc/conf.d/net
Define an ethernet bridge in /etc/conf.d/net and configure it as it would be your current configuration for your network interface:
File: /etc/conf.d/net
Remember to update any script that makes reference to eth0 and change that for lan, for example if you use pppoe you should have to update your /etc/ppp/pppoe.conf file to use lan instead of eth0: change "ETH=eth0" to "ETH=lan".
The stp off and setfd 0 settings ensure that the bridge won't wait the usual 30 seconds before relaying traffic to a new network card. This is to ensure that other bridges on the same network has been detected. But since each bluetooth connection is its own interface we would need to wait 30 seconds before transmitting data to a new bluetooth connection if this was used.
Code: Create a new network script for the lan ethernet bridge, and start it
Code: Don't forget to update your runlevel configuration
Now we need to enable new bluetooth connections to be added to the bridge. For this we will be using the dev-up script that is called by the PAN daemon when a new network interface is added:
File: /etc/bluetooth/pan/dev-upCode: Set the eXecute bit on the script: $ chmod 0755 /etc/bluetooth/pan/dev-up [ edit] Bluetooth configuration
Configure bluetooth with BNEP protocol support enabled as described in HOWTO The host-to-host Bluetooth, enable pand:
File: /etc/conf.d/bluetoothCode: Restart the bluetooth initscript
How can I see which clients are connected?
Code: show connectionsHow can I see if the Ethernet bridge is working?
Code: show devices in bridgeLike any bluetooth device, the bnep interfaces only coming up once a device connects to the pan network.
You probably need a DHCP server on your network. I'm using a DHCP server which runs on an other machine which is reachable through the bridge.
Concerns or Compliments? Please use the Discussion section.