🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: alt.internet.wireless
Article #56

Re: how to browse router's MAC addresses

#56
From: Jeff Liebermann
Date: Thu, 18 Oct 2007 16:59
68 lines
3631 bytes
deepakpresent@gmail.com hath wroth:

>is it possible to programatically get the list of a router's all LAN
>and WLAN mac addresses.

Sure.  If your router is running a real operating system, just run:
  arp -a

For example:
  dellbert (192.168.1.11) at 00:02:B3:1E:39:ED [ether] on br0
  xxxxxx (63.249.85.1) at 00:10:67:00:D0:9B [ether] on vlan1
  micron (192.168.1.113) at 00:0F:66:14:E5:4B [ether] on br0
  dellinquent (192.168.1.50) at 00:40:05:C7:1C:44 [ether] on br0
  dellicious (192.168.1.51) at 00:C0:A8:7F:FE:92 [ether] on br0

Hmmm... it doesn't list the LAN side IP address of the router
(192.168.1.1) but that's already known because you can't get the arp
information out of the router without first knowing the router's IP
address.  

I guess we have to use ifconfig, which results in something like this:

br0       Link encap:Ethernet  HWaddr 00:14:BF:B9:10:13
          inet addr:192.168.1.1  Bcast:192.168.1.255 
          Mask:255.255.255.0

br0:0     Link encap:Ethernet  HWaddr 00:14:BF:B9:10:13
          inet addr:169.254.255.1  Bcast:169.254.255.255 
          Mask:255.255.0.0

eth0      Link encap:Ethernet  HWaddr 00:14:BF:B9:10:13

eth1      Link encap:Ethernet  HWaddr 00:14:BF:B9:10:15

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0

vlan0     Link encap:Ethernet  HWaddr 00:14:BF:B9:10:13

vlan1     Link encap:Ethernet  HWaddr 00:14:BF:B9:10:14
          inet addr:63.249.85.127  Bcast:63.249.85.255 
          Mask:255.255.255.0

>if u know any windows API / library / any
>code/ Link... anything... that would help me a lot!

Sorry.  I are not a programmist and don't know anything about
programming.

> Secondly, i want to get any unique thing in the router. it should be
>unique in the world. probably serial no, or anything else...
>( programatically. )

The MAC address of the router is unique.

>i thought of getting UPnp device # of router, and in case of bonjour
>routers, get Bonjour device#. But older routers won't support any of
>these. That's what i think, please correct me if i'm wrong.

If this is some kind of copy protection scheme, methinks you will need
something more sophisticated.  MAC addresses can be spoofed, forged,
or cloned.

-- 
Jeff Liebermann     jeffl@cruzio.com
150 Felker St #D    http://www.LearnByDestroying.com
Santa Cruz CA 95060 http://802.11junk.com
Skype: JeffLiebermann     AE6KS    831-336-2558
Technical Details
Message-ID: <m73fh3hqc32eq84ej93798dbscfrdrk2uo@4ax.com>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!out01a.usenetserver.com!news.usenetserver.com!in01.usenetserver.com!news.usenetserver.com!spln!extra.newsguy.com!newsp.newsguy.com!enews2
References: <1192689620.893999.29330@v23g2000prn.googlegroups.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 104fd2,e6727ffbb4b6cf2b
X-Google-Thread: 108b8a,e6727ffbb4b6cf2b
X-Google-Thread: faa3c,e6727ffbb4b6cf2b
X-Google-Thread: 10669a,e6727ffbb4b6cf2b
X-Google-Attributes: gid104fd2,gid108b8a,gidfaa3c,gid10669a,public,usenet
X-Google-Language: ENGLISH,ASCII-7-bit
Path: arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!out01a.usenetserver.com!news.usenetserver.com!in01.usenetserver.com!news.usenetserver.com!spln!extra.newsguy.com!newsp.newsguy.com!enews2
From: Jeff Liebermann <jeffl@cruzio.com>
Newsgroups: alt.internet.wireless,microsoft.public.windowsxp.network_web,24hoursupport.helpdesk,comp.os.linux.networking
Subject: Re: how to browse router's MAC addresses
Date: Thu, 18 Oct 2007 09:59:43 -0700
Organization: NewsGuy - Unlimited Usenet $19.95
Lines: 68
Message-ID: <m73fh3hqc32eq84ej93798dbscfrdrk2uo@4ax.com>
References: <1192689620.893999.29330@v23g2000prn.googlegroups.com>
NNTP-Posting-Host: p54d1bfbfff00000003f02363d89940f853bb28c0010a3452f846df03494ed562d45d35f4270ae622.newsdawg.com
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-Newsreader: Forte Agent 4.2/32.1118