LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 03-04-2021, 10:59 AM   #1
cesarsj
Member
 
Registered: Mar 2019
Location: Patos de Minas, MG, Brazil
Distribution: Slackware
Posts: 159

Rep: Reputation: Disabled
Question How could I collect the MAC from a different network machine?


For example, from a machine on the 172.85.6.0/24 network I want to collect the MAC from a machine on the 192.168.6.0/24 network.
 
Old 03-04-2021, 11:07 AM   #2
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,661

Rep: Reputation: Disabled
Read here, MAC addresses are visible on OSI layer 2.
 
Old 03-04-2021, 02:48 PM   #3
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,974

Rep: Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623
If they are on same lan then you simply modify your subnet to a supernet.
 
Old 03-13-2021, 12:21 PM   #4
Gad
Member
 
Registered: May 2013
Distribution: FreeBSD
Posts: 566

Rep: Reputation: 114Reputation: 114
Quote:
Originally Posted by cesarsj View Post
For example, from a machine on the 172.85.6.0/24 network I want to collect the MAC from a machine on the 192.168.6.0/24 network.
If the networks are able to route packets between each network ping the device using the IP then inspect your ARP table
 
Old 03-13-2021, 02:04 PM   #5
teckk
LQ Guru
 
Registered: Oct 2004
Distribution: Arch
Posts: 5,137
Blog Entries: 6

Rep: Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826
You need to be root
Code:
nmap -sP -n 192.168.0.0/24
You'll have to be able to reach other subnets from the machine you are on.
 
Old 03-13-2021, 02:51 PM   #6
shruggy
Senior Member
 
Registered: Mar 2020
Posts: 3,670

Rep: Reputation: Disabled
From the nmap manual page:
Quote:
In previous releases of Nmap, -sn was known as -sP.
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
forwarding ssl port to a different ssl port number on a different machine coal-fire-ice Linux - Networking 6 03-15-2007 12:30 PM
What is the best POP3 server that I can easily collect mail from my Windows machine? ExCIA Linux - Networking 1 05-11-2005 10:25 PM
iwspy: no statistics to collect h/w Linux - Networking 2 10-20-2003 08:21 PM
does anybody else collect old computers? Brain Drop General 28 04-06-2003 10:26 PM
collect 2: cannot find 'ld' dancindoc Linux - Newbie 1 09-08-2002 01:25 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 10:40 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration