導航:首頁 > 網路共享 > openWRT網路共享不了

openWRT網路共享不了

發布時間:2023-01-17 10:39:56

1. openwrt如何網路共享硬碟

你如果想共享它的一個硬碟的話,可以用相應的數據線連接匹配成功之後,然後點擊一下你需要共享的一些資料就可以了。

2. openwrt作客戶端連接移動wlan,怎樣共享上網

說不上來

3. openwrt 怎樣掛載windows共享

步驟
1、用putty連接路由器,用putty下載安裝所需的軟體包:(直接復制下面內容到提示符)
opkg update
opkg install kmod-usb-core
opkg install kmod-usb2 #安裝usb2.0
opkg install kmod-usb-ohci #安裝usb ohci控制器驅動
opkg install kmod-usb-storage #安裝usb存儲設備驅動
opkg install kmod-fs-ext3 #安裝ext3分區格式支持組件
opkg install kmod-fs-vfat #掛載FAT
opkg install ntfs-3g #掛載NTFS
opkg install mount-utils #掛載卸載工具
opkg install block-mount
opkg install luci-app-samba #SAMBA網路共享服務
/etc/init.d/samba enable #啟用並開始SAMBA共享
/etc/init.d/samba restart
注意在線安裝軟體包需保證路由器Wan口可以連接Internet
2、重啟路由器 登陸路由器設置界面 可以看到多了掛載點和網路共享兩個選項(也可全部做完再重啟)
3、用WinSCP連接路由器,打開/etc/hotplug.d/block/10-mount文件(如果不存在請新建)
修改為如下內容
#!/bin/sh
# Copyright (C) 2009 OpenWrt.org (C) 2010 OpenWrt.org.cn
blkdev=`dirname $DEVPATH`
if [ `basename $blkdev` !="block" ]; then
device=`basename $DEVPATH`
case "$ACTION" in
add)
mkdir -p /mnt/$device
# vfat & ntfs-3g check
if [ `which fdisk` ]; then
isntfs=`fdisk -l | grep$device | grep NTFS`
isvfat=`fdisk -l | grep$device | grep FAT`
isfuse=`lsmod | grepfuse`
isntfs3g=`whichntfs-3g`
else
isntfs=""
isvfat=""
fi

# mount with ntfs-3g ifpossible, else with default mount
if [ "$isntfs" -a"$isfuse" -a "$isntfs3g" ]; then
ntfs-3g -o nls=utf8/dev/$device /mnt/$device
elif [ "$isvfat" ];then
mount -t vfat -oiocharset=utf8,rw,sync,umask=0000,dmask=0000,fmask=0000 /dev/$device/mnt/$device
else
mount /dev/$device/mnt/$device
fi
if[ -f /dev/${device}/swapfile ]; then
mkswap /dev/${device}/swapfile
swapon /dev/${device}/swapfile
fi
;;
remove)
if[ -f /dev/${device}/swapfile ]; then
swapoff /dev/${device}/swapfile
fi
umount /dev/$device
;;
esac

fi
這段腳本可實現自動掛載,如不想編輯腳本,也可在掛載點中自己設置(PS.沒試過)
插入U盤或移動硬碟再次重啟路由器 在掛載點中就可以看到已經掛載的設備
3、如果用Hub接入多個U盤,第二個設備就是/mnt/sdb,以此類推
4、進入網路共享中,添加共享目錄例如/mnt/sda1,許可權為777(即完全訪問)。
至此就可以在網上鄰居中看到路由器的這個共享文件夾了。
5、注意XP系統 必須保證
Computer Browser
Server
Application Layer Gatway Service
Windows Firewall/Internet ConnectionSharing
這幾個服務開啟並且在本地連接屬性中
Microsoft 網路的文件和列印機共享
啟用時網上鄰居文件才可以訪問

4. 路由器刷了openwrt固件,路由器上掛了一個內網samba協議文件共享設備,上面插著硬碟

你去搜索samba使用的埠
不只一個
好多個
全部都需要做映射
也需要注冊ddns
然後使用samba的客服端訪問你注冊的域名就可以
只是非常慢
不實際

5. openwrt路由器怎麼設置共享

