network printer static IP

February 15th, 2012 - 02:56 pm ET by Haines Brown | Report spam
I have a HP LJ1320 printer working with Squeeze, but now want another
machine to access the printer via a wireless router (D-Link
DSL-2640B). The directions often assume the person runs a desktop
environment, has access to a network manager or control panel or that
the local printer already has an IP address.

Simply, how do I manually assign a static IP address to my printer?

Haines Brown
email Follow the discussionReplies 28 repliesReplies Make a reply

Similar topics

Replies

#11 Chris Davies
February 17th, 2012 - 04:53 am ET | Report spam
J G Miller wrote:
That is rather odd since arp -a should not only return
the IP address of your router but also the machine on
which you are running the command.



My squeeze returns only non-local devices with which my local host
has communicated (recently).

Chris
Replies Reply to this message
#12 Chris Davies
February 17th, 2012 - 05:06 am ET | Report spam
Haines Brown wrote:
Since I don't know my printer's DHCP address I can't open its
configuration interface in a browswer.



Run the following as root, and it will give you the devices on your
local network that are running a web server. Since your printer includes
a web server you should be able to see it listed:

aptitude install nmap
NET=`netstat -rn | awk '$4~/G/{print $2}' | cut -d. -f1-3`.0
nmap -oG - -p 80 $NET/24 | grep /open/


I've used aptitude but you're welcome to use your preferred package
installer. The NET= line is there to derive your local /24 network
(e.g. 192.168.1.0). If you know it, simply substitute into the nmap
command.

Chris
Replies Reply to this message
#13 Haines Brown
February 17th, 2012 - 09:50 am ET | Report spam
J G Miller writes:

On Thursday, February 16th, 2012, at 15:02:30h -0500, Haines Brown wrote:



I skip dialog re. # arp -a, other than to mention it that it only sees
my router on the network:

# arp -a
router (192.168.1.1) at 00:1e:58:07:68:84 [ether] on eth0

So have you ever actually printed anything from a machine
on the LAN to the printer via ethernet or WiFi?

Who installed the printer and setup its network
connections?



Ah, the light is beginning to shine! At this point, there is only one
machine on the LAN, and I print with it all the time. However, the
printer is connected by USB, not by ethernet CAT5; there's no ethernet
jack on the printer.

I suspect I need to add a Jetdirect print server to my LJ1320 printer, I
contacted HP and they pointed me to the HP Jetdirect 300x Print Server
for Fast Ethernet. It's compatible with RedHat 7 and SUSE 8, and so I
suppose it will work with my Debian squeeze. It has a DB-25 parallel
connector for the printer and a RJ-45 to connect to my router hub. My
printer is DB-36, so I suppose that all I need is a suitable cable to do
the pin conversion.

Am I off base here?

Haines
Replies Reply to this message
#14 Haines Brown
February 17th, 2012 - 09:55 am ET | Report spam
Chris,

Since my printer is USB connected, I suppose the nmap return will not be
informative. But here it is anyway:

# nmap NET=`netstat -rn | awk '$4~/G/{print $2}' | cut -d. -f1-3` .0
Starting Nmap 5.00 ( http://nmap.org ) at 2012-02-17 08:55 EST
Failed to resolve given hostname/IP: NET2.168.1.
Note that you can't use '/mask' AND '1-4,7,100-' style IP ranges
Invalid target host specification: .0
QUITTING!

# nmap 192.168.1.1
Starting Nmap 5.00 ( http://nmap.org ) at 2012-02-17 09:53 EST
Interesting ports on router (192.168.1.1):
Not shown: 991 closed ports
PORT STATE SERVICE
22/tcp open ssh
23/tcp open telnet
80/tcp open http
1863/tcp open msnp
1864/tcp open paradym-31
4443/tcp open pharos
5190/tcp open aol
5431/tcp open park-agent
5566/tcp open unknown
MAC Address: 00:1E:58:07:68:84 (D-Link)

# arp -a
router (192.168.1.1) at 00:1e:58:07:68:84 [ether] on eth0

Haines
Replies Reply to this message
#15 J G Miller
February 17th, 2012 - 10:10 am ET | Report spam
On Friday, Februaty 17th, 2012, 09:55:36h -0500, Haines Brown wrote:

Since my printer is USB connected



If the printer is USB connected and not ethernet connected
to the LAN, how do you ever hope to see it as a "host" on
the LAN with a network utility or for it to be assigned an
IP address by your router DHCP server?
Replies Reply to this message
Help Create a new topicNext page Previous pageReplies Make a reply
Search Make your own search