qeldroma Posted October 22, 2002 Report Share Posted October 22, 2002 I got a server which changes the IP dynamically every couple of hours. Therfore i don't want to compile an utility in for dyndns.org, or something similar, i got the MAC-ID, that is identifying worldwide. But, because of it's dynamic IP, i have always to ring someone up tgive me the actual IP. I hate that. I think there MUST be a way to find the IP via MAC-ID, nothing else than TCP/IP has to do with every packet?! Quote Link to comment Share on other sites More sharing options...
Guest dturley Posted October 22, 2002 Report Share Posted October 22, 2002 not sure I unnderstand the question but you can get your IP address with ifconfig, /sbin/ifconfig eth0 | grep 'inet addr' | awk '{print $2}' | sed -e 's/.*://' Quote Link to comment Share on other sites More sharing options...
qeldroma Posted October 22, 2002 Author Report Share Posted October 22, 2002 Server <--> me = 800 kilometer. Quote Link to comment Share on other sites More sharing options...
Guest dturley Posted October 22, 2002 Report Share Posted October 22, 2002 i run commands on machines located 1000s of miles away all the time. look up ssh Quote Link to comment Share on other sites More sharing options...
Glitz Posted October 22, 2002 Report Share Posted October 22, 2002 I don't think so. The MAC id has nothing to do with the IP address. They are two completely seperate things. You might ask you're service provider if they can give you a static IP. You might also be able to register a domain name that tracks the IP automatically. I remember someone suggesting that sort of a solution somewhere before. Glitz. Quote Link to comment Share on other sites More sharing options...
paul Posted October 22, 2002 Report Share Posted October 22, 2002 you could even run a simple rpc (remote procedure call) but I think I would still agree with dturley use ssh. Quote Link to comment Share on other sites More sharing options...
qeldroma Posted October 22, 2002 Author Report Share Posted October 22, 2002 I wanna see the person, that runs ssh ONLY WTIH A MAC-ID!!!! Remeber: I HAVE the mac and i NEED the IP for exactly that reason, remote login. Quote Link to comment Share on other sites More sharing options...
qeldroma Posted October 22, 2002 Author Report Share Posted October 22, 2002 Phew, got a solution!! I found a utility to put sthg on an ftp-server by batch. So i grep ifconfig, put this in a file and put that file croned on the webserver, that i've got, et voilà. 8) 8) 8) 8) 8) It's cool, isn't it? Next step will be to make a simple script, that looks if the ip changed and sends only then the file. Quote Link to comment Share on other sites More sharing options...
Guest itti Posted October 23, 2002 Report Share Posted October 23, 2002 the mac adress is a unique layer 2 adress the ip adress is a layer 3 adress in order to have communication happen you have to know both adresses. usually the sender only knows the ip adress of the target-host so the ARP (Adress Resolution Protocol) is used. In your case the R-ARP (reverse ARP) has to be used to find out the ip. i never did an r-arp-request manually on linux but thats what you are searching for. Quote Link to comment Share on other sites More sharing options...
qeldroma Posted October 23, 2002 Author Report Share Posted October 23, 2002 --> itti Sounds cool, like those little adventures :D Could you give me some hints how to begin to find out the way, how i could start an r-arp? Quote Link to comment Share on other sites More sharing options...
Glitz Posted October 23, 2002 Report Share Posted October 23, 2002 rarp has something to do with ethernet networks (used for manipulating the resolution table on those networks). It has also been obsolete since the 2.3 kernel versions. The program RARP is still installed by mandrake but I tried to run it and it says there is no kernel support for it. Maybe there is a module that has to be installed? Glitz. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.