You are not logged in.

#1 2012-05-01 12:38:58

Gen2ly
Member
From: Sevierville, TN
Registered: 2009-03-06
Posts: 1,529
Website

CUPS: How to configure a dynamic IP for a printer?

I have a Canon MG5220 (5200 series) printer.  I've installed CUPS and it's drivers correctly; however, when I went to add it through the CUPS interface, it did not discover it.  I read a Linux-related article that Canon uses it's own network protocol: bjnp.  I then installed cups-bjnp backen from the AUR and though CUPS did not discover it I was able to assign a static IP and then print to it:

bjnp://192.169.1.103

The concern I'm having is that this may not always work.  In fact, I'm pretty sure that it will not if I say have to restart the router again.  Does anyone know of a way to do this?

Side question: Does anyone know if I have to use the bjnp package for a canon printer still?  Mention of the bnjp protocol was from an article a couple years ago and would figure that they would have added more protocols by then.

Last edited by Gen2ly (2012-05-01 17:36:33)


Setting Up a Scripting Environment | Proud donor to wikipedia - link

Offline

#2 2012-05-01 16:37:26

Lone_Wolf
Administrator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 15,391

Re: CUPS: How to configure a dynamic IP for a printer?

Check cnijfilter-mg5200 3.40-9 from AUR, it should be the correct driver for your printer.

Most routers have an option to give a device always the same ip-address through dhcp .
If your router doesn't support that, chances are it only gives a specific range through dhcp, often this range starts at 100.
Set the ip-address to something like 192.168.1.2 manually on th eprinter, disable dhcp for it and it should work.


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.

clean chroot building not flexible enough ?
Try clean chroot manager by graysky

Offline

#3 2012-05-01 17:33:55

Gen2ly
Member
From: Sevierville, TN
Registered: 2009-03-06
Posts: 1,529
Website

Re: CUPS: How to configure a dynamic IP for a printer?

Thanks Lone_Wolf.  Configuring the router seems to be a good way to go.  On the Cisco Linksys WRT120N, there is a button on the main page that says, "DHCP Reservation".  In it I give a name to it and the MAC address of the device.  Thank you, did the job.


Setting Up a Scripting Environment | Proud donor to wikipedia - link

Offline

#4 2012-05-01 17:45:28

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 20,700

Re: CUPS: How to configure a dynamic IP for a printer?

Have you looked at Avahi ??


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
The shortest way to ruin a country is to give power to demagogues.— Dionysius of Halicarnassus
---
How to Ask Questions the Smart Way

Offline

#5 2012-05-02 20:14:05

Gen2ly
Member
From: Sevierville, TN
Registered: 2009-03-06
Posts: 1,529
Website

Re: CUPS: How to configure a dynamic IP for a printer?

ewaller wrote:

Have you looked at Avahi ??

Yeah.  Thanks for responding ewaller.  Ran avahi-discover and didn't see anything.


Setting Up a Scripting Environment | Proud donor to wikipedia - link

Offline

Board footer

Powered by FluxBB