無線開關
/etc/config/wireless
#option disabled 1
實現:注釋掉該項或 改值為0 使能

網路介面配置
/etc/config/network

config 'interface' 'loopback'
option 'ifname' 'lo'
option 'proto' 'static'
option 'ipaddr' '127.0.0.1'
option 'netmask' '255.0.0.0'

config 'interface' 'lan'
option 'type' 'bridge' //橋接模式
option 'ifname' 'eth1' //對應lan1-lan3
option 'proto' 'static' //靜態ip地址
option 'ipaddr' '192.168.2.1' //lan內訪問路由地址(為了不與上一級路由沖突,換了個網段)
option 'netmask' '255.255.255.0'
option 'nat' '1' //轉發數據包,這句很重要 wan口上網後 所有連到lan的機器就可以上網了

config 'interface' 'wan' //讓wan口可以上網(撥號,連接上級路由...都行 和平時讓路由連網沒區別)
option 'ifname' 'eth0' //對應DB120的lan4口
option 'proto' 'static' //這里我用的是上級路由連的網
option 'ipaddr' '192.168.1.2' //wan口ip地址和上級路由在一個網段
option 'netmask' '255.255.255.0'
option 'gateway' '192.168.1.1' //上級路由IP地址
option 'dns' '202.101.172.46' //DNS伺服器地址 根據各地實踐情況決定

網橋命令:
brctl
顯示當前網橋
brctl show
添加網路介面到已建網橋
brctl addif br-lan eth0
brctl addif br-lan eth1

默認有的 (轉發功能)
/etc/config/firewall
config forwarding
option src lan
option dest wan

下面默認的改一個地方
config zone
option name wan
option network 'wan'
option input REJECT 改成 ACCEPT 方便以後從wan口直接訪問路由
option output ACCEPT
option forward REJECT
option masq 1
option mtu_fix 1

6. openwrt共享文件密碼錯誤

出現訪問文件密碼錯誤原因如下:
1、共享文件設置了密碼保護,非授權用戶訪問,默認需要密碼確認,如果沒有密碼,就會報密碼錯誤。
2、設置共享文件前,系統為了安全性,會要求用戶設定系統登錄密碼,在訪問共享文件的時候,輸入登錄密碼,一般能否訪問共享的文件。

7. openwrt 路由 伺服器端開共享 終端用SMB鏈接 路由剛開時正常 過十幾分鍾斷開 再也連不上了 需要重啟路由

路由器內村太小了可能帶不動,或者重新刷個op別的版本的固件,木前性價比高的不是tp系列路由器了,360路由器p1就比它好使多了。 我在使用360路由器p1,感覺穩定性還不錯,鋁合金外殼比較滿意,小巧玲瓏,適合年輕人。通過手機端管理路由器的方式感覺比較簡單易上手。網路穩定比較好,使用起來網路比較流暢。

8. openwrt 怎樣掛載windows共享

剛買了能刷OpenWrt的路由器,設置個移動硬碟共享訪問就折騰了好久。刪繁就簡,把我在網上查到的方法整理成這個經驗。

刷好OpenWrt(帶LuCI界面)的路由器一台 當然必須帶USB介面
軟體:putty 用於命令行操作路由器
軟體:WinSCP 用於修改路由器配置文件
用putty連接路由器,用putty下載安裝所需的軟體包:(直接復制下面內容到提示符)
opkg update
opkg install kmod-usb-core
opkg install kmod-usb2 #安裝usb2.0
opkg install kmod-usb-ohci #安裝usb ohci控制器驅動
opkg install kmod-usb-storage #安裝usb存儲設備驅動
opkg install kmod-fs-ext3 #安裝ext3分區格式支持組件
opkg install kmod-fs-vfat #掛載FAT
opkg install ntfs-3g #掛載NTFS
opkg install mount-utils #掛載卸載工具
opkg install block-mount
opkg install luci-app-samba #SAMBA網路共享服務
/etc/init.d/samba enable #啟用並開始SAMBA共享
/etc/init.d/samba restart
注意 在線安裝軟體包需保證路由器Wan口可以連接Internet
重啟路由器 登陸路由器設置界面 可以看到多了掛載點和網路共享兩個選項(也可全部做完再重啟)
用WinSCP連接路由器,打開/etc/hotplug.d/block/10-mount文件(如果不存在請新建)
修改為如下內容
#!/bin/sh

