w720N 無線打印服務器


用這個就是想無線打印,打印機也不連電腦共享,就連上openwrt。

首先是刷機:

我是W720N,https://openwrt.org/toh/tp-link/tl-wr720n,官方說支持到17.01.5。只是打印,就不再編譯了。

其次是中繼到原有的無線網絡,要求同網段。

https://bandwh.com/net/28.html   openwrt通過中繼橋設置同網段無線中繼

https://oldwiki.archive.openwrt.org/doc/recipes/relayclient   帶有中繼(偽橋)的路由客戶端

也就是安裝luci-proto-relay 設置新接口中繼橋。

SSH登錄上去

更新組件包package
opkg update
安裝組件
opkg install luci-app-p910nd
opkg install kmod-usb-printer

到服務去打開打印服務器

windows添加tcp/ip打印機,192.168.1.1:9100  帶端口

手機可以用printbot 來打印,添加打印機 不需要填端口

 

 

詳細說明:

刷機:

http://downloads.openwrt.org/releases/17.01.5/targets/ar71xx/generic/openwrt-17.01.5-ar71xx-generic-tl-wr720n-v3-squashfs-sysupgrade.bin

就刷這個包

 

Step 1: Information to Note 注意事項

  1. Your Main Router's WPA2 encryption key (aka "WiFi password")
  2. Your Main Router's subnet (In my example, I will use 172.16.16.0/16 which means my subnet mask is 255.255.0.0)
  3. Your Main Router's SSID (aka "WiFi network name")
  1. 找到你主路由的wifi密碼。或者說上級路由的wifi密碼
  2. 上級網絡的子網,我的實驗環境是 10.0.0.1/24,255.255.255.0
  3. 上級無線路由的無線名

Step 2: Initial Set-up 初始設置

  1. Power on your  Client Router
  2. Connect an Ethernet (RJ45) cable from your Computer to your Client Router.
  3. Set your computer to have a Static IP address of 192.168.1.5 and a  Gateway of 192.168.1.1
  4. In System > Administration, make sure you have the packages  luci-proto-relay and  relayd-bridge installed.
  1. 打開子路由電源。
  2. 使用網線連接電腦和子路由LAN口。
  3. 設置電腦IP地址:192.168.1.5,網關192.168.1.1。
  4. 通過Administration--Software--Installed packages確認已安裝uci-proto-relay and relayd-bridge。
  5. luci-proto-relay and relayd-bridge 可以在聯網以后檢查是否安裝。

Step 3: Joining the Main Router's WiFi

  1. Open your  browser, and  go to http://192.168.1.1/
  2. Go to the page  Network >  WiFi
  3. Beside your preferred radio, such as  Radio1 (801.11an)click Scan.
  4. Select your  Main Router's SSID (ex: Eagle)
  5. Enter your  PSK (Wi-Fi password).
  6. Create a  NEW Network called " wwan" or anything else you like (ex: " Quack")
  7. Firewall-Zone should be set to " lan".
  1. 打開瀏覽器訪問  http://192.168.1.1/
  2. 進入網絡設置  Network >  WiFi
  3. 在  802.11bgn (radio0),右邊  點擊Scan.
  4. 選擇你主路由的無線名,點擊右邊的Join Network。
  5. .
  6.  " wwan" 或輸入你喜歡的名字。
  7. Firewall-Zone 選擇" lan".

Step 4: Create the WiFi Client Interface 編輯WIFI客戶端類型

  1. Go to the page  Network >  Interfaces
  2. Edit the above interface (called " wwan", " Quack" or whatever you chose)
  3. Set  Protocol/Mode =  DHCP Client
  1. 菜單  Network >  Interfaces
  2. 編輯你的網絡(名字應該是" wwan", 或你自己設置的名字)
  3. 設置 Protocol/Mode =  DHCP Client
  4. 這時候應該已經能上網了,安裝插件
    1. System--Software--Update lists   更新軟件包列表
    2. Available packages (luci-proto-relay)    -- Install 安裝
    3.    -- Install 安裝
    4.    -- Install 安裝

