LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Getting (linux) Internet via another computer (Xp) (https://www.linuxquestions.org/questions/linux-newbie-8/getting-linux-internet-via-another-computer-xp-542149/)

lordgreggreg 03-31-2007 09:33 AM

Getting (linux) Internet via another computer (Xp)
 
Hi there, My school (UTD) offers wireless internet for free, but It is a beast to connect to, and I really can only access it with my XP based laptop (not to mention my linux box has no wireless card, nor do I want to mess with 8021x authentication or ndiswrapper at this moment).

SO.
I have a crossover cable, I connect it from my xp computer told to share internet connection, thus making my laptops ip = 192.168.0.1;

Then on kubuntu I manually set it up to use the same subnetmask (255.255.255.0) and the ip adress of (192.168.0.2)

No internet, I know im missing alot. Or if this is even possible.

GrapefruiTgirl 03-31-2007 10:56 AM

OK, you almost got it, and it is definitely possible; this is what I use at home...
The windows machine must be set for connection sharing/home networking, as you seem to have.
The Linux machine IP should be 192.168.0.2, the Linux default gateway is 192.168.0.1, and the broadcast address is often 192.168.0.255. I think you have the subnet mask correct, but may end up trying 255.255.255.255 as well.
You may need to put some info into a few other files on the linux machine, like etc/nsswitch.conf (contains the primary and backup nameserver IP's of the ISP or perhaps the university in this case), and you *may* need to see that your etc/host and /etc/hostname files are correct.
Now, provided you have the ethernet card in the linux machine running, and with the correct module/driver loaded, you should see signs of life :)
As a last resort, and if you haven't already, run the XP connection/networking wizard to set up home networking with the two computers connected and both turned on and ready to go..

Hendronicus 03-31-2007 03:30 PM

I run my net connection like this, and it works, but I didn't need to specify a gateway.


All times are GMT -5. The time now is 09:06 PM.