![]() |
n9 commands to get the mac address of a router
my uncle has a problem with his router, but we can't access the configuration page and he doesn't want to reset it. i'm trying to access the router but i need to get the mac address. which are the commands in meego harmattan to get the mac address of a router without actually being connected to it
|
Re: n9 commands to get the mac address of a router
I didn't read your question right, so I thought you were looking for the internal mac address of the N9.
Problem is: Normally one would use "arp" to find out this address, however, it is not available on the N9. So you need to get it elsewhere, being: Code:
cat /proc/arp For this to work, however, you would need to be connected to it. |
Re: n9 commands to get the mac address of a router
@anthonie
You probably meant /proc/net/arp? @skyleth I don't understand what you mean by "not connected" as obiviously you can't get any information of anything without some kind of connection to it. So I will presume you are connected to the same LAN that the router is in. If you have busybox-power (I'm not sure if harmattan's stock busybox includes /usr/sbin/arp) installed you can: Code:
$ /usr/sbin/arp -n <router's IP-address> Code:
$ devel-su Code:
# nmap -sP 192.168.*.* | grep -B3 MAC |
Re: n9 commands to get the mac address of a router
thank you, i will try with your suggestions to see what i can get
|
Re: n9 commands to get the mac address of a router
Quote:
Ahum... :) |
Re: n9 commands to get the mac address of a router
Quote:
Nmap can be installed from rzr's repository with apt-get or you can download it from here and install as usual with dpkg -i </path/to/package.deb>. |
All times are GMT. The time now is 01:29. |
vBulletin® Version 3.8.8