你好,游客 登录 注册 搜索
背景:
阅读新闻

Ubuntu下组建面向蓝牙的无线网网络

[日期:2007-12-19] 来源:Linux公社  作者:Linux [字体:大 中 小]

配置网络nat

sudo -s

echo 1 > /proc/sys/net/ipv4/ip_forward

iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE

===================================================================

对于client就很简单了

直接修改

修改/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="--role PANU --connect 11:22:33:44:55:66"

配置client蓝牙适配器ip

修改/etc/network/interfaces

添加

auto bnep0

iface bnep0 inet static

address 192.168.128.10

netmask 255.255.255.0

gateway 192.168.128.1

重启蓝牙服务

sudo /etc/init.d/bluetooth restart

你就可以通过蓝牙上网了,以上在Ubuntu 6.10下测试通过

注意蓝牙适配器建议买2.0标准理论速度可以达到3Mbps,实际速度在100k左右,基本满足要求蓝牙的无线网网络

linux
相关资讯       无线网网络 
本文评论   查看全部评论 (0)
表情: 表情 姓名: 字数

       

评论声明
  • 尊重网上道德,遵守中华人民共和国的各项有关法律法规
  • 承担一切因您的行为而直接或间接导致的民事或刑事法律责任
  • 本站管理人员有权保留或删除其管辖留言中的任意内容
  • 本站有权在网站内转载或引用您的评论
  • 参与本评论即表明您已经阅读并接受上述条款