Step 5: Create Bridge Interface 創建橋接

  1. Go to the page  Network >  Interfaces
  2. Create a  new Interface called " stabridge"
  3. Set  Protocol/Mode =  Relay Bridge
  4. Relay between " lan" and " wwan", " Quack" or whatever you chose)
  5. Local IPv4 Address for the Bridge = " 172.16.16.154"
  1. 進入  Network >  Interfaces
  2. 創建一個新接口  Add new Interfaces -- 
  3. 設置  Protocol/Mode =  Relay Bridge (中繼橋)
  4. 同時選擇" lan" 和" wwan", 或你自己定義的。
  5. Local IPv4 Address 給橋設置IP地址 " 10.0.0.4"

Step 6: Update the "lan" Interface 編輯LAN類型

  1. Go to the page  Network >  Interfaces
  2. Beside " lan", click  Edit.
  3. Set  IPv4 Gateway to the  IP address of your Main Router (in my case, it's  172.16.16.1)
  4. Set  Custom DNS to also be the  IP address of your Main Router (in my case, it's  172.16.16.1)
  5. Under the section of  DHCP Server, CHECK OFF " Ignore Interface"
  1.   Network >  Interfaces
  2. 選擇" lan", 點擊 Edit.
  3. 設置 IPv4 Gateway 到你的主路由IP(在我這個示例中 10.0.0.1)
  4. 設置 Custom DNS 一樣到主路由IP(在我這個示例中 10.0.0.1)
  5. DHCP Server - General Setup - Ignore interface Disable DHCP for this interface.  選購,關閉LAN接口的DHCP.

Step 7: Allow Firewall Forwarding 允許防火牆轉發

  1. Go to the page  Network >  Firewall
  2. Scroll down to "Zones". Beside " lan", click  Edit.Set  Forward =  Accept. (Input & Output should already be set to Accept)
  3. Set Covered Network = "lan" (default) & "wwan", "Quack" or whatever you chose)
  4. "Zones" - " lan", 點擊  Edit.
  5. 設置  Forward =  Accept.
  6. 設置 Input = Accept
  7. 設置 output = Accept
  8. 勾選  Covered Network = " lan" 和 " wwan", 或你自定義的。
  1.   Network >  Firewall
  2. "Zones" - " lan", 點擊  Edit.設置  Forward =  Accept.
  3. 設置 Input = Accept
  4. 設置 output = Accept
  5. 勾選 Covered Network = "lan" 和 "wwan", 或你自定義的。

Step 8: Set a DHCP Reservation in the Main Router's Settings 在主路由設置子路由靜態DHCP

  1. In your Main Router, set a static DHCP reservation for your Client Router's MAC Address. Use the SAME IP address as in Step 5-5 (In my case, it would be  172.16.16.154)
  2. 在主路由綁定子路由的MAC地址到靜態DHCP 在我的例子是10.0.0.4

Step 9: Reboot Your Client Router  重啟子路由

  1. Go to the page  System >  Reboot >  Reboot Now
  2. On your computer, clear your static IP settings, and let the IP be retrieved automatically.
  3. Your Client Router should now be accessible at the address of  172.16.16.154 or whatever you chose.
  4. Your computer should also have an IP address in the same subnet as your Main Router (In my case, it's  172.16.16.#
  5. If you set your computer to the same static IP address settings as in Step 2-3, you should still be able to connect to the client router at  192.168.1.1
  1.   System >  Reboot >  Reboot Now
  2. 在電腦取消靜態IP,改為DHCP獲取IP地址
  3. 你應該可以通過橋地址 ,子路由靜態DHCP地址來訪問子路由

Step 10: Enable p910nd - Printer server  打開P910nd打印服務器

  1. Services-p910nd - Printer server  勾選enable

 

 

sane-backends-all  這個包是掃描儀用的

SANE (Scanner Access Now Easy) is a universal scanner interface. . Metapackage for selecting all SANE Backends

------------恢復內容開始------------

用這個就是想無線打印,打印機也不連電腦共享,就連上openwrt。

首先是刷機:

我是W720N,https://openwrt.org/toh/tp-link/tl-wr720n,官方說支持到17.01.5。只是打印,就不再編譯了。

其次是中繼到原有的無線網絡,要求同網段。

https://bandwh.com/net/28.html   openwrt通過中繼橋設置同網段無線中繼

https://oldwiki.archive.openwrt.org/doc/recipes/relayclient   帶有中繼(偽橋)的路由客戶端

也就是安裝luci-proto-relay 設置新接口中繼橋。

SSH登錄上去

更新組件包package
opkg update
安裝組件
opkg install luci-app-p910nd
opkg install kmod-usb-printer

到服務去打開打印服務器

windows添加tcp/ip打印機,192.168.1.1:9100  帶端口

手機可以用printbot 來打印,添加打印機 不需要填端口

 

 

詳細說明:

刷機:

http://downloads.openwrt.org/releases/17.01.5/targets/ar71xx/generic/openwrt-17.01.5-ar71xx-generic-tl-wr720n-v3-squashfs-sysupgrade.bin

就刷這個包

 

Step 1: Information to Note 注意事項

  1. Your Main Router's WPA2 encryption key (aka "WiFi password")
  2. Your Main Router's subnet (In my example, I will use 172.16.16.0/16 which means my subnet mask is 255.255.0.0)
  3. Your Main Router's SSID (aka "WiFi network name")
  1. 找到你主路由的wifi密碼。或者說上級路由的wifi密碼
  2. 上級網絡的子網,我的實驗環境是 10.0.0.1/24,255.255.255.0
  3. 上級無線路由的無線名

Step 2: Initial Set-up 初始設置

  1. Power on your  Client Router
  2. Connect an Ethernet (RJ45) cable from your Computer to your Client Router.
  3. Set your computer to have a Static IP address of 192.168.1.5 and a  Gateway of 192.168.1.1
  4. In System > Administration, make sure you have the packages  luci-proto-relay and  relayd-bridge installed.
  1. 打開子路由電源。
  2. 使用網線連接電腦和子路由LAN口。
  3. 設置電腦IP地址:192.168.1.5,網關192.168.1.1。
  4. 通過Administration--Software--Installed packages確認已安裝uci-proto-relay and relayd-bridge。
  5. luci-proto-relay and relayd-bridge 可以在聯網以后檢查是否安裝。

Step 3: Joining the Main Router's WiFi

  1. Open your  browser, and  go to http://192.168.1.1/
  2. Go to the page  Network >  WiFi
  3. Beside your preferred radio, such as  Radio1 (801.11an)click Scan.
  4. Select your  Main Router's SSID (ex: Eagle)
  5. Enter your  PSK (Wi-Fi password).
  6. Create a  NEW Network called " wwan" or anything else you like (ex: " Quack")
  7. Firewall-Zone should be set to " lan".
  1. 打開瀏覽器訪問  http://192.168.1.1/
  2. 進入網絡設置  Network >  WiFi
  3. 在  802.11bgn (radio0),右邊  點擊Scan.
  4. 選擇你主路由的無線名,點擊右邊的Join Network。
  5. .
  6.  " wwan" 或輸入你喜歡的名字。
  7. Firewall-Zone 選擇" lan".

Step 4: Create the WiFi Client Interface 編輯WIFI客戶端類型

  1. Go to the page  Network >  Interfaces
  2. Edit the above interface (called " wwan", " Quack" or whatever you chose)
  3. Set  Protocol/Mode =  DHCP Client
  1. 菜單  Network >  Interfaces
  2. 編輯你的網絡(名字應該是" wwan", 或你自己設置的名字)
  3. 設置 Protocol/Mode =  DHCP Client
  4. 這時候應該已經能上網了,安裝插件
    1. System--Software--Update lists   更新軟件包列表
    2. Available packages (luci-proto-relay)    -- Install 安裝
    3.    -- Install 安裝
    4.    -- Install 安裝

Step 5: Create Bridge Interface 創建橋接

  1. Go to the page  Network >  Interfaces
  2. Create a  new Interface called " stabridge"
  3. Set  Protocol/Mode =  Relay Bridge
  4. Relay between " lan" and " wwan", " Quack" or whatever you chose)
  5. Local IPv4 Address for the Bridge = " 172.16.16.154"
  1. 進入  Network >  Interfaces
  2. 創建一個新接口  Add new Interfaces -- 
  3. 設置  Protocol/Mode =  Relay Bridge (中繼橋)
  4. 同時選擇" lan" 和" wwan", 或你自己定義的。
  5. Local IPv4 Address 給橋設置IP地址 " 10.0.0.4"

Step 6: Update the "lan" Interface 編輯LAN類型

  1. Go to the page  Network >  Interfaces
  2. Beside " lan", click  Edit.
  3. Set  IPv4 Gateway to the  IP address of your Main Router (in my case, it's  172.16.16.1)
  4. Set  Custom DNS to also be the  IP address of your Main Router (in my case, it's  172.16.16.1)
  5. Under the section of  DHCP Server, CHECK OFF " Ignore Interface"
  1.   Network >  Interfaces
  2. 選擇" lan", 點擊 Edit.
  3. 設置 IPv4 Gateway 到你的主路由IP(在我這個示例中 10.0.0.1)
  4. 設置 Custom DNS 一樣到主路由IP(在我這個示例中 10.0.0.1)
  5. DHCP Server - General Setup - Ignore interface Disable DHCP for this interface.  選購,關閉LAN接口的DHCP.

Step 7: Allow Firewall Forwarding 允許防火牆轉發

  1. Go to the page  Network >  Firewall
  2. Scroll down to "Zones". Beside " lan", click  Edit.Set  Forward =  Accept. (Input & Output should already be set to Accept)
  3. Set Covered Network = "lan" (default) & "wwan", "Quack" or whatever you chose)
  4. "Zones" - " lan", 點擊  Edit.
  5. 設置  Forward =  Accept.
  6. 設置 Input = Accept
  7. 設置 output = Accept
  8. 勾選  Covered Network = " lan" 和 " wwan", 或你自定義的。
  1.   Network >  Firewall
  2. "Zones" - " lan", 點擊  Edit.設置  Forward =  Accept.
  3. 設置 Input = Accept
  4. 設置 output = Accept
  5. 勾選 Covered Network = "lan" 和 "wwan", 或你自定義的。

Step 8: Set a DHCP Reservation in the Main Router's Settings 在主路由設置子路由靜態DHCP

  1. In your Main Router, set a static DHCP reservation for your Client Router's MAC Address. Use the SAME IP address as in Step 5-5 (In my case, it would be  172.16.16.154)
  2. 在主路由綁定子路由的MAC地址到靜態DHCP 在我的例子是10.0.0.4

Step 9: Reboot Your Client Router  重啟子路由

  1. Go to the page  System >  Reboot >  Reboot Now
  2. On your computer, clear your static IP settings, and let the IP be retrieved automatically.
  3. Your Client Router should now be accessible at the address of  172.16.16.154 or whatever you chose.
  4. Your computer should also have an IP address in the same subnet as your Main Router (In my case, it's  172.16.16.#
  5. If you set your computer to the same static IP address settings as in Step 2-3, you should still be able to connect to the client router at  192.168.1.1
  1.   System >  Reboot >  Reboot Now
  2. 在電腦取消靜態IP,改為DHCP獲取IP地址
  3. 你應該可以通過橋地址 ,子路由靜態DHCP地址來訪問子路由

Step 10: Enable p910nd - Printer server  打開P910nd打印服務器

  1. Services-p910nd - Printer server  勾選enable

 

 

 

https://openwrt.org/docs/guide-user/services/scanner_server/saned

掃描的說明文件

還沒搞定


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM