
CHAPTER 11. USE 11.3. GLOBAL NETWORKING
pand -connect xx:xx:xx:xx:xx:xx
on the other where the xx’s are the parts of the MAC address of the other device (use
hciconfig -a
to find out the MAC address). When connected, use
ifconfig bnep0
to set the IP address. Use
route add
to make routes (e.g.
route add default gw 192.168.129.1
), just as with any other network connection. You might also need to tweak
/etc/resolv.conf
on
the
˚
Angstr
¨
om device so it can resolve names into IP addresses. It should be possible to create
a bnep0 entry in /etc/network/interfaces for this.
In both cases, it is likely that you are using the other end of the Bluetooth connection as a
gateway to allow the
˚
Angstr
¨
om device to access the internet (e.g. access mail, browse the web, install
from software feeds). If the remote box is running Linux you may want to set up masquerading on
its external/outbound interface and thus allow the
˚
Angstr
¨
om device to access hosts and networks
other than the gateway. Do not forget neither to turn on
ipv4
forwarding just as in Subsubsection
11.3.2.1, p. 36. The equivalent in Windows is “Internet Connection Sharing,” accessed through the
properties for the external interface.
11.3.4 With WiFi
11.3.4.1 Preliminaries
On some devices, you may need to load specific modules to allow WiFi. It depends on the chipsets.
• For the hx4700, you need to type
modprobe hx4700-acx
modprobe acx debug=0
in a terminal before being able to use WiFi. If you do not want to modprobe specific modules
manually, you can add them in /etc/modules, just like in every normal UNIX system.
39
Komentarze do niniejszej Instrukcji