public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] [OT] Finding other machines on the network
@ 2005-08-30 14:51 Andrew Lowe
  2005-08-30 15:01 ` John Jolet
                   ` (6 more replies)
  0 siblings, 7 replies; 26+ messages in thread
From: Andrew Lowe @ 2005-08-30 14:51 UTC (permalink / raw
  To: gentoo-user

Hi all,
	I have the situation where I've been loaned an old Sun SPARC box for 
some work. It has a static IP somewhere in the 192.168.0.* range, which 
my home network also is in. My question is, how can I find out the IP 
address of the machine? I've forgotten what it is and it's also headless 
with no keyboard. Is there a utilitiy in portage that will try all of 
the ip addresses in a range and let me know if something it at the other 
end, ie something like automatically pinging all of the addresses in a 
range and reporting what addresses responded?

	Any thoughts greatly appreciated,
		Andrew
-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 26+ messages in thread

* Re: [gentoo-user] [OT] Finding other machines on the network
  2005-08-30 14:51 [gentoo-user] [OT] Finding other machines on the network Andrew Lowe
@ 2005-08-30 15:01 ` John Jolet
  2005-08-30 15:04 ` Bastian Balthazar Bux
                   ` (5 subsequent siblings)
  6 siblings, 0 replies; 26+ messages in thread
From: John Jolet @ 2005-08-30 15:01 UTC (permalink / raw
  To: gentoo-user

emerge nmap
On Tuesday 30 August 2005 09:51, Andrew Lowe wrote:
> Hi all,
> 	I have the situation where I've been loaned an old Sun SPARC box for
> some work. It has a static IP somewhere in the 192.168.0.* range, which
> my home network also is in. My question is, how can I find out the IP
> address of the machine? I've forgotten what it is and it's also headless
> with no keyboard. Is there a utilitiy in portage that will try all of
> the ip addresses in a range and let me know if something it at the other
> end, ie something like automatically pinging all of the addresses in a
> range and reporting what addresses responded?
>
> 	Any thoughts greatly appreciated,
> 		Andrew

-- 
John Jolet
Your On-Demand IT Department
512-762-0729
www.jolet.net
john@jolet.net
-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 26+ messages in thread

* Re: [gentoo-user] [OT] Finding other machines on the network
  2005-08-30 14:51 [gentoo-user] [OT] Finding other machines on the network Andrew Lowe
  2005-08-30 15:01 ` John Jolet
@ 2005-08-30 15:04 ` Bastian Balthazar Bux
  2005-08-30 15:08 ` fire-eyes
                   ` (4 subsequent siblings)
  6 siblings, 0 replies; 26+ messages in thread
From: Bastian Balthazar Bux @ 2005-08-30 15:04 UTC (permalink / raw
  To: gentoo-user

Andrew Lowe wrote:
> Hi all,
>     I have the situation where I've been loaned an old Sun SPARC box for
> some work. It has a static IP somewhere in the 192.168.0.* range, which
> my home network also is in. My question is, how can I find out the IP
> address of the machine? I've forgotten what it is and it's also headless
> with no keyboard. Is there a utilitiy in portage that will try all of
> the ip addresses in a range and let me know if something it at the other
> end, ie something like automatically pinging all of the addresses in a
> range and reporting what addresses responded?
> 
>     Any thoughts greatly appreciated,
>         Andrew

If it reply to broadcast query this can give an answer:

#ping -b -c1 192.168.0.255

well, many answer, exclude the known ip and try the remaining ones.
-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 26+ messages in thread

* Re: [gentoo-user] [OT] Finding other machines on the network
  2005-08-30 14:51 [gentoo-user] [OT] Finding other machines on the network Andrew Lowe
  2005-08-30 15:01 ` John Jolet
  2005-08-30 15:04 ` Bastian Balthazar Bux
@ 2005-08-30 15:08 ` fire-eyes
  2005-08-30 15:11 ` Martin Marcher
                   ` (3 subsequent siblings)
  6 siblings, 0 replies; 26+ messages in thread
From: fire-eyes @ 2005-08-30 15:08 UTC (permalink / raw
  To: gentoo-user

On Wed, 2005-08-31 at 00:51 +1000, Andrew Lowe wrote:
> Hi all,
>         I have the situation where I've been loaned an old Sun SPARC
> box for 
> some work. It has a static IP somewhere in the 192.168.0.* range,
> which 
> my home network also is in. My question is, how can I find out the IP 
> address of the machine? I've forgotten what it is and it's also
> headless 
> with no keyboard. Is there a utilitiy in portage that will try all of 
> the ip addresses in a range and let me know if something it at the
> other 
> end, ie something like automatically pinging all of the addresses in
> a 
> range and reporting what addresses responded?

Nmap is what you want. It can do far more advanced things, too. But to
do a simple ping sweep (and portscan anything that it finds, which will
then reveal the IP):

nmap -T4 -F 192.168.0.*

You may need to tell it 192.168.0.0/24 instead.

-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 26+ messages in thread

* Re: [gentoo-user] [OT] Finding other machines on the network
  2005-08-30 14:51 [gentoo-user] [OT] Finding other machines on the network Andrew Lowe
                   ` (2 preceding siblings ...)
  2005-08-30 15:08 ` fire-eyes
@ 2005-08-30 15:11 ` Martin Marcher
  2005-08-30 15:12 ` Christoph Gysin
                   ` (2 subsequent siblings)
  6 siblings, 0 replies; 26+ messages in thread
From: Martin Marcher @ 2005-08-30 15:11 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 339 bytes --]

Dienstag 30 August 2005 16:51, Andrew Lowe:
> Is there a utilitiy in portage that will try all of
> the ip addresses in a range and let me know if something it at the other
> end, ie something like automatically pinging all of the addresses in a
> range and reporting what addresses responded?

if it pings:

nmap -sP 192.168.0.1-254

hth

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 26+ messages in thread

* Re: [gentoo-user] [OT] Finding other machines on the network
  2005-08-30 14:51 [gentoo-user] [OT] Finding other machines on the network Andrew Lowe
                   ` (3 preceding siblings ...)
  2005-08-30 15:11 ` Martin Marcher
@ 2005-08-30 15:12 ` Christoph Gysin
  2005-08-30 15:18   ` John Jolet
  2005-08-30 17:49 ` Uwe Thiem
  2005-08-31 12:50 ` [gentoo-user] [OT] " Anthony Walters
  6 siblings, 1 reply; 26+ messages in thread
From: Christoph Gysin @ 2005-08-30 15:12 UTC (permalink / raw
  To: gentoo-user

Andrew Lowe wrote:
> Hi all,
>     I have the situation where I've been loaned an old Sun SPARC box for 
> some work. It has a static IP somewhere in the 192.168.0.* range, which 
> my home network also is in. My question is, how can I find out the IP 
> address of the machine? I've forgotten what it is and it's also headless 
> with no keyboard. Is there a utilitiy in portage that will try all of 
> the ip addresses in a range and let me know if something it at the other 
> end, ie something like automatically pinging all of the addresses in a 
> range and reporting what addresses responded?
> 
>     Any thoughts greatly appreciated,
>         Andrew

A simple "for" loop around ping would do the trick. Am I missing something?

Christoph
-- 
echo mailto: NOSPAM !#$.'<*>'|sed 's. ..'|tr "<*> !#:2" org@fr33z3
-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 26+ messages in thread

* Re: [gentoo-user] [OT] Finding other machines on the network
  2005-08-30 15:12 ` Christoph Gysin
@ 2005-08-30 15:18   ` John Jolet
  2005-08-30 21:57     ` Christoph Gysin
  0 siblings, 1 reply; 26+ messages in thread
From: John Jolet @ 2005-08-30 15:18 UTC (permalink / raw
  To: gentoo-user

yeah, if it's got a firewall disallowing icmp responses.  then you can do nmap 
-P0 to find it.  ping would never find it.  It's gotta have SOME port open.  
Also, nmap can do os fingerprinting and probably show you which one is the 
solaris or sunos machine...

On Tuesday 30 August 2005 10:12, Christoph Gysin wrote:
> Andrew Lowe wrote:
> > Hi all,
> >     I have the situation where I've been loaned an old Sun SPARC box for
> > some work. It has a static IP somewhere in the 192.168.0.* range, which
> > my home network also is in. My question is, how can I find out the IP
> > address of the machine? I've forgotten what it is and it's also headless
> > with no keyboard. Is there a utilitiy in portage that will try all of
> > the ip addresses in a range and let me know if something it at the other
> > end, ie something like automatically pinging all of the addresses in a
> > range and reporting what addresses responded?
> >
> >     Any thoughts greatly appreciated,
> >         Andrew
>
> A simple "for" loop around ping would do the trick. Am I missing something?
>
> Christoph
> --
> echo mailto: NOSPAM !#$.'<*>'|sed 's. ..'|tr "<*> !#:2" org@fr33z3

-- 
John Jolet
Your On-Demand IT Department
512-762-0729
www.jolet.net
john@jolet.net
-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 26+ messages in thread

* Re: [gentoo-user] [OT] Finding other machines on the network
  2005-08-30 14:51 [gentoo-user] [OT] Finding other machines on the network Andrew Lowe
                   ` (4 preceding siblings ...)
  2005-08-30 15:12 ` Christoph Gysin
@ 2005-08-30 17:49 ` Uwe Thiem
  2005-08-30 19:56   ` [gentoo-user] " Michael Mauch
  2005-08-31 12:50 ` [gentoo-user] [OT] " Anthony Walters
  6 siblings, 1 reply; 26+ messages in thread
From: Uwe Thiem @ 2005-08-30 17:49 UTC (permalink / raw
  To: gentoo-user

On 30 August 2005 15:51, Andrew Lowe wrote:
> Hi all,
> 	I have the situation where I've been loaned an old Sun SPARC box for
> some work. It has a static IP somewhere in the 192.168.0.* range, which
> my home network also is in. My question is, how can I find out the IP
> address of the machine? I've forgotten what it is and it's also headless
> with no keyboard. Is there a utilitiy in portage that will try all of
> the ip addresses in a range and let me know if something it at the other
> end, ie something like automatically pinging all of the addresses in a
> range and reporting what addresses responded?

Can't you remote log in and do "ifconfig"?

Uwe

-- 
95% of all programmers rate themselves among the top 5% of all software 
developers. - Linus Torvalds

http://www.uwix.iway.na (last updated: 20.06.2004)
-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 26+ messages in thread

* [gentoo-user] Re: Finding other machines on the network
  2005-08-30 17:49 ` Uwe Thiem
@ 2005-08-30 19:56   ` Michael Mauch
  0 siblings, 0 replies; 26+ messages in thread
From: Michael Mauch @ 2005-08-30 19:56 UTC (permalink / raw
  To: gentoo-user

Uwe Thiem wrote:

> On 30 August 2005 15:51, Andrew Lowe wrote:

> > 	I have the situation where I've been loaned an old Sun SPARC box for
> > some work. It has a static IP somewhere in the 192.168.0.* range, which
> > my home network also is in. My question is, how can I find out the IP
> > address of the machine? I've forgotten what it is and it's also headless
> > with no keyboard. 

> Can't you remote log in and do "ifconfig"?

How can he log in if he doesn't know the IP address?

Regards...
		Michael

-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 26+ messages in thread

* Re: [gentoo-user] [OT] Finding other machines on the network
  2005-08-30 15:18   ` John Jolet
@ 2005-08-30 21:57     ` Christoph Gysin
  2005-08-30 22:51       ` John Jolet
  0 siblings, 1 reply; 26+ messages in thread
From: Christoph Gysin @ 2005-08-30 21:57 UTC (permalink / raw
  To: gentoo-user

John Jolet wrote:
> yeah, if it's got a firewall disallowing icmp responses.  then you can do nmap 
> -P0 to find it.  ping would never find it.  It's gotta have SOME port open.  

As far as I've read his post, there's no firewall involved. So why should he do portscans in all 
hosts on the subnet?

> Also, nmap can do os fingerprinting and probably show you which one is the 
> solaris or sunos machine...

Sure, but that's not what he's looking for...

Christoph
-- 
echo mailto: NOSPAM !#$.'<*>'|sed 's. ..'|tr "<*> !#:2" org@fr33z3
-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 26+ messages in thread

* Re: [gentoo-user] [OT] Finding other machines on the network
  2005-08-30 21:57     ` Christoph Gysin
@ 2005-08-30 22:51       ` John Jolet
  2005-08-31  6:38         ` Frank Schafer
  0 siblings, 1 reply; 26+ messages in thread
From: John Jolet @ 2005-08-30 22:51 UTC (permalink / raw
  To: gentoo-user


On Aug 30, 2005, at 4:57 PM, Christoph Gysin wrote:

> John Jolet wrote:
>
>> yeah, if it's got a firewall disallowing icmp responses.  then you  
>> can do nmap -P0 to find it.  ping would never find it.  It's gotta  
>> have SOME port open.
>>
>
> As far as I've read his post, there's no firewall involved. So why  
> should he do portscans in all hosts on the subnet?
>
>
>> Also, nmap can do os fingerprinting and probably show you which  
>> one is the solaris or sunos machine...
>>
>
> Sure, but that's not what he's looking for...
>
perhaps I read the initial post wrong...I was under the impression  
that he had a headless sun box with a static ip on a known subnet,  
but the exact ip wasn't known.
-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 26+ messages in thread

* Re: [gentoo-user] [OT] Finding other machines on the network
  2005-08-30 22:51       ` John Jolet
@ 2005-08-31  6:38         ` Frank Schafer
  2005-08-31  8:30           ` Nick Rout
  2005-08-31 10:50           ` John Jolet
  0 siblings, 2 replies; 26+ messages in thread
From: Frank Schafer @ 2005-08-31  6:38 UTC (permalink / raw
  To: gentoo-user

On Tue, 2005-08-30 at 17:51 -0500, John Jolet wrote:
> On Aug 30, 2005, at 4:57 PM, Christoph Gysin wrote:
> 
> > John Jolet wrote:
> >
> >> yeah, if it's got a firewall disallowing icmp responses.  then you  
> >> can do nmap -P0 to find it.  ping would never find it.  It's gotta  
> >> have SOME port open.
> >>
> >
> > As far as I've read his post, there's no firewall involved. So why  
> > should he do portscans in all hosts on the subnet?
> >
> >
> >> Also, nmap can do os fingerprinting and probably show you which  
> >> one is the solaris or sunos machine...
> >>
> >
> > Sure, but that's not what he's looking for...
> >
> perhaps I read the initial post wrong...I was under the impression  
> that he had a headless sun box with a static ip on a known subnet,  
> but the exact ip wasn't known.

... what about arp?

Just a thought
Frank
-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 26+ messages in thread

* Re: [gentoo-user] [OT] Finding other machines on the network
  2005-08-31  6:38         ` Frank Schafer
@ 2005-08-31  8:30           ` Nick Rout
  2005-08-31  8:42             ` Destromy
                               ` (2 more replies)
  2005-08-31 10:50           ` John Jolet
  1 sibling, 3 replies; 26+ messages in thread
From: Nick Rout @ 2005-08-31  8:30 UTC (permalink / raw
  To: gentoo-user

On Wed, 2005-08-31 at 08:38 +0200, Frank Schafer wrote:
> On Tue, 2005-08-30 at 17:51 -0500, John Jolet wrote:
> > On Aug 30, 2005, at 4:57 PM, Christoph Gysin wrote:
> > 
> > > John Jolet wrote:
> > >
> > >> yeah, if it's got a firewall disallowing icmp responses.  then you  
> > >> can do nmap -P0 to find it.  ping would never find it.  It's gotta  
> > >> have SOME port open.
> > >>
> > >
> > > As far as I've read his post, there's no firewall involved. So why  
> > > should he do portscans in all hosts on the subnet?
> > >
> > >
> > >> Also, nmap can do os fingerprinting and probably show you which  
> > >> one is the solaris or sunos machine...
> > >>
> > >
> > > Sure, but that's not what he's looking for...
> > >
> > perhaps I read the initial post wrong...I was under the impression  
> > that he had a headless sun box with a static ip on a known subnet,  
> > but the exact ip wasn't known.
> 
> ... what about arp?

That was the answer given in an alomst identical problem recently on
this list (or was it another??)

arp will rely on the box having actually done something within arp's
cache period.

if there is no network activity, there may be no arp entry.

> 
> Just a thought
> Frank
-- 
Nick Rout <nick@rout.co.nz>

-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 26+ messages in thread

* Re: [gentoo-user] [OT] Finding other machines on the network
  2005-08-31  8:30           ` Nick Rout
@ 2005-08-31  8:42             ` Destromy
  2005-08-31  8:59               ` Nick Rout
  2005-08-31 11:51             ` Matthias Bethke
  2005-09-14  0:50             ` Daevid Vincent
  2 siblings, 1 reply; 26+ messages in thread
From: Destromy @ 2005-08-31  8:42 UTC (permalink / raw
  To: gentoo-user

Nick Rout wrote:

>On Wed, 2005-08-31 at 08:38 +0200, Frank Schafer wrote:
>  
>
>>On Tue, 2005-08-30 at 17:51 -0500, John Jolet wrote:
>>    
>>
>>>On Aug 30, 2005, at 4:57 PM, Christoph Gysin wrote:
>>>
>>>      
>>>
>>>>John Jolet wrote:
>>>>
>>>>        
>>>>
>>>>>yeah, if it's got a firewall disallowing icmp responses.  then you  
>>>>>can do nmap -P0 to find it.  ping would never find it.  It's gotta  
>>>>>have SOME port open.
>>>>>
>>>>>          
>>>>>
>>>>As far as I've read his post, there's no firewall involved. So why  
>>>>should he do portscans in all hosts on the subnet?
>>>>
>>>>
>>>>        
>>>>
>>>>>Also, nmap can do os fingerprinting and probably show you which  
>>>>>one is the solaris or sunos machine...
>>>>>
>>>>>          
>>>>>
>>>>Sure, but that's not what he's looking for...
>>>>
>>>>        
>>>>
>>>perhaps I read the initial post wrong...I was under the impression  
>>>that he had a headless sun box with a static ip on a known subnet,  
>>>but the exact ip wasn't known.
>>>      
>>>
>>... what about arp?
>>    
>>
>
>That was the answer given in an alomst identical problem recently on
>this list (or was it another??)
>
>arp will rely on the box having actually done something within arp's
>cache period.
>
>if there is no network activity, there may be no arp entry.
>
>  
>
>>Just a thought
>>Frank
>>    
>>
ping broadcast ?
-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 26+ messages in thread

* Re: [gentoo-user] [OT] Finding other machines on the network
  2005-08-31  8:42             ` Destromy
@ 2005-08-31  8:59               ` Nick Rout
  0 siblings, 0 replies; 26+ messages in thread
From: Nick Rout @ 2005-08-31  8:59 UTC (permalink / raw
  To: gentoo-user

On Wed, 2005-08-31 at 16:42 +0800, Destromy wrote:
> >>    
> >>
> ping broadcast ?

now we are going in circles.

not every device responds to ping - its optional in linux and people
often turn it off because of various DOS attacks based on icmp.

also some OSes don't seem to respond to broadcast ping, even though they
respond to ping to their own address, windows being an example.

So, all techniques in this thread seem to have validity, but not all of
them will work in all circumstances.

-- 
Nick Rout <nick@rout.co.nz>

-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 26+ messages in thread

* Re: [gentoo-user] [OT] Finding other machines on the network
  2005-08-31  6:38         ` Frank Schafer
  2005-08-31  8:30           ` Nick Rout
@ 2005-08-31 10:50           ` John Jolet
  2005-08-31 11:41             ` Nick Rout
  2005-08-31 11:56             ` [gentoo-user] " Frank Schafer
  1 sibling, 2 replies; 26+ messages in thread
From: John Jolet @ 2005-08-31 10:50 UTC (permalink / raw
  To: gentoo-user


On Aug 31, 2005, at 1:38 AM, Frank Schafer wrote:

>
> ... what about arp?
>

If this machine has the mac address listed on the outside of the  
case, or he opens it up to look at the card, sure.  if you don't know  
what the mac address is....then you're stuck.  Of course, if it's a  
small, home network, you could always just turn off all the other  
computers except that one and the one you're on and ask the router  
who's connected.  be quicker just to launch nmap and go get some coffee.
-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 26+ messages in thread

* Re: [gentoo-user] [OT] Finding other machines on the network
  2005-08-31 10:50           ` John Jolet
@ 2005-08-31 11:41             ` Nick Rout
  2005-08-31 14:01               ` [gentoo-user] " James
  2005-08-31 11:56             ` [gentoo-user] " Frank Schafer
  1 sibling, 1 reply; 26+ messages in thread
From: Nick Rout @ 2005-08-31 11:41 UTC (permalink / raw
  To: gentoo-user

On Wed, 2005-08-31 at 05:50 -0500, John Jolet wrote:
> On Aug 31, 2005, at 1:38 AM, Frank Schafer wrote:
> 
> >
> > ... what about arp?
> >
> 
> If this machine has the mac address listed on the outside of the  
> case, or he opens it up to look at the card, sure.  if you don't know  
> what the mac address is....then you're stuck. 

Not necessarily. If the machine has had network activity it may be shown
by arp -e.

If you have a smallish network and can identify the other machines, its
a matter of elimination. i.e. you look at the list of IP addresses shown
by arp -en and eliminate the ones you know. 

>  Of course, if it's a  
> small, home network, you could always just turn off all the other  
> computers except that one and the one you're on and ask the router  
> who's connected.  be quicker just to launch nmap and go get some coffee.
-- 
Nick Rout <nick@rout.co.nz>

-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 26+ messages in thread

* Re: [gentoo-user] [OT] Finding other machines on the network
  2005-08-31  8:30           ` Nick Rout
  2005-08-31  8:42             ` Destromy
@ 2005-08-31 11:51             ` Matthias Bethke
  2005-09-14  0:50             ` Daevid Vincent
  2 siblings, 0 replies; 26+ messages in thread
From: Matthias Bethke @ 2005-08-31 11:51 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 595 bytes --]

Hi Nick,
on Wednesday, 2005-08-31 at 20:30:14, you wrote:
> arp will rely on the box having actually done something within arp's
> cache period.

What's more, ARP resolves IP addresses to MAC addresses and the IP
address is what the OP wanted to find out in the first place.
I'd try in this order:
1. Broadcast ping
2. for n in `seq 1 254`; do ping >/dev/null -c1 -W1 192.168.0.$n; \
	[ $? == 0 ] && echo "$n is up"; done
3. nmap

cheers!
	Matthias
-- 
I prefer encrypted and signed messages.       KeyID: 90CF8389
Fingerprint: 8E 1F 10 81 A4 66 29 46  B9 8A B9 E2 09 9F 3B 91

[-- Attachment #2: Type: application/pgp-signature, Size: 481 bytes --]

^ permalink raw reply	[flat|nested] 26+ messages in thread

* Re: [gentoo-user] [OT] Finding other machines on the network
  2005-08-31 10:50           ` John Jolet
  2005-08-31 11:41             ` Nick Rout
@ 2005-08-31 11:56             ` Frank Schafer
  1 sibling, 0 replies; 26+ messages in thread
From: Frank Schafer @ 2005-08-31 11:56 UTC (permalink / raw
  To: gentoo-user

If some other machine wants to communicate with some second other
machine ... say secmachine.homenet.com it connects to the DNS server of
homenet.com. (This step won't be done if IP addresses are in use.

The DNS server then sends the IP address to firstmachine.homenet.com or
firstmachine uses the known one.

Next firstmachine will broadcast an "ARP whois ip.of.sec.srv" request.
sec.srv or secmachine will answer with an ARP reply which contains the
IP and the MAC address.

Firstmachine then initiates the communication using this MAC address.

Don't forget. The transport layer is ETHERNET. There don't exist IP
addresses.

Just for clarification.

arp will do exactly this and arpd can even collect such information
because every machine on a subnet will see all of the requests and
replies.

Regards
Frank


On Wed, 2005-08-31 at 05:50 -0500, John Jolet wrote:
> On Aug 31, 2005, at 1:38 AM, Frank Schafer wrote:
> 
> >
> > ... what about arp?
> >
> 
> If this machine has the mac address listed on the outside of the  
> case, or he opens it up to look at the card, sure.  if you don't know  
> what the mac address is....then you're stuck.  Of course, if it's a  
> small, home network, you could always just turn off all the other  
> computers except that one and the one you're on and ask the router  
> who's connected.  be quicker just to launch nmap and go get some coffee.
-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 26+ messages in thread

* Re: [gentoo-user] [OT] Finding other machines on the network
  2005-08-30 14:51 [gentoo-user] [OT] Finding other machines on the network Andrew Lowe
                   ` (5 preceding siblings ...)
  2005-08-30 17:49 ` Uwe Thiem
@ 2005-08-31 12:50 ` Anthony Walters
  6 siblings, 0 replies; 26+ messages in thread
From: Anthony Walters @ 2005-08-31 12:50 UTC (permalink / raw
  To: gentoo-user

Andrew Lowe wrote:
> Hi all,
>     I have the situation where I've been loaned an old Sun SPARC box for 
> some work. It has a static IP somewhere in the 192.168.0.* range, which 
> my home network also is in. My question is, how can I find out the IP 
> address of the machine? 

if it is pingable then

emerge fping
and
fping -g 192.168.0.0/24

-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 26+ messages in thread

* [gentoo-user]  Re: [OT] Finding other machines on the network
  2005-08-31 11:41             ` Nick Rout
@ 2005-08-31 14:01               ` James
  2005-08-31 14:25                 ` Holly Bostick
  0 siblings, 1 reply; 26+ messages in thread
From: James @ 2005-08-31 14:01 UTC (permalink / raw
  To: gentoo-user

Nick Rout <nick <at> rout.co.nz> writes:

> 
> On Wed, 2005-08-31 at 05:50 -0500, John Jolet wrote:
> > On Aug 31, 2005, at 1:38 AM, Frank Schafer wrote:
> > 
> > >
> > > ... what about arp?
> > >
> > 
> > If this machine has the mac address listed on the outside of the  
> > case, or he opens it up to look at the card, sure.  if you don't know  
> > what the mac address is....then you're stuck. 
> 
> Not necessarily. If the machine has had network activity it may be shown
> by arp -e.

Say 'Hello, to my little friend'

arpscan

http://ish.cx/~jason/arpscan/

Sure would be nice if is was ported to an ebuild......


James

-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 26+ messages in thread

* Re: [gentoo-user]  Re: [OT] Finding other machines on the network
  2005-08-31 14:01               ` [gentoo-user] " James
@ 2005-08-31 14:25                 ` Holly Bostick
  2005-08-31 14:50                   ` James
  0 siblings, 1 reply; 26+ messages in thread
From: Holly Bostick @ 2005-08-31 14:25 UTC (permalink / raw
  To: gentoo-user

James schreef:
> 
> Say 'Hello, to my little friend'
> 
> arpscan
> 
> http://ish.cx/~jason/arpscan/
> 
> Sure would be nice if is was ported to an ebuild......

Some reason you can't submit one to b.g.o (if that hasn't been done
already)?

-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 26+ messages in thread

* [gentoo-user]  Re: [OT] Finding other machines on the network
  2005-08-31 14:25                 ` Holly Bostick
@ 2005-08-31 14:50                   ` James
  2005-08-31 15:09                     ` Eric Crossman
  2005-08-31 15:28                     ` Holly Bostick
  0 siblings, 2 replies; 26+ messages in thread
From: James @ 2005-08-31 14:50 UTC (permalink / raw
  To: gentoo-user

Holly Bostick <motub <at> planet.nl> writes:


> James schreef:

> > Say 'Hello, to my little friend'

> > arpscan

> > http://ish.cx/~jason/arpscan/

> > Sure would be nice if is was ported to an ebuild......

> Some reason you can't submit one to b.g.o (if that hasn't been done
> already)?

Hello Holly,

I'm not sure what 'b.g.o.' refers to, (sorry I don't get out much).

If your saying that why don't I make a formal request, well, I
figure I've already requested too much
(jffnms, updated zoneminder, netenv) None of which is completed (unmasked).
I figure I've worn out my welcome at gentoo.*....

I've been 'schooled' several times that I need to read up on creating
ebuilds, and start contributing (actually I agree with this sort
of public spanking...)

Contributing ebuils is on my to_do list, but, I have yet to
get a project completed. I'm a little 'gun_shy' as to receiving
another disertation on my ineptness.......

So when I'm confident that I can contribute ebuilds, I'll let your
and the 'greater gentoo' community know.

Somebody else what looking for a solution to finding ethernet based
hardware on a 802.3 wiring topology. As an espiring emebedded hack,
I often get minimal stacks working with the mac address. So I have
experience with ARP (much more than most are interested in).

Arpscan  can be useful.

So my reply should have been truncated....(again another scolding
well deserved)......


New Answer:

arpscan 
http://ish.cx/~jason/arpscan/


sincerely,
James



-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 26+ messages in thread

* Re: [gentoo-user]  Re: [OT] Finding other machines on the network
  2005-08-31 14:50                   ` James
@ 2005-08-31 15:09                     ` Eric Crossman
  2005-08-31 15:28                     ` Holly Bostick
  1 sibling, 0 replies; 26+ messages in thread
From: Eric Crossman @ 2005-08-31 15:09 UTC (permalink / raw
  To: gentoo-user

On Wed, 2005-08-31 at 14:50 +0000, James wrote:
> Holly Bostick <motub <at> planet.nl> writes:
> 
> 
> > James schreef:
> 
> > > Say 'Hello, to my little friend'
> 
> > > arpscan
> 
> > > http://ish.cx/~jason/arpscan/
> 
> > > Sure would be nice if is was ported to an ebuild......
> 
> > Some reason you can't submit one to b.g.o (if that hasn't been done
> > already)?
> 
> Hello Holly,
> 
> I'm not sure what 'b.g.o.' refers to, (sorry I don't get out much).
> 
> If your saying that why don't I make a formal request, well, I
> figure I've already requested too much
> (jffnms, updated zoneminder, netenv) None of which is completed (unmasked).
> I figure I've worn out my welcome at gentoo.*....
> 
> I've been 'schooled' several times that I need to read up on creating
> ebuilds, and start contributing (actually I agree with this sort
> of public spanking...)
> 
> Contributing ebuils is on my to_do list, but, I have yet to
> get a project completed. I'm a little 'gun_shy' as to receiving
> another disertation on my ineptness.......
> 
> So when I'm confident that I can contribute ebuilds, I'll let your
> and the 'greater gentoo' community know.
> 
> Somebody else what looking for a solution to finding ethernet based
> hardware on a 802.3 wiring topology. As an espiring emebedded hack,
> I often get minimal stacks working with the mac address. So I have
> experience with ARP (much more than most are interested in).
> 
> Arpscan  can be useful.
> 
> So my reply should have been truncated....(again another scolding
> well deserved)......
> 
> 
> New Answer:
> 
> arpscan 
> http://ish.cx/~jason/arpscan/
> 
> 
> sincerely,
> James
> 
> 
> 

b.g.o. = http://bugs.gentoo.org (Gentoo's bug tracking system)

Eric


-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 26+ messages in thread

* Re: [gentoo-user]  Re: [OT] Finding other machines on the network
  2005-08-31 14:50                   ` James
  2005-08-31 15:09                     ` Eric Crossman
@ 2005-08-31 15:28                     ` Holly Bostick
  1 sibling, 0 replies; 26+ messages in thread
From: Holly Bostick @ 2005-08-31 15:28 UTC (permalink / raw
  To: gentoo-user

James schreef:
> Holly Bostick <motub <at> planet.nl> writes:
>>> James schreef:
>>> Say 'Hello, to my little friend'
>>> 
>>> arpscan
>>> 
>>> 
>>> http://ish.cx/~jason/arpscan/
>>> 
>>> 
>>> Sure would be nice if is was ported to an ebuild......
>> 
>> Some reason you can't submit one to b.g.o (if that hasn't been done
>>  already)?
> 
> Hello Holly,
> 
> I'm not sure what 'b.g.o.' refers to, (sorry I don't get out much).

bugs.gentoo.org, the traditional first stop for new ebuilds wanting to
make their way into Portage.
> 
> If your saying that why don't I make a formal request, well, I figure
>  I've already requested too much (jffnms, updated zoneminder, netenv)
>  None of which is completed (unmasked). I figure I've worn out my 
> welcome at gentoo.*....

????

Where have you been doing this requesting? What do you mean by 'none of
which is completed (unmasked)'?

and where is gentoo.* (since ebuild requests are properly made at
bugs.gentoo.org)?

> 
> I've been 'schooled' several times that I need to read up on creating
>  ebuilds, and start contributing (actually I agree with this sort of 
> public spanking...)
> 
> Contributing ebuils is on my to_do list, but, I have yet to get a 
> project completed. I'm a little 'gun_shy' as to receiving another 
> disertation on my ineptness.......

That's what overlays are for; take a similar ebuild, copy it to your
overlay, modify it to your needs, try it out.

If it works, then submit a bug to b.g.o and attach the ebuild so that
others can try it out under different conditions, thus exposing any bugs.

A lot of the time an ebuild can be copied and adapted with only minor
changes that even I can do (and I can't code my way out of a paper bag,
but I've got a credit in a ChangeLog, of which I'm very proud ;) , since
I can't code my way out of a paper bag).

Nobody beats you up for 'trying' around here, although people will tell
you if you make stupid mistakes that you should have been able to avoid
by reading the docs, and everybody isn't the highest paragon of
politeness. But
usually people thank you for trying, and help you improve. Certainly if
you try, and then say, "OK, I got this far, but I'm over my head at this
point," people will leap to your assistance.

But nobody appreciates requests that increase their workload as if the
user has some inborn right to it ('gimme, gimme, gimme')-- though
sometimes, a request is interesting enough to somebody with some free
time on their hands that they do it anyway (usually if it's simple).

> 
> So when I'm confident that I can contribute ebuilds, I'll let your 
> and the 'greater gentoo' community know.

How are you supposed to be confident in your ability to do something if
you never do it because you're not confident in your ability to succeed?
> 
Holly
-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 26+ messages in thread

* RE: [gentoo-user] [OT] Finding other machines on the network
  2005-08-31  8:30           ` Nick Rout
  2005-08-31  8:42             ` Destromy
  2005-08-31 11:51             ` Matthias Bethke
@ 2005-09-14  0:50             ` Daevid Vincent
  2 siblings, 0 replies; 26+ messages in thread
From: Daevid Vincent @ 2005-09-14  0:50 UTC (permalink / raw
  To: gentoo-user

Related to this, I had a similar situation when I setup up a 'turbonet' card
on my TiVo. 

I built and evolved this web UI: 
http://daevid.com/examples/dhcp/

Source is at bottom of the page. I find it useful to see who's on my
network. My linux box is the firewall and dhcp server.

It uses 'arp'. Works well for my needs. YMMV. 

-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 26+ messages in thread

end of thread, other threads:[~2005-09-14  0:54 UTC | newest]

Thread overview: 26+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-08-30 14:51 [gentoo-user] [OT] Finding other machines on the network Andrew Lowe
2005-08-30 15:01 ` John Jolet
2005-08-30 15:04 ` Bastian Balthazar Bux
2005-08-30 15:08 ` fire-eyes
2005-08-30 15:11 ` Martin Marcher
2005-08-30 15:12 ` Christoph Gysin
2005-08-30 15:18   ` John Jolet
2005-08-30 21:57     ` Christoph Gysin
2005-08-30 22:51       ` John Jolet
2005-08-31  6:38         ` Frank Schafer
2005-08-31  8:30           ` Nick Rout
2005-08-31  8:42             ` Destromy
2005-08-31  8:59               ` Nick Rout
2005-08-31 11:51             ` Matthias Bethke
2005-09-14  0:50             ` Daevid Vincent
2005-08-31 10:50           ` John Jolet
2005-08-31 11:41             ` Nick Rout
2005-08-31 14:01               ` [gentoo-user] " James
2005-08-31 14:25                 ` Holly Bostick
2005-08-31 14:50                   ` James
2005-08-31 15:09                     ` Eric Crossman
2005-08-31 15:28                     ` Holly Bostick
2005-08-31 11:56             ` [gentoo-user] " Frank Schafer
2005-08-30 17:49 ` Uwe Thiem
2005-08-30 19:56   ` [gentoo-user] " Michael Mauch
2005-08-31 12:50 ` [gentoo-user] [OT] " Anthony Walters

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox