2023年11月30日发(作者:)

w720N⽆线打印服务器

⽤这个就是想⽆线打印,打印机也不连电脑共享,就连上openwrt

⾸先是刷机:

其次是中继到原有的⽆线⽹络,要求同⽹段。

也就是安装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 来打印,添加打印机 不需要填端⼝

⽆线中继后,设为wwan,然后删除其他⽹络接⼝,⽆需桥接。(因为不准备在连接这个

wifi或⽹⼝。)

详细说明:

刷机:

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/24255.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

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. 打开浏览器访问

2. 进⼊⽹络设置 Network > WiFi

3. 802.11bgn (radio0),右边 点击Scan.

4. 选择你主路由的⽆线名,点击右边的Join Network

5. WPA passphrase,输⼊你的⽆线密码。.

6. Name of the new network⾃动创建 "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. Filter: luci-proto-relay Findpackage

3. Available packages (luci-proto-relay) -- Install 安装

4. Filter: luci-i18n-p910nd-zh-cn Findpackage

5. -- Install 安装

6. Filter: kmod-usb-printer Findpackage

7. -- 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 -- Name of the new interface 创建桥的名字

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)

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 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.

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

⾸先是刷机:

其次是中继到原有的⽆线⽹络,要求同⽹段。

也就是安装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 来打印,添加打印机 不需要填端⼝

详细说明:

刷机:

就刷这个包

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/24255.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

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. 打开浏览器访问

2. 进⼊⽹络设置 Network > WiFi

3. 802.11bgn (radio0),右边 点击Scan.

4. 选择你主路由的⽆线名,点击右边的Join Network

5. WPA passphrase,输⼊你的⽆线密码。.

6. Name of the new network⾃动创建 "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. Filter: luci-proto-relay Findpackage

3. Available packages (luci-proto-relay) -- Install 安装

4. Filter: luci-i18n-p910nd-zh-cn Findpackage

5. -- Install 安装

6. Filter: kmod-usb-printer Findpackage

7. -- Install 安装

Step 5: Create Bridge Interface 创建桥接

1. Go to the page Network > Interfaces

2. Create a new Interface called "stabridge"

5. Local IPv4 Address for the Bridge = "172.16.16.154"

1. 进⼊ Network > Interfaces

2. 创建⼀个新接⼝ Add new Interfaces -- Name of the new interface 创建桥的名字

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 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

扫描的说明⽂件

还没搞定