linux and winme internet connection sharin?

magneto125

Member
Aug 8, 2001
147
0
0
I was just wondering how to do this. I just installed mandrake today and i want to get on the net but my only
connection is through my windows comp. I know how to share a connection between two windoz comps
but not sure how to do it with linux. What is the command to find out what my ip address in linux?
I've tried to manually put in an ip address and it still dosen't connect. Also I have set it up to automaticly choose
my Ip and it still does nothin. Do I have to choose which protocol touse? Because I don't even see an option
to do so. Also when the network monitoring window shows up it takes forever to appear.
If anybody has any ideas i'd appreciate it!:)
 

Armitage

Banned
Feb 23, 2001
8,086
0
0
To find the IP iddress of your linux box, use ifconfig. It may not be in your default path, try /sbin/ifconfig. You'll see a block like this:

eth0 Link encap:Ethernet HWaddr 00:02:A5:82:E2:27
inet addr:192.168.17.20 Bcast:192.168.17.255 Mask:255.255.0.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:11501775 errors:0 dropped:0 overruns:0 frame:0
TX packets:7514435 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:84480236 (80.5 Mb) TX bytes:1203093619 (1147.3 Mb)
Interrupt:5 Base address:0xa000

The ip address is on the second line. If you get more then one block of data from this command, look for the block that starts with eth0, which corrosponds to your first network card.

If you're WinME box is making the internet connection, I would try sharing it from there as usual, and then pointing to its ip as the gateway address for the linux box. I haven't tried it though. You can share the other way also, but I've only done it with FreeSCO, which sets it up automagically.
 

AkumaBao

Golden Member
Aug 14, 2001
1,438
0
0
Ergeorge is right. It will work that is how I have mine setup. ( Although it's going through a router, but same concept ) What flavor of Linux? You can usually have it auto detected through "Setup" in RedHat.
 

wjsulliv

Senior member
May 29, 2001
970
0
0
Simply put, figure out the IP address and subnet of the Win machine and hard code that into the linux machine.

When you enable internet connection sharing in windows it usually sets the IP address of that computer to something static, like 192.169.0.1, on subnet 255.255.255.0.

Get the IP address of the win machine by right clicking on my network places, and then check the properties of the tcp/ip devices (usually associated with the network card, I'm using XP so I'm a little fuzzy on exactly which one) and look for the IP address and subnet.

Put those into your ifconfig, and then boot linux after the win machine is up and running. The linux machine should try and connect to the NIC/computer with that address.