# Copyright (C) 2009 OpenWrt.org (C) 2010 OpenWrt.org.cn

blkdev=`dirname $DEVPATH`
if [ `basename $blkdev` != "block" ]; then

device=`basename $DEVPATH`
case "$ACTION" in
add)
mkdir -p /mnt/$device
# vfat & ntfs-3g check
if [ `which fdisk` ]; then
isntfs=`fdisk -l | grep $device | grep NTFS`
isvfat=`fdisk -l | grep $device | grep FAT`
isfuse=`lsmod | grep fuse`
isntfs3g=`which ntfs-3g`
else
isntfs=""
isvfat=""
fi

# mount with ntfs-3g if possible, else with default mount
if [ "$isntfs" -a "$isfuse" -a "$isntfs3g" ]; then
ntfs-3g -o nls=utf8 /dev/$device /mnt/$device
elif [ "$isvfat" ]; then
mount -t vfat -o iocharset=utf8,rw,sync,umask=0000,dmask=0000,fmask=0000 /dev/$device /mnt/$device
else
mount /dev/$device /mnt/$device
fi
if [ -f /dev/${device}/swapfile ]; then
mkswap /dev/${device}/swapfile
swapon /dev/${device}/swapfile
fi
;;
remove)
if [ -f /dev/${device}/swapfile ]; then
swapoff /dev/${device}/swapfile
fi
umount /dev/$device
;;
esac

fi
這段腳本可實現自動掛載,如不想編輯腳本,也可在掛載點中自己設置(PS.沒試過)
插入U盤或移動硬碟 再次重啟路由器 在掛載點中就可以看到已經掛載的設備
如果U盤只有一個分區,就是/mnt/sda1,第二個分區是/mnt/sda2
如果用Hub接入多個U盤,第二個設備就是/mnt/sdb,以此類推
進入網路共享中,添加共享目錄例如/mnt/sda1,許可權為777(即完全訪問)。
至此就可以在網上鄰居中看到路由器的這個共享文件夾了。
注意XP系統 必須保證
Computer Browser
Server
Application Layer Gatway Service
Windows Firewall/Internet Connection Sharing
這幾個服務開啟 並且在本地連接屬性中
Microsoft 網路的文件和列印機共享
啟用時 網上鄰居文件才可以訪問

9. 255D OpenWrt-DreamBox 20120828 網路共享 不知如何搞。拜託了各位 謝謝

op裡面,你把掛載點和samba設置界面,截個圖發上來看看。一般都是設置不對,設置對了win'7直接就可以訪問了。,不需要什麼附件的 查看更多答案>>

10. 手機無法訪問openwrtsamba共享

網路問題。
由於地理位置和附近環境的影響,就會導致信號的傳遞。
手機,全稱為行動電話或無線電話,通常稱為手機,原本只是一種通訊工具。

閱讀全文

與openWRT網路共享不了相關的資料

熱點內容
網路小說里的金陵是哪裡 瀏覽:148
電腦使用網路的應用 瀏覽:950
網路安全手抄報怎麼寫二年級 瀏覽:851
網路無線插卡路由器 瀏覽:626
手機克隆藍牙和網路哪個快 瀏覽:342
網路主播帶貨都是哪裡的貨 瀏覽:200
安卓蜂窩移動網路在哪裡 瀏覽:727
網路連接需要登錄怎麼操作 瀏覽:768
長沙網路安全it培訓入行門檻低 瀏覽:951
網路機頂盒哪個牌子好用不卡頓 瀏覽:597
網路下載文字有換行怎麼替換 瀏覽:909
網路用語dm是什麼意思 瀏覽:174
iphone6蜂窩移動網路會斷網嗎 瀏覽:700
網路用語洋玩具是什麼意思 瀏覽:935
電腦網路被攻擊 瀏覽:113
廣西柳州電視網路安裝多少錢 瀏覽:368
wifi讀書顯示網路異常 瀏覽:403
如何添加網路埠數 瀏覽:651
s7t5g網路在哪裡關閉 瀏覽:651
網路行為哪些違法 瀏覽:457

友情鏈接