Results 1 to 10 of 12
|
|
Enjoy an ad free experience by logging in. Not a member yet? Register.
|
|
-
10-22-2005 #1Just Joined!
- Join Date
- Apr 2005
- Posts
- 6
windows sharing Internet connection with Linux
I have 2 computers, one running Windows XP Pro and the other running Ubuntu 5.04 Hoary Hedgehog, and i need to share the internet connection of the Windows box to the Ubuntu box.
In the Windows box i have an onboard networking card, listed in the Device Manager as 'Realtek RTL8139/810x Family Fast Ehernet NIC', IP 192.168.0.1 and subnet mask 255.255.255.0, and on the Ubuntu box i have a SMC SMC1233A-TX EZ Card Fast Ethernet 10/100Mbps.
The network card CD contains instructions to install the card drivers in Linux, witch involves the addition of a module named 'tulip', but running lsmod showed me that this module was already loaded, so i supposed Ubuntu natively supports this card.
The problem is that the Windows LAN reports that a network cable is unplugged. Is this normal in a Windows-Linux connection, or this is some configuration problem?
Ignoring this error, i gave Ubuntu an IP 192.168.0.25, with subnet mask 255.255.255.0 and configured the default gateway to 192.168.0.1, with no results (executing ping 168.192.0.1 returns: From 168.192.0.25 icmp_seq=xx Destination Host Unreachable).
Can anyone help me?
Thanks in advance!!!
-
10-22-2005 #2
are you connecting directly to the windows box without a switch or router in the way? i.e. is your network look like:
Windows <---- cable ---> Linux
or
Windows <--- cable ---> switch/router <--- cable---> linux
If it is the first one, you will need a special kind of network cable called a "crossover cable" for it to work. The Cable unplugged message in windows seems to show that this might be the problem.Life is complex, it has a real part and an imaginary part.
-
10-22-2005 #3Just Joined!
- Join Date
- Apr 2005
- Posts
- 6
I'm connecting the 2 computers by a network cable supplied by the SMC Card bundle, witch is a CAT 5 cable. I don't know what that means, but i think it's a crossover cable. The 2 computers are connected directly!
I will test with another cable, witch is definitely a crossover one, and post the results.
Thanks a lot, AlexK
-
10-22-2005 #4Just Joined!
- Join Date
- Apr 2005
- Posts
- 6
Ok the problem was the cable. Now i can connect my Ubuntu box to Windows, but i still don't have Internet access.
My windows connection has an IP 192.168.0.1, netmask 255.255.255.0, so i configured Ubuntu to have an IP 192.168.0.25, same netmask.
My internet service has 2 connections, one with the IP configured by the ISP, and the other is a LAN with IP 169.254.123.67, netmask 255.255.0.0.
I have Windows ICS configured to share the internet service LAN with the LAN of the Realtek network card, but when i ping a website in linux i get: Destination host unreachable.
Any suggestions?
-
10-22-2005 #5Just Joined!
- Join Date
- Apr 2005
- Posts
- 6
Got it!!! Netmask in Linux was not properly configured. But i can't access sites by their domain, just by their IP! Is this a DNS problem?
Thanks in advance
-
10-22-2005 #6
yep it is a dns problem .... place the ip of your favorite nameserver in '/etc/resolv.conf' like this
Code:nameserver xxx.xxx.xxx.xxx
~Mike ~~~ Forum Rules
Testing? What's that? If it compiles, it is good, if it boots up, it is perfect. ~ Linus Torvalds
http://loft306.org
-
10-23-2005 #7Just Joined!
- Join Date
- Apr 2005
- Posts
- 6
Ok i solved the DNS problem. Windows ICS appears to act as a DHCP server, and i was giving Ubuntu an IP statically. I just configured Ubuntu to get the IP via a DHCP server and it worked...
Thanks a lot......
-
10-27-2006 #8Just Joined!
- Join Date
- Oct 2006
- Posts
- 2
Fabien: i have a problem with sharing my internet connection with windows pc i have read your post tha you was have same problem.I have a Linux pc with two network cards and windows with one network card i have a switch too.Can you explain me i`m some kind of newbie on linux connection sharing.Im connection to internet via linux pc on pppoe internet connection and i have Kubuntu 6.06 and Mandriva 2006.
Thanks a lot
-
12-04-2006 #9Just Joined!
- Join Date
- Dec 2005
- Location
- Sudbury, ON
- Posts
- 2
Question ..
i have a quick question ..
currently, have two computers running windows xp pro (sp2)
#1 computer ... (directly connected to a cable modem)
#2 computer ... (uses a cross-over cable and internet sharing in windows xp)
-------------
what i want to know is, i want to switch the computer's (#1) O/S to Linux .. and still have the cable modem directly connected to the cable modem. and then using the crossover allow the windows xp machine access to the internet.
is it possible ..
-
12-04-2006 #10Linux Newbie
- Join Date
- Aug 2006
- Posts
- 107
yes
(space)


Reply With Quote