如何将计算机连接到路由器后面的网络打印机?

如何将计算机连接到路由器后面的网络打印机?

一般问题:

如何将计算机连接到路由器后面的 IP 打印机?

具体问题:

如何将 C-1 和 C-2 连接到 PRI?

什么哪里?

            [ISP]
              |
              | -> IPs:200.X.X.X/other configs:DC
              |
            [R-1]
              |
              | -> IPs:10.1.X.X locked by MAC,M:255.0.0.0,G:10.1.0.1
   |¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯|
   |                    |
 [PRI] IP:10.1.7.7    [R-2] IP: 10.1.0.1,MAC:A
                        |
                        | -> IPs:192.168.1.X,M:255.255.255.0,G:192.168.1.1
            |¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯|
            |                      |
          [C-1] IP:192.168.1.2   [C-2] IP:192.168.1.3,MAC:A

Glossary and details:
------------------------------------------------------------------------------------
- IP: IP.
- IPs: Some IP range.
- M: Mask.
- G: Gateway.
- MAC:A: A MAC address that I will not inform you :)
- DC: Don't care.

- ISP: Internet Service Provider (not so much details about it on that case).
- R-1: A real router or some concatenated so IP range bellow that block is 10.1.X.X
       and above is ISP. The provided IPs are provided by MAC. As all available
       addresses are in use, you must clone an existing one to join with a new
       device (and to disconnect the cloned one).
- PRI: An network printer (some people here call that IP printer).
- R-2: A TP-LINK TL-WR340G, mine wireless router (since my computer does not have
       ethernet input, it is my ethernet-wifi adapter :), admin access, MAC address
       cloned from C-2 (MAC:A). I've to configure 10.0.1.1 and 10.0.1.2 as DNS
       addresses, other wise I cannot connect C-1 and C-2 to Internet.
- C-1: My computer, a CCE XLE-425 (remember: no ethernet input), with Windows 7,
       admin access.
- C-2: another computer with better configs than mine, MAC:A, Windows XP.

要求:

我想打印、访问互联网并自己做这些事(不需要打电话给穿黑衣的网络管理员)。

注意MAC克隆和DNS信息。

答案1

完毕!

在 @MikePennington 提到“端口”后,我进入了 R-2 设置。在那里,我可以看到虚拟服务器配置:

虚拟服务器配置

在打印机驱动程序属性中,我还可以看到用于网络连接的端口是 9100:

用于网络连接的端口

因此,这太简单了,就像在具有路由连接的计算机上配置游戏服务器的端口一样(嗯……我以前为什么没有想到呢?):

Configure R-2:
- for C-1:
    - service port: 9100
    - IP address: 192.168.1.2
    - Protocol: ALL
- for C-2:
    - service port: 9101
    - IP address: 192.168.1.3
    - Protocol: ALL

- Configure C-1:
    - none

- Configure C-2:
    - printer TCP/IP RAW port: 9101

- Reboot R-2 (I forget it on first time and did not see any result. In another try,
              I succeeded!)

相关内容