HOW-TO: Connect to the Internet through Windows Internet Sharing!
I DID IT!!! I Managed to connect to the net through my DSL-connected Windows machine! So, in this day of celebration, I thought I'd share the fun around! I'll try to make this easy enough for all to understand.
So, here goes:
1. Connect both Server (The Internet connected Windows PC) and Client (Your lonely Ubuntu PC) using a standard Crossover Cable, connected to standard LAN adaptors.If you know that your PCs are able to "talk" to each other, you're done.
2.Now, for the configuration part of the job.My configuration is something like this:
INTERNET------DSL MODEM======WINDOWS PC==========UBUNTU PC
Where "------" is a Phone Line and "=====" is a LAN cable.
Depending on your configuration, the solution might be a LITTLE different.But, as a note, I don' think that the USB or LAN does any difference when connecting Modem and PC.
So, what I did is this:
a) I went to my Windows PC and assigned a IP (Plus other values) for my NEW LAN connection (The one between Win and Ubuntu, for me It's Local Area Connection 3)
You can put something like this
IP: 192.168.0.1
Subnet Mask: 255.255.255.0 (Auto assigned)
Gateway: (Put here the same (IP Address) value as in your Internet Connection)
Primary DNS: (Here, I put the same (Primary and Alternate DNS) values as in the LAN adaptor connected to the MODEM)
Alternate DNS: (Same as Above)
b) I went to my Internet Connection and Enabled Internet Sharing for the LAN Adaptor connecting the two PCs (Again, for clarification, for me it's Local Area Connection 3).
c) That's all for the Windows PC, now for the Ubuntu PC.First, add the Network Monitor Panel Applet (Or KDE equivalent).Next, go configure the Network Connections through "System---->Administration---->Networking".Right Click, "Properties", and check the "This device is configured" thingie, then choose DHCP from the drop-down list.
THAT'S IT! You might need to restart your computers, but, that worked for me! Please note that, whilst the "Network Monitor" applet shows me that I'm sending packages whenever it try to "ping" the Windows PC IP address, the terminal tells me that I have 100% package loss, so don't believe the terminal THAT much.If I've done anything wrong, or you just wanna let off some steam, send feedback!
Thanks, everyone, for this great community you've created.I'm just happy I can give back to the community!
Last edited by Havoc; October 5th, 2005 at 11:44 AM.
"Ubuntu" is an ancient African word, meaning: "I can't configure Debian."
Bookmarks