I'm trying to solve a similar issue. I did want to use the NAP profile but so far I'm not too clear on if/how that is possible using the Gnome Bluetooth Manager and/or the Ubuntu configuration. My issue is, getting a mobile telephone to do the DHCP request on the PAN so the telephone can use the PC and its Internet link as the Internet gateway rather than using the (relatively expensive) 3G connection when updating/installing/testing applications on the telephone.
The documentation at http://wiki.bluez.org/wiki/Network and in particular the comments in the example /etc/bluetooth/network.conf show the defaults: # Network interface name for PANU for connections. default:bnep%d # Network Interface name for Group Network server. default:pan0 # Network Interface name for Network Access Point server. default:pan1 When enabling "Network service" in Gnome Bluetooth Preferences applet, pan0 (adhoc-network) becomes available. I configured it in /etc/network/interfaces: iface pan0 inet static address 10.254.2.254 netmask 255.255.255.0 pre-up /etc/init.d/dnsmasq restart up iptables -t nat -A POSTROUTING -o pan0 -j MASQUERADE down iptables -t nat -D POSTROUTING -o pan0 -j MASQUERADE I'm using dnsmasq to provide DHCP/DNS for tun/tap interfaces so I added a range to /etc/dnsmasq.conf # egrep -v '^#|^$' /etc/dnsmasq.conf user=nobody interface=kvm0 interface=pan0 domain=lan.domain.net dhcp-range=kvm,10.254.1.1,10.254.1.253,255.255.255.0,10.254.1.255,8h dhcp-range=pan,10.254.2.1,10.254.2.253,255.255.255.0,10.254.2.255,8h # ifup pan0 Restarting DNS forwarder and DHCP server: dnsmasq. # ifconfig pan0 pan0 Link encap:Ethernet HWaddr 00:00:00:00:00:00 inet addr:10.254.2.254 Bcast:10.254.2.255 Mask:255.255.255.0 inet6 addr: fe80::200:ff:fe00:0/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:145 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:0 (0.0 b) TX bytes:29934 (29.2 KB) -- PAN NAP not working on Ubuntu Gutsy https://bugs.launchpad.net/bugs/172823 You received this bug notification because you are a member of Ubuntu Bugs, which is the bug contact for Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs