Page 3 of 3 FirstFirst 123
Results 21 to 25 of 25

Thread: ip and mac addresses logging.

  1. #21
    Join Date
    Jun 2008
    Location
    South-West France
    Posts
    996

    Default Re: ip and mac addresses logging.

    Quote Originally Posted by deano_ferrari View Post
    You need to look at the respective routers ARP tables for that information. Hosts employing SNMP or WMI may be able to be queried for more information, so that might form the basis of a discovery script (after an initial nmap scan to determine IP addresses of connected hosts present). Another 'hybrid' option might be to have a host (eg Raspberry Pi) in each subnet that can collect the IP and MAC addresses and share these to your Linux machine via some method.
    Quote Originally Posted by deano_ferrari View Post
    You need to look at the respective routers ARP tables for that information.
    I didn’t dare ask you how.

    Quote Originally Posted by deano_ferrari View Post
    Another 'hybrid' option might be to have a host (eg Raspberry Pi) in each subnet that can collect the IP and MAC addresses and share these to your Linux machine via some method.
    Tomorrow I will go and connect my laptop on subnet1 and subnet 2 to collect data.

    Thank you for helping.
    Thanks for helping. JCD
    __________

    server leap 15-- ASUS g75vw KDE leap 42.3 -- ASUS g750JZ KDE leap 42.3 -- acer aspire s13 win 10 home -- HP Omen win 10 home - scan EPSON V500 - Brother HL2250DN - Samsung CLP-325W

  2. #22
    Join Date
    Jun 2008
    Location
    South-West France
    Posts
    996

    Default Re: ip and mac addresses logging.

    Quote Originally Posted by malcolmlewis View Post
    Hi
    So are all three routers capable of snmp?

    --
    Cheers Malcolm °¿° SUSE Knowledge Partner (Linux Counter #276890)
    SLES 15 | GNOME Shell 3.26.2 | 4.12.14-25.25-default
    If you find this post helpful and are logged into the web interface,
    please show your appreciation and click on the star below... Thanks!
    Router 1 : No
    As it is an ISP hardware, configuration is limited to general use.
    And as the caretaker's home is connected to subnet 1 for internet and television, and television is a service available only from port #4 (for connection of a TV decoder) I cannot ask for configuration change.

    Router 2 : yes available, but not configured. And as TSU and deano_ferrari told there is a lot of work to do.
    Thanks for helping. JCD
    __________

    server leap 15-- ASUS g75vw KDE leap 42.3 -- ASUS g750JZ KDE leap 42.3 -- acer aspire s13 win 10 home -- HP Omen win 10 home - scan EPSON V500 - Brother HL2250DN - Samsung CLP-325W

  3. #23
    Join Date
    Jun 2008
    Location
    San Diego, Ca, USA
    Posts
    10,293
    Blog Entries
    1

    Default Re: ip and mac addresses logging.

    Let's talk about basics for a moment about some main options...

    SNMP - One of many ways to authenticate to one or more devices in a network. You can enable SNMP on every device and then connect to, and query that device... And SNMP is supported by just about everything... not just routers but every Server and Workstation, practically every device. And yes, that includes Linux and Windows boxes, too. But, if your objective is to simply retrieve the MAC addresses of hosts in the network, there is an alternative to connecting to every host in the network, certain devices will have information on a number of those hosts. Routers will know about any devices they connect to directly. For that matter, not just routers but every host machine in a network potentially knows about every other host on that network depending on how much ARP and NetBIOS activity there may be. Also, services like DHCP match MAC addresses to IP addresses and maintain a table of such leases. So, you have many options where to find MAC addresses. But, of course the requirement to use SMNP is that the device you query has to have that set up already, and for security reasons SNMP is not always enabled (only requires a password and community name and nothing else!)

    LDAP, Active Directory, NIS, Local logon, etc - Because SNMP is not typically enabled or even advisable for small networks, there are many other possible ways to authenticate to a machine you want to query. These are all common ways network scanners do so to obtain info like MAC addresses and not all require unsual setups but do require knowledge of the target machine's security.

    An installed agent - All the above options until now describe your connecting directly to the target machine and then querying for what you want. You can instead have something installed on the remote network that gathers the information you want, then sends the information to you. So, for instance you could write a script that scans the local network and stores MAC addresses in a file, then would send the results to you. You could email that script to your caregiver, have her execute the script and just wait for the results.

    TSU
    Beginner Wiki Quickstart - https://en.opensuse.org/User:Tsu2/Quickstart_Wiki
    Solved a problem recently? Create a wiki page for future personal reference!
    Learn something new?
    Attended a computing event?
    Post and Share!

  4. #24
    Join Date
    Jun 2008
    Location
    South-West France
    Posts
    996

    Default Re: ip and mac addresses logging.

    Quote Originally Posted by tsu2 View Post
    Let's talk about basics for a moment about some main options...
    .....
    So, you have many options where to find MAC addresses....
    ...
    TSU
    And then ?
    Thanks for helping. JCD
    __________

    server leap 15-- ASUS g75vw KDE leap 42.3 -- ASUS g750JZ KDE leap 42.3 -- acer aspire s13 win 10 home -- HP Omen win 10 home - scan EPSON V500 - Brother HL2250DN - Samsung CLP-325W

  5. #25
    Join Date
    Jun 2008
    Location
    San Diego, Ca, USA
    Posts
    10,293
    Blog Entries
    1

    Default Re: ip and mac addresses logging.

    Quote Originally Posted by jcdole View Post
    And then ?
    Once you can authenticate, then the scanner will return the MAC address.

    A couple days ago, I did a quick search for scanners that will return MAC addresses with authentication, although I haven't used it for expressly this purpose, nmap is supposed to do this.

    TSU
    Beginner Wiki Quickstart - https://en.opensuse.org/User:Tsu2/Quickstart_Wiki
    Solved a problem recently? Create a wiki page for future personal reference!
    Learn something new?
    Attended a computing event?
    Post and Share!

Page 3 of 3 FirstFirst 123

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •