Thanks to Dean, Brett, Stuart and Martin,

or 'arp -a' will tell you what your computer knows about

gives only ip of modem/router


nmap -sP xxx.xxx.xxx.0/24

where the xxx's are your subnet. typically it will be something like
192.168.0.0/24 or 10.1.1.0/24


command not found


this is assuming your machines are responding to pings

ping -b 192.168.1.255 will show you replies from each attached computer
on that subnet.


Gives ip's of all connected pc's - just what I was looking for

Usually each of your PCs will register their hostname with the DHCP
server when they ask it for an IP. Your modem/router will probably have
a web page (look for status or somesuch) that will reveal the names, IP
address and MAC (ethernet) address it knows about. Often they also act
as a DNS and as such will also reveal the name to IP address mapping via
DNS. You can query this with the command "nslookup <hostname>
<router_ip>.

Forgotten details of accessing modem/router - set it up 7 months ago and haven't touched it since - undoubtedly the best source of info re system. Am loath to play with it incase I stuff it up and lose Net access.


A lot of these router/modems even support WINS (the "old" Windows
dynamic name service), you can query this with "nmblookup -U <router_ip>
-R <hostname>".


command not found


BTW Almost certainly the IP allocated is not associated with the
physical port. Usually allocation is simply out of the next one
available in the pool of addresses for DHCP.

No doubt that this is correct - funny that the 3 pc's are connected to ports 1,2 and 3 of the Switch, but use ips 192.168.1.243/244 and 249 - 254 is the modem/router.


Thanks again

Bill

(always learning something new re linux)


-- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html

Reply via email to