Sunday, October 3, 2010

Internet Sharing by one LAN Card.... A new Discovery (For AITians)

Today i am going to describe the steps which i took to solve one of the biggest problem for me, how to make Internet server virtualized so that anyone can be server.

Lets first understand the problem statement....

Internet connection sharing is done by using one dedicated server which runs on continuously. So a person who decides to be server, has to face problems to continuously run his computer for hours. If the server needs to be shifted, then we have to shift the cable connection, move the extra LAN card to the new PC and it takes time too.
I have minimized his burden by virtualizing the server and thus anyone can be server without any problem. I have eliminated the need of extra LAN card thus sharing and receiving internet through same NIC. Thus if the computer sharing internet shuts down, then another person can share the net from his own computer within 2 minutes.

So what forced me to think in this way???


I saw the network utilization andfound that for maximum time, the utilization of 100mbps LAN Card is just 0.2-0.4% which is just the wastage of network.
Also the extra LAN card which we are using for the internet purpose, that too uses 600kbps speed internet which is negligible as compared to its capability. So why not to eliminate the extra LAN card and use the same LAN card for both the purposes.

SO WHAT I DID???
I used the virtualization technology provided by the vmware workstation software to solve this problem.
I first created a virtual machine running windows XP which is going to be used for the server purpose…
Now instead of using physical lan card, I installed two virtual lan cards onto the virtual machine.
Now I installed all the softwares required onto the virtual machine.


Now the Input from the Modem is added to the HUB. Now one connection from the HUB runs to the computer which is going to share the internet…
Since I have kept the virtual network adapters of the virtual machine to be in bridged connection, so the machine appears as an individual machine on the LAN.

Now one of the network adapter is set to be getting its IPv4 address dynamically from the DHCP server of the internet providing company.
The other adapter is assigned the IP address which the users are going to use as the address of the server.
Now this simple machine can be copied and stored somewhere so that if sometime, something goes wrong, then the faulty machine can be deleted and the new one can be simply copied at its location.

Also now this machine can be distributed to all the clients. So if at some time the client sharing the internet shuts down his PC, even then the other user can simply switch on that virtual machine and share the internet.
Thus the burden of continuously keeping the machine in the running state is reduced.

Also the burden of extra LAN card on the machine is reduced, electricity consumption is reduced…

People Affected
1. Hostel students.
2. College Departments.
3. Network Administrators.
4. People using internet by sharing among themselves.
I hope you will like this post....... If you have any doubts or queries, you can ask me at any time....
I would also like to thank my friend Manjit for helping me to try out this idea on his server otherwise it would have remained as an idea only with no practical implementation...

:))

3 comments:

  1. naaice one rahul! I loved it. but have you chkd "iptables" present in linux systems?

    ReplyDelete
  2. @Prince: The problem is that when we get the IP via DHCP, you can't add one more network address to the machine. You need to have an extra LAN card. Plus the IP we get from the broadband is Class A and we using at hostel is either class B or class C. So you can't access both of them via DHCP. But here using this i am able to do both. The iptables would be for static ip address.....

    ReplyDelete