Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
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.
SDN 101: An Introduction to Software Defined Networking
Discover the advantages of SDN.
SDN has quickly become one of the hottest trends in IT. But not all SDN solutions offer real software-defined functionality. As more enterprises consider SDN, they want to know, “What is SDN? And what are the real benefits?” If you're ready to explore the advantages of SDN, and want to know how it should be implemented within your enterprise, start by reading our introductory white paper.
Click Here to receive this Complete Guide absolutely free.
I recently configured a Linux router to share the internet in my local network. I used to have a hardware router before this, but it doesn't work anymore. On the router it was something called "Web Configurator" from where you could do things like forward ports, set up DHCP and such. Basic router stuff. There were also some system information about the internet connection which displayed <B>uptime</B>, transferred/transmitted bytes/packets, current IP and such.
This is something I really miss, so I began making a site like this for my Linux router. This is where my problem comes in. I have no idea how to display the internet connection uptime. I know I can find out when the connection started by looking at when i.e. /var/run/ppp0.pid was started, but that doesn't help me much since I don't know what to do with it. I don't know perl or PHP, so I'm not able to make a script which figures out this issue.
I've searched the internet, but this hasn't helped a lot.
Another problem is how to export the information from the router box and over to the web server. -My- best solution is to set up crontab entry for scp'ing a file from the router and over to the server, but then I need a script which calculates the uptime and prints it to a file. How to export is though not my main problem, but I'm really open for better suggestions.
But what I really need help about is the uptime issue.