Ubuntu下組建面向如果家裡已經有一台台式機上網,那麼用藍牙組建無線網絡可以作為wifi之外的另一選擇。
在linux下對於藍牙PAN(personal area network)的構件是非常簡單的
假定你有兩快藍牙適配器
地址分別是:
11:22:33:44:55:66 host
66:55:44:22:22:11 client
========================================================================
對於host(也就是你連接外網的台式機)
修改/etc/default/bluetooth
############ PAND
#
# Run pand -- ethernet: creates new network interfaces bnep<N>
# that can be configured in /etc/network/interfaces
# set to 1 for enabled, 0 for disabled
PAND_ENABLED=1
# Arguments to pand
# Read the PAN howto for ways to set this up
# http://bluez.sourceforge.net/contrib/HOWTO-PAN
PAND_OPTIONS="--listen --master --role NAP"
配置host藍牙適配器ip
修改/etc/network/interfaces
添加
auto bnep0
iface bnep0 inet static
address 192.168.128.1
netmask 255.255.255.0
重啟藍牙服務
sudo /etc/init.d/bluetooth restart