LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   General (https://www.linuxquestions.org/questions/general-10/)
-   -   Install printer / Get printer ip address on NAT (https://www.linuxquestions.org/questions/general-10/install-printer-get-printer-ip-address-on-nat-531128/)

allelopath 02-21-2007 03:48 PM

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 *:*

acid_kewpie 02-21-2007 03:53 PM

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.

allelopath 02-21-2007 04:11 PM

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.

Brian1 02-21-2007 04:35 PM

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

allelopath 02-21-2007 04:37 PM

The printer, a dell 1700n, is attached to the router.

Brian1 02-21-2007 04:49 PM

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

allelopath 02-21-2007 04:57 PM

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.*

acid_kewpie 02-21-2007 05:01 PM

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.

allelopath 02-21-2007 05:07 PM

>>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)

Brian1 02-21-2007 05:54 PM

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

allelopath 02-21-2007 05:58 PM

Router is a Netgear 54 Mbps wireless router WGR614 v6

Brian1 02-21-2007 06:12 PM

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

allelopath 02-21-2007 06:20 PM

>>Is it connected with a network ethernet cable?
yes

allelopath 02-22-2007 09:20 AM

/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.

Dragineez 02-22-2007 12:06 PM

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.


All times are GMT -5. The time now is 03:33 PM.