Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
He stated they were in different subnets, that would imply a router has to be involved at some point.
Ahh I think I get it now.. (the light switch clicked on..) that's why the MAC address.
Static arp assignments then as 0.o suggested, should require no reconfiguration of the remote hosts.
The issue is that I want to script the process that I have to do manually.
I have to log in into each devices that comes with random ip address (a user configured device that has been returned for some reason. ) and collect info about the radio.
So I figured if I could ssh using a MAC address I could just do an arp -a see the mac. Then log in get the information I need and dump it to a database then just continue down the loop until all the devices are done.
I think there is a way to MAC telnet, but the davices have ssh as default.
because I need to script the process if at all possible
when you receive a device that could have any possible ip address on it
it becomes a pain in the butt to reconfigure eth:1 ever time and figure out what subnet its on. now times that by 300 devices that you plug in ever day.
mikrotik has a utility that lets you get inside of its devices with only using the mac address.
I would like to make such a utility.
Sorry to bump an old thread. Came across this while Googling. I working on some MikroTik RB411's. I think I have a script worked out that will update the firmware and apply the configuration I want to multiple units, but I would have to connect via SSH in PuTTY using MAC Add to do it. Anyone got any ideas?
Found this thread several times in the last days
searching for a solution!
So for all who still need a solution get mac2ip from https://sites.google.com/site/joergtinner/
Running programs with the MAC instead of the IP.
SYNTAX: mac2ip MAC "CMD"
MAC - is the Mac-Address (or distinctive[!] part)
you want to get substituted by the related IP.
CMD - is the command you want to execute. Please write
it in quotes and use "IP" instead of the IP.
Examples: mac2ip A1:B2:C34:E5:F6 "ssh root@IP"
mac2ip B2:C34 "vncviewer IP:1"
mac2ip A1:B2:C34:E5:F6 "krdc IP"
Tip: mac2ip x x (will give you a MAC list.)
Note: depends on ping, ifconfig and arp.
There is a block to edit in the script, if you need to
access some other subnets!