Networking Forums

Networking Forums > Computer Networking > Linux Networking > list computers in network

Reply
Thread Tools Display Modes

list computers in network

 
 
bbla32@op.pl
Guest
Posts: n/a

 
      03-06-2007, 10:40 PM
Is there a script/tool to list IPs of computers in my network,
something like ping all possible addresses and show which are
available?

 
Reply With Quote
 
 
 
 
Bit Twister
Guest
Posts: n/a

 
      03-06-2007, 10:55 PM
On 6 Mar 2007 15:40:47 -0800, (E-Mail Removed) wrote:
> Is there a script/tool to list IPs of computers in my network,
> something like ping all possible addresses and show which are
> available?


man arp to see if dumping the arp cache to see if that works for you.
 
Reply With Quote
 
bbla32@op.pl
Guest
Posts: n/a

 
      03-06-2007, 11:11 PM
> man arp to see if dumping the arp cache to see if that works for you.

good idea... btw since I use DHCP is there a way to print which fixed-
address hosts are currently connected, like force to show them in
"dhcpd.leases"?

 
Reply With Quote
 
bbla32@op.pl
Guest
Posts: n/a

 
      03-06-2007, 11:11 PM
> man arp to see if dumping the arp cache to see if that works for you.

good idea... btw since I use DHCP is there a way to print which fixed-
address hosts are currently connected, like force to show them in
"dhcpd.leases"?

 
Reply With Quote
 
Bit Twister
Guest
Posts: n/a

 
      03-06-2007, 11:29 PM
On 6 Mar 2007 16:11:20 -0800, (E-Mail Removed) wrote:
>> man arp to see if dumping the arp cache to see if that works for you.

>
> good idea... btw since I use DHCP is there a way to print which fixed-
> address hosts are currently connected, like force to show them in
> "dhcpd.leases"?


Hmm, guessing you failed to read the arp man page or I do not
understand what you want.


$ arp -i eth0
Address HWtype HWaddress Flags Mask Iface
fw.home.invalid ether 00:A0:CC:26:06:34 C eth0

$ arp -n -i eth0
Address HWtype HWaddress Flags Mask Iface
192.168.2.1 ether 00:A0:CC:26:06:34 C eth0

Where we find
$ cat /etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE=eth0
BOOTPROTO=static <====== note the word static, means fixed.
IPADDR=192.168.2.1 <===== 3 guesses for that
NETMASK=255.255.255.0
ONBOOT=yes
METRIC=10
MII_NOT_SUPPORTED=no
USERCTL=no
RESOLV_MODS=yes
IPV6INIT=no
IPV6TO4INIT=no
LINK_DETECTION_DELAY=5
GATEWAY=76.184.128.1
 
Reply With Quote
 
Dan N
Guest
Posts: n/a

 
      03-06-2007, 11:34 PM
On Tue, 06 Mar 2007 15:40:47 -0800, bbla32 wrote:

> Is there a script/tool to list IPs of computers in my network,
> something like ping all possible addresses and show which are
> available?


Have a look at nmap.

Dan

 
Reply With Quote
 
ray
Guest
Posts: n/a

 
      03-07-2007, 02:04 AM
On Tue, 06 Mar 2007 15:40:47 -0800, bbla32 wrote:

> Is there a script/tool to list IPs of computers in my network,
> something like ping all possible addresses and show which are
> available?


ping -b

 
Reply With Quote
 
bbla32@op.pl
Guest
Posts: n/a

 
      03-07-2007, 07:33 PM
On Mar 7, 1:29 am, Bit Twister <BitTwis...@mouse-potato.com> wrote:
> On 6 Mar 2007 16:11:20 -0800, bbl...@op.pl wrote:
>
> >> man arp to see if dumping the arp cache to see if that works for you.

>
> > good idea... btw since I use DHCP is there a way to print which fixed-
> > address hosts are currently connected, like force to show them in
> > "dhcpd.leases"?

>
> Hmm, guessing you failed to read the arp man page or I do not
> understand what you want.


Thanks. I meant that I got arp working but I was wondering why DHCP
does not add to file "dhcpd.leases" computers defined like that in
"dhcpd.conf":
host xxx {
hardware ethernet ......;
fixed-address 192.168.0.3;
}

 
Reply With Quote
 
bbla32@op.pl
Guest
Posts: n/a

 
      03-07-2007, 07:34 PM
Thanks to everyone for answers!

 
Reply With Quote
 
Bit Twister
Guest
Posts: n/a

 
      03-07-2007, 07:57 PM
On 7 Mar 2007 12:33:02 -0800, (E-Mail Removed) wrote:
>
> Thanks. I meant that I got arp working but I was wondering why DHCP
> does not add to file "dhcpd.leases" computers defined like that in
> "dhcpd.conf":
> host xxx {
> hardware ethernet ......;
> fixed-address 192.168.0.3;
> }


Ok, as I misunderstand your question with information so far,
what you see in the dhcpd.leases is the dhcp client format of the
lease sent from the dhcp server.

Now you indicated fixed ip address, so there should be no "lease" file
on that node. There may be one if the node was configured dynamic ip
at one time.
If so, lease date/timestamp info would show last time the file was updated.

 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
List all computers on network edward Wireless Networks 2 05-18-2009 02:52 AM
Refresh network list dekac99 Wireless Networks 2 04-03-2008 10:08 AM
No computers in server browse list =?Utf-8?B?TWFydHkgUw==?= Windows Networking 1 02-16-2005 07:05 PM
Microsoft Broadband Network Util Network Devices List Mark A. Huckaby Broadband Hardware 2 08-11-2004 09:46 PM
Dsl -> switch -> 3 computers & wireless router -> laptop -- problems seeing all 4 computers in "Network Neighborhood" Kraw Wireless Internet 0 06-26-2003 11:18 PM



1 2 3 4 5 6 7 8 9 10 11