LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > General
User Name
Password
General This forum is for non-technical general discussion which can include both Linux and non-Linux topics. Have fun!

Notices


Reply
  Search this Thread
Old 02-21-2007, 03:48 PM   #1
allelopath
Member
 
Registered: Jan 2003
Location: New Mexico
Distribution: Ubuntu 18.04.3 LTS
Posts: 539

Rep: Reputation: 30
Install printer / Get printer ip address on NAT


How do I get the ip address of the printer on my home network (a NAT).
It will be 192.168.1.x, but x is the key missing part.
netstat command doesn't show the printer, but then I haven't installed it yet.
Do I have to assign an ip address or will one get assigned?

# netstat -tua

Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address Foreign Address State
tcp 0 0 *:mysql *:* LISTEN
tcp 0 0 *:netbios-ssn *:* LISTEN
tcp 0 0 *:sunrpc *:* LISTEN
tcp 0 0 *:ndmp *:* LISTEN
tcp 0 0 *:ipp *:* LISTEN
tcp 0 0 localhost:smtp *:* LISTEN
tcp 0 0 *:mailbox-lm *:* LISTEN
tcp 0 0 *:microsoft-ds *:* LISTEN
tcp 0 0 localhost:ipp localhost:33160 ESTABLISHED
tcp 0 0 192.168.1.3:32877 218.51.192.252:www-http ESTABLISHED
tcp 0 0 192.168.1.3:32879 218.51.192.252:www-http ESTABLISHED
tcp 0 0 192.168.1.3:32869 as21357.akamai:www-http TIME_WAIT
tcp 0 0 localhost:33168 localhost:ipp TIME_WAIT
tcp 0 0 localhost:33169 localhost:ipp TIME_WAIT
tcp 0 0 localhost:33170 localhost:ipp TIME_WAIT
tcp 0 0 localhost:33171 localhost:ipp TIME_WAIT
tcp 0 0 localhost:33165 localhost:ipp TIME_WAIT
tcp 0 0 localhost:33166 localhost:ipp TIME_WAIT
tcp 0 0 localhost:33167 localhost:ipp TIME_WAIT
tcp 0 0 localhost:33160 localhost:ipp ESTABLISHED
tcp 0 0 localhost:33163 localhost:ipp TIME_WAIT
tcp 0 0 *:ssh *:* LISTEN
tcp 0 0 localhost:smtp *:* LISTEN
udp 0 0 *:filenet-pa *:*
udp 0 0 192.168.1.3:netbios-ns *:*
udp 0 0 mylinuxbox.taos:netbios-ns *:*
udp 0 0 *:netbios-ns *:*
udp 0 0 192.168.1.3:netbios-dgm *:*
udp 0 0 mylinuxbox.tao:netbios-dgm *:*
udp 0 0 *:netbios-dgm *:*
udp 0 0 *:ndmp *:*
udp 0 0 *:bootpc *:*
udp 0 0 *:sunrpc *:*
udp 0 0 *:ipp *:*
 
Old 02-21-2007, 03:53 PM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
what are you atually asking? if it's how to install a printer, then that's not a networking question at all... what kind of printer is this? usb? parallel? ip? and i can't see NAT getting involved at any stage of this, even if it is a real network accessible printer.
 
Old 02-21-2007, 04:11 PM   #3
allelopath
Member
 
Registered: Jan 2003
Location: New Mexico
Distribution: Ubuntu 18.04.3 LTS
Posts: 539

Original Poster
Rep: Reputation: 30
Quote:
Originally Posted by acid_kewpie
what are you atually asking? if it's how to install a printer, then that's not a networking question at all... what kind of printer is this? usb? parallel? ip? and i can't see NAT getting involved at any stage of this, even if it is a real network accessible printer.
Maybe its both (printer and network question). The printer has an ethernet connection, hence NAT is involved.
 
Old 02-21-2007, 04:35 PM   #4
Brian1
LQ Guru
 
