maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Nokia N900 (https://talk.maemo.org/forumdisplay.php?f=44)
-   -   [HOWTO] N900 Bluetooth-PAN Tethering (N900 supplies Internet Access for PC) (https://talk.maemo.org/showthread.php?t=58570)

9000 2011-03-18 06:06

Re: [HOWTO] N900 Bluetooth-PAN Tethering (N900 supplies Internet Access for PC)
 
What do you get when you run the following as root?

Code:

ifconfig bnep0 up
ifconfig bnep0


JadeH 2011-03-18 08:19

Re: [HOWTO] N900 Bluetooth-PAN Tethering (N900 supplies Internet Access for PC)
 
error: no such device

9000 2011-03-18 08:29

Re: [HOWTO] N900 Bluetooth-PAN Tethering (N900 supplies Internet Access for PC)
 
Quote:

Originally Posted by JadeH (Post 970128)
error: no such device

then...how about:

Code:

lsmod | grep bnep

JadeH 2011-03-19 01:06

Re: [HOWTO] N900 Bluetooth-PAN Tethering (N900 supplies Internet Access for PC)
 
I got it working! I had to reinstall something related to libicd, but now I see bnep0, thanks for your help

9000 2011-03-19 05:47

Re: [HOWTO] N900 Bluetooth-PAN Tethering (N900 supplies Internet Access for PC)
 
Quote:

Originally Posted by JadeH (Post 970689)
I got it working! I had to reinstall something related to libicd, but now I see bnep0, thanks for your help

Thanks for your feedback too! I'll take note on that.

jschan 2011-03-31 06:30

Re: [HOWTO] N900 Bluetooth-PAN Tethering (N900 supplies Internet Access for PC)
 
Thanks for this thread. I already had Bluetooth DUN on my laptop, but also just configured Bluetooth PAN just to understand it better. The script and worked like a charm except I just went ahead and used manual IP configuration on my laptop (including setting up Google's DNS rather than changing resolv settings on the n900).

Now that I'm all up and running with PAN tethering on my laptop, I thought I'd give it a go on my shiny new WiFi XOOM. I've gotten to the point where I can tell the XOOM to tether to the n900. However, I can't get any routing working (not even pings). The XOOM keeps reporting no IPv4 values (0.0.0.0), and I haven't figured out how to manually set the values without rooting it. Anyone have any thoughts about how I can do that on an unrooted WiFi ZOOM?

Note: Not being able to tether the XOOM to the n900 will likely result in a returned XOOM, so I'd rather not root it. Also, WiFi tethering is out since the n900 currently only support ad-hoc mode and Android will only connect to WiFi networks in infrastructure mode.

9000 2011-03-31 11:41

Re: [HOWTO] N900 Bluetooth-PAN Tethering (N900 supplies Internet Access for PC)
 
Quote:

Originally Posted by jschan (Post 978945)
Thanks for this thread. I already had Bluetooth DUN on my laptop, but also just configured Bluetooth PAN just to understand it better. The script and worked like a charm except I just went ahead and used manual IP configuration on my laptop (including setting up Google's DNS rather than changing resolv settings on the n900).

Now that I'm all up and running with PAN tethering on my laptop, I thought I'd give it a go on my shiny new WiFi XOOM. I've gotten to the point where I can tell the XOOM to tether to the n900. However, I can't get any routing working (not even pings). The XOOM keeps reporting no IPv4 values (0.0.0.0), and I haven't figured out how to manually set the values without rooting it. Anyone have any thoughts about how I can do that on an unrooted WiFi ZOOM?

Note: Not being able to tether the XOOM to the n900 will likely result in a returned XOOM, so I'd rather not root it. Also, WiFi tethering is out since the n900 currently only support ad-hoc mode and Android will only connect to WiFi networks in infrastructure mode.

I don't have XOOM but from what you described it is probably a DNS problem.

Have you try pinging a pingable external IP address like 67.195.160.76?

jschan 2011-04-01 05:06

Re: [HOWTO] N900 Bluetooth-PAN Tethering (N900 supplies Internet Access for PC)
 
Thanks for the response, 9k.

I'm not sure it's a DNS problem as I can't ping the n900 by ip address from the XOOM. It looks like the N900 gets setup with both an IPv4 and an IPv6 address on the bnep0 interface, but the XOOM only ever gets an IPv6 address.

I'm not currently setup with IPv6 via gprs and don't know enough about the subject yet to know what my options are at this point to get everything talking. Spending my time just reading up at the moment while hoping someone can help direct me down the right path. There's a long thread about IPv6 and some links to bluetooth pan tethering on IPv6 that I'm hoping leads to an epiphany for me.

9000 2011-04-01 06:24

Re: [HOWTO] N900 Bluetooth-PAN Tethering (N900 supplies Internet Access for PC)
 
Quote:

Originally Posted by jschan (Post 979648)
Thanks for the response, 9k.

I'm not sure it's a DNS problem as I can't ping the n900 by ip address from the XOOM. It looks like the N900 gets setup with both an IPv4 and an IPv6 address on the bnep0 interface, but the XOOM only ever gets an IPv6 address.

I'm not currently setup with IPv6 via gprs and don't know enough about the subject yet to know what my options are at this point to get everything talking. Spending my time just reading up at the moment while hoping someone can help direct me down the right path. There's a long thread about IPv6 and some links to bluetooth pan tethering on IPv6 that I'm hoping leads to an epiphany for me.

You cannot ping N900 by its IP address as it does not respond to icmp request by default. You'd have to change its behavior by setting the flag:

Code:

echo 0 > /proc/sys/net/ipv4/icmp_echo_ignore_all
Besides the IP address assignment, I'm not sure if N900's PAN supports IPv6. However, if you'd like to have the iptables accept ipv6 payload, you might have to specify it:

Code:

iptables -t nat -A POSTROUTING -o gprs0 -p ipv6 -j MASQUERADE
or it might _not_ need a specific flag for ipv6 routing, anyway, please test and feedback. Thank you! ^^

jschan 2011-04-01 07:19

Re: [HOWTO] N900 Bluetooth-PAN Tethering (N900 supplies Internet Access for PC)
 
I changed the ping setting, but I'm getting a new "network is unreachable" error now. It looks like the XOOM is neither getting an IPv4 nor an IPv6 address now, but even after reverting the recent changes, it doesn't seem to be helping. :S


All times are GMT. The time now is 00:09.

vBulletin® Version 3.8.8