Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I just moved and have setup my lan again.
Everythings except for the printer.
I can't get windows or linux to see it.
Its ip address was 192.168.0.10
How do i see what it is now?
How do i see the ip address of all things on the lan?
Quick answer, use a portscanner like NMAP. Here is a sample to scan all of your range.
Given a network 192.168.0.0 with submask 255.255.255.0 (24 bits), then:
root@linux#nmap -sP 192.168.0.0/24
An Voila! Just make sure that your printer is connected to the network and turned on before doing the previous step. Now, being realistic and considering that is YOUR printer, you can always access the printer configuration on the printer itself, OR you can get the registered LAN addresses on your router.
Don't know how much help I can be, but I'll try until someone more knowledgeable comes along *S*.
When you say the printer "can't be seen" can you elaborate? Start off by opening a console (or command prompt in Windows) and type 'ping 192.168.0.10' (without the quotes, of course). Let us know the result. Unless you are using a DHCP server (and your router might) or you caused a reset of some sort the IP address of the printer should not have changed. Or you might check to see if your printer has a reset that would force it back to a default IP. Don't forget to check the hardware - one bad cable can cause a lot of trouble. And as silly as it sounds make sure you have power to your hub/router or whatever. I suspect you do, since you say everthing else works.
CUPS should have no problem with a network printer. I'm guessing everything worked prior to the move, yes?
I think you got the answer. But in times of need, knowing how to check hosts which are up would be useful. Ping is useful but it is laggy and would just drop and wait for the response of the client machine, if the client was down. As 'avatarfx' said earlier we can use scanning tools like nmap to check the hosts currently listening on the network. Just issue the command underneath and you get the results in a matter of seconds, really nmap is a great tool.
vimal, thanks for the reply.
I cut'n'pasted the command you gave, but it doesn't like it:
> nmap -sP subnet/netmask |grep Host|awk '{print $2}'
Failed to resolve given hostname/IP: subnet. Note that you can't use '/mask' AND '[1-4,7,100-]' style IP ranges
Have you replaced the 'subnet/netmask' with your range? You have not, thats the problem.
An example:=== If you are using the class C range, such as 192.168.10.0, you could replace the 'subnet/netmask' as "nmap -sP 192.168.10.0/24|grep Host|awk '{print $2}' " I hope this would solve the problem, I have this working properly at my end.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.