N
N
niosus2014-07-16 17:46:40
linux
niosus, 2014-07-16 17:46:40

How to connect to a printer behind a router?

Hi all!
The problem is this. There is a corporate grid, for example 3.3.3.0. A couple of printers and a wifi router are connected to it. The router on the network has the address 3.3.3.241. Behind this router is a computer with a local address of 192.168.0.232, which really wants to print on printers connected to the network at the "higher" level.
Has anyone come across a similar configuration? This can be done?
At the moment, from under Ubuntu, printers are stubbornly not visible. However, I can connect to some machines (like 3.3.3.4) via ssh.
If I turn on directly, bypassing the router, printers are detected and printed.
Found a similar question here - How to register a route to the corporate network? but he is still unanswered.
I will be glad for any instructions. I am as far from an expert in networks as it is possible, so I will also be grateful for the hint of the side "where to dig".

Answer the question

In order to leave comments, you need to log in

3 answer(s)
T
throughtheether, 2014-07-16
@niosus

The problem is this. There is a corporate grid, for example 3.3.3.0. A couple of printers and a wifi router are connected to it. The router on the network has the address 3.3.3.241. Behind this router is a computer with a local address of 192.168.0.232, which really wants to print on printers connected to the network at the "higher" level.
However, I can connect to some machines (like 3.3.3.4) via ssh.
I assume that you do not use routing on this very router, but NAT. Accordingly, I recommend that you:
0) make sure that this is the case (check the router settings)
1) disable NAT on the router, enable routing, you may have to register static routes on printers or, if this is not possible, change the default gateway value accordingly (which one, depends on the details of your network device).
Alternative option.
0) see point 0 of the previous option
1) find out which protocol is used when sending to print and discovering printers
2) configure NAT accordingly. In this case, surprises and pitfalls are possible (for example, the impossibility of normal passage of such traffic through NAT due to the specifics of the protocol implementation).

S
Sergey Petrikov, 2014-07-16
@RicoX

Register routes between networks 3.3.3.0 and 192.168.0.232 and everything will work. Give a real network diagram, there will be a specific answer on what and where to register, in the classic version on the wifi router, disable nat from the 192.168.0.X network to the 3.3.3.X network for the 3.3.3.0 network router, specify to search for the 192.168.0.x network through 3.3.3.241 and everything should go. The second option is simpler, switch the Wi-Fi router to AP mode, then the clients behind it will receive addresses from 3.3.3.X, you will get a flat network and everything will work too.

I
Igor, 2014-07-16
@merryjane

1. Tell me the exact ip of the printer.
2. Show the output of the ip r command when the computer is connected to the router.
3. Show the output of the traceroute and ping commands to the printer's ip address.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question