Registered: Jan 2003
Location: Seymour, Indiana
Distribution: Distribution: RHEL 5 with Pieces of this and that. Kernel 2.6.23.1, KDE 3.5.8 and KDE 4.0 beta, Plu
Posts: 5,700

Rep: Reputation: 65
edit: forget this part at the moment you posted #3 when I was writing this.

Where is the printer attached to. A print server of its own. Directly to the printer, to the router itself, or on another machine?

edit:...........

You maybe able use the program nmap to located devices attached to your network and scan for open ports on them.

NAT is really of no concern here. You are using a non-routable public IP class C address range which is a network but for the network to access the outside it is using NAT to interface to the next network. Nat is simply masquerading.

Brian

Last edited by Brian1; 02-21-2007 at 04:39 PM.
 
Old 02-21-2007, 04:37 PM   #5
allelopath
Member
 
Registered: Jan 2003
Location: New Mexico
Distribution: Ubuntu 18.04.3 LTS
Posts: 539

Original Poster
Rep: Reputation: 30
The printer, a dell 1700n, is attached to the router.
 
Old 02-21-2007, 04:49 PM   #6
Brian1
LQ Guru
 
Registered: Jan 2003
Location: Seymour, Indiana
Distribution: Distribution: RHEL 5 with Pieces of this and that. Kernel 2.6.23.1, KDE 3.5.8 and KDE 4.0 beta, Plu
Posts: 5,700

Rep: Reputation: 65
Then it should use the IP of the lan side of the router. The port I am not sure of. The manual should describe that. Now not sure if the dell is supported. Check out this site and search under the printer tab for the dell to see what it takes to run it. Many dells are not. http://www.linux-foundation.org/en/O...SDocumentation

Brian

Last edited by Brian1; 02-21-2007 at 05:09 PM.
 
Old 02-21-2007, 04:57 PM   #7
allelopath
Member
 
Registered: Jan 2003
Location: New Mexico
Distribution: Ubuntu 18.04.3 LTS
Posts: 539

Original Poster
Rep: Reputation: 30
I had it working on my previous NAT network. Its address/port then was 192.168.0.10:9100
Now my network is 192.168.1.*
 
Old 02-21-2007, 05:01 PM   #8
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
your NAT network? seriously... where does NAT figure in any of this at all? you want to print to it from the internet or something. sounds like you just need to follow the standard LAN configuration steps to either assign a static IP to the device, or allow it to use any existing DHCP services, and then conifgure whatever printing services, i.e. cups to use the ipp conenction it is offering.

//moved to General - not a networking question.
 
Old 02-21-2007, 05:07 PM   #9
allelopath
Member
 
Registered: Jan 2003
Location: New Mexico
Distribution: Ubuntu 18.04.3 LTS
Posts: 539

