亚洲av成人无遮挡网站在线观看,少妇性bbb搡bbb爽爽爽,亚洲av日韩精品久久久久久,兔费看少妇性l交大片免费,无码少妇一区二区三区

  免費(fèi)注冊(cè) 查看新帖 |

Chinaunix

  平臺(tái) 論壇 博客 文庫
最近訪問板塊 發(fā)新帖
查看: 1143 | 回復(fù): 0
打印 上一主題 下一主題

ubuntu下組建基于藍(lán)牙的無線網(wǎng)網(wǎng)絡(luò) [復(fù)制鏈接]

論壇徽章:
0
跳轉(zhuǎn)到指定樓層
1 [收藏(0)] [報(bào)告]
發(fā)表于 2007-02-14 15:31 |只看該作者 |倒序?yàn)g覽

如果家里已經(jīng)有一臺(tái)臺(tái)式機(jī)上網(wǎng),那么用藍(lán)牙組建無線網(wǎng)絡(luò)可以作為wifi之外的另一選擇。
在linux下對(duì)于藍(lán)牙PAN(personal area network)的構(gòu)件是非常簡單的
假定你有兩快藍(lán)牙適配器
地址分別是:
11:22:33:44:55:66   host
66:55:44:22:22:11   client
========================================================================
對(duì)于host(也就是你連接外網(wǎng)的臺(tái)式機(jī))
修改/etc/default/bluetooth
############ PAND                                                               
#                                                                              
# Run pand -- ethernet: creates new network interfaces bnep                  
# 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藍(lán)牙適配器ip
修改/etc/network/interfaces
添加
auto bnep0
iface bnep0 inet static
address 192.168.128.1
netmask 255.255.255.0
重啟藍(lán)牙服務(wù)
sudo /etc/init.d/bluetooth restart
配置網(wǎng)絡(luò)nat
sudo -s
echo 1 > /proc/sys/net/ipv4/ip_forward
iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
===================================================================
對(duì)于client就很簡單了
直接修改
修改/etc/default/bluetooth
############ PAND                                                               
#                                                                              
# Run pand -- ethernet: creates new network interfaces bnep                  
# 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藍(lán)牙適配器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
重啟藍(lán)牙服務(wù)
sudo /etc/init.d/bluetooth restart
你就可以通過藍(lán)牙上網(wǎng)了,以上在ubuntu 6.10下測試通過
注意藍(lán)牙適配器建議買2.0標(biāo)準(zhǔn)理論速度可以達(dá)到3Mbps,實(shí)際速度在100k左右,基本滿足要求


本文來自ChinaUnix博客,如果查看原文請(qǐng)點(diǎn):http://blog.chinaunix.net/u/13673/showart_247333.html
您需要登錄后才可以回帖 登錄 | 注冊(cè)

本版積分規(guī)則 發(fā)表回復(fù)

  

北京盛拓優(yōu)訊信息技術(shù)有限公司. 版權(quán)所有 京ICP備16024965號(hào)-6 北京市公安局海淀分局網(wǎng)監(jiān)中心備案編號(hào):11010802020122 niuxiaotong@pcpop.com 17352615567
未成年舉報(bào)專區(qū)
中國互聯(lián)網(wǎng)協(xié)會(huì)會(huì)員  聯(lián)系我們:huangweiwei@itpub.net
感謝所有關(guān)心和支持過ChinaUnix的朋友們 轉(zhuǎn)載本站內(nèi)容請(qǐng)注明原作者名及出處

清除 Cookies - ChinaUnix - Archiver - WAP - TOP