Original Poster
Rep: Reputation: 30
>>either assign a static IP to the device, or allow it to use any existing DHCP services
I think this is the crux.
IF DHCP, how do I determine what address it has been given?
If static, how do I assign it?
(I didn't set this up on the previous network)

Last edited by allelopath; 02-21-2007 at 05:24 PM.
 
Old 02-21-2007, 05:54 PM   #10
Brian1
LQ Guru
 
Registered: Jan 2003
Location: Seymour, Indiana
Distribution: Distribution: RHEL 5 with Pieces of this and that. Kernel 2.6.23.1, KDE 3.5.8 and KDE 4.0 beta, Plu
Posts: 5,700

Rep: Reputation: 65
What is the brand and model of the router?

Most I have seen use the the IP you use to gain access to the web interface of the router. If you use 192.168.1.10 then the printer is ususally 192.168.1.1 if attached to the router. But not gaurantee without knowing the hardware. All I would end up doing is going the manufactors page and read the faqs, manauls and such to see what it mentions.

Brian
 
Old 02-21-2007, 05:58 PM   #11
allelopath
Member
 
Registered: Jan 2003
Location: New Mexico
Distribution: Ubuntu 18.04.3 LTS
Posts: 539

Original Poster
Rep: Reputation: 30
Router is a Netgear 54 Mbps wireless router WGR614 v6
 
Old 02-21-2007, 06:12 PM   #12
Brian1
LQ Guru
 
Registered: Jan 2003
Location: Seymour, Indiana
Distribution: Distribution: RHEL 5 with Pieces of this and that. Kernel 2.6.23.1, KDE 3.5.8 and KDE 4.0 beta, Plu
Posts: 5,700

Rep: Reputation: 65
OK reading over the netgear site on that model the printer must not be connected directly to the router as in USB or Parallel. No ports for that. The printer must be connected using an ethernet cable.

After seeing you have a dell 1700n listed above I am guessing it is connected using a network cable.
Is it conneted with a network ethernet cable?

Now if yes, then the printer should have had a static IP for the computers to always know the IP of the printer. DHCP is not the correct theroy for a network printer using the HP9100 ports. Now if you have not change the printer settings then it is still at 192.168.0.10. I know nothing about the dell you mention so no idea how to change it. What you may have to do is change your network back to the 192.168.0.0/255.255.255.0 range and access the printers setup web interface. I assume this is the way it is done. Don't own or every seen one. A quick google search has many links to configuring that model. But the manual of the printer should tell you how to do that. Change the IP to 192.168.1.10 and reset your router back to this IP range and you should be back in business.

You may be able to interface to 192.168.0.10 with out making any changes to your network. Try access the web interface. Agian guessing it has one, and see if you can make the changes.

Brian

Last edited by Brian1; 02-21-2007 at 06:14 PM.
 
Old 02-21-2007, 06:20 PM   #13
allelopath
Member
 
Registered: Jan 2003
Location: New Mexico
Distribution: Ubuntu 18.04.3 LTS
Posts: 539

Original Poster
Rep: Reputation: 30
>>Is it connected with a network ethernet cable?
yes
 
Old 02-22-2007, 09:20 AM   #14
allelopath
Member
 
Registered: Jan 2003
Location: New Mexico
Distribution: Ubuntu 18.04.3 LTS
Posts: 539

Original Poster
Rep: Reputation: 30
/etc/printcaps is a link to /etc/cups/printcap, which says this:

# This file was automatically generated by cupsd(8) from the
# /etc/cups/printers.conf file. All changes to this file
# will be lost.
Dell_1700n|Dell_1700n:rm=mylinuxbox:rp=Dell_1700n:

/etc/cups/printers.conf says this:

# Printer configuration file for CUPS v1.1.21
# Written by cupsd on Wed Feb 21 17:16:59 2007
<DefaultPrinter Dell_1700n>
Info POSTSCRIPT Generic postscript printer
Location
DeviceURI ipp://192.168.1.3:631/ipp
State Idle
Accepting Yes
JobSheets none none
QuotaPeriod 0
PageLimit 0
KLimit 0
</Printer>

Despite looking like everything is set, I can't print to it.
 
Old 02-22-2007, 12:06 PM   #15
Dragineez
Member
 
Registered: Oct 2005
Location: Annapolis
Distribution: Ubuntu
Posts: 278

Rep: Reputation: 41
Ask The Router

If the printer is picking up its IP address from the router, then your router should show all attached devices and the IP address assigned to each.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Reset Lexmark printer IP address Buckyjunior Linux - Networking 2 08-31-2006 05:31 AM
Printer list with IP Address vprichodko Linux - Newbie 1 07-07-2006 03:46 AM
Printer Driver (and printer) install errors. O4_SRT Linux - Hardware 5 03-07-2006 07:16 PM
keeping printer on at bootup keeps printer from printing (some printer modules loaded TheOneAndOnlySM Slackware 1 10-17-2003 07:39 PM
setup printer on client machine(slackware 8) to server (slackware7) network printer changwoo Slackware 9 05-02-2003 05:37 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > General

All times are GMT -5. The time now is 08:34 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration