LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
LinkBack Search this Thread
Old 03-17-2004, 01:09 PM   #1
TribeX
LQ Newbie
 
Registered: Mar 2004
Distribution: Fedora Core 1 / Mandrake
Posts: 12

Rep: Reputation: 0
connecting to internet through linksys hub with Fedora Core 1


OK I have a computer downstairs with windows ME (parents computer)
and my computer upstairs that is running Fedora Core 1. I have been trying for 2 days to get the internet up and running on the upstairs computer. The way it has always been setup is that the windows computer shares the internet connection through a linksys 5 port hub. But after looking at the system closer this doesnt make sense to me because the wME computer only has 1 ethernet card and if I tell the ME computer it is sharing an internet connection from another computer it works fine even though there is no other computer in the network that has internet access. So I am assuming that the Hub must be working as a router. The last time I installed linux on my computer I installed either mandrake 8.2 or 9.0 and it automatically setup everything for me during installation. This didn't work this time when I installed Fedora or previously when i had tried installing mandrake 10.0 community or 8.2 again. I can't find the 9.0 disks either. But I have tried everything from manually setting up IP to using DHCP and everything I can think of my computer just will not connect although the ME one connects fine. The only thing I can think of is my ethernet card has gone bad. Anyone have any other suggestions?
 
Old 03-18-2004, 05:51 PM   #2
TribeX
LQ Newbie
 
Registered: Mar 2004
Distribution: Fedora Core 1 / Mandrake
Posts: 12

Original Poster
Rep: Reputation: 0
any ideas anyone? I still have no clue what else to try
 
Old 03-18-2004, 06:02 PM   #3
Peacedog
Guru
 
Registered: Sep 2003
Location: Danville, VA Approx. N 36°36.434' W 79°24.342' Accur. 100' or so.
Distribution: Slackware, Windows, FreeBSD, OpenBSD, Mac OS X
Posts: 5,209

Rep: Reputation: 155Reputation: 155
the hub is not working as a router. the windows machine is acting as a router through the configuration of ics. how does the windows machine connect to the net? what is the output of

ifconfig

from the fedora box?

providing that the windows machine is setup for ics, you should be able to assign a static ip address to both boxes, and point the fedora box default gateway to the ip address of the windows machine.

Last edited by Peacedog; 03-18-2004 at 06:03 PM.
 
Old 03-18-2004, 06:10 PM   #4
TribeX
LQ Newbie
 
Registered: Mar 2004
Distribution: Fedora Core 1 / Mandrake
Posts: 12

Original Poster
Rep: Reputation: 0
dont know about the ifconfig because im downstairs right now ill check it out in a bit.

I just thought that the windows machine needed to ethernet cards to work as a router. But if it is working as a router why would it be that it can access the net if i tell it it is sharing internet from another computer. As in it should be trying to access net that another computer is sharing.

I think i have to pay extra for static IP's though. Both computers have always just been able to access through DHCP that is why I was wondering if maybe it was the ethernet card in mine.

The cable modem is hooked directly to the hub though not to the windows computer.

Any further help would be appreciated.
and ill go up and get that ifconfig info in a couple minutes

also if I just hook my computer straight to the cable modem line that should tell me if it is the ethernet card shouldnt it if it still cant get an IP through DHCP? or do i need to install DHCP-client? would that help?
 
Old 03-18-2004, 06:33 PM   #5
Peacedog
Guru
 
Registered: Sep 2003
Location: Danville, VA Approx. N 36°36.434' W 79°24.342' Accur. 100' or so.
Distribution: Slackware, Windows, FreeBSD, OpenBSD, Mac OS X
Posts: 5,209

Rep: Reputation: 155Reputation: 155
[QUOTE]Originally posted by TribeX
dont know about the ifconfig because im downstairs right now ill check it out in a bit.

I just thought that the windows machine needed to ethernet cards to work as a router. But if it is working as a router why would it be that it can access the net if i tell it it is sharing internet from another computer. As in it should be trying to access net that another computer is sharing. [/QUOTE

you are correct, i was under the impression from the lack of info that you were on dialup and sharing the connection via windows.

Quote:
I think i have to pay extra for static IP's though. Both computers have always just been able to access through DHCP that is why I was wondering if maybe it was the ethernet card in mine.

The cable modem is hooked directly to the hub though not to the windows computer.
forget about the static ip's we are talking 2 different languages, when i say static ip, i am speaking of the nic itself, not the internet connection. you shouldn't need to do that since your connected via cable which is "always on".

Quote:
Any further help would be appreciated.
and ill go up and get that ifconfig info in a couple minutes
i'll try to help you through this, but, you've got alot of network reading ahead of you. i am going to try and point you in the right directions.

Quote:
also if I just hook my computer straight to the cable modem line that should tell me if it is the ethernet card shouldnt it if it still cant get an IP through DHCP? or do i need to install DHCP-client? would that help?
not necessarily, if your system is not setup properly, and, there could be a # of things not configured properly, you wouldn't be able to tell whether you had a bad nic or not. the ifconfig info will shed more light than anything.
 
Old 03-18-2004, 06:59 PM   #6
TribeX
LQ Newbie
 
Registered: Mar 2004
Distribution: Fedora Core 1 / Mandrake
Posts: 12

Original Poster
Rep: Reputation: 0
eth0 Link encap:Ethernet HWaddr 00:20:78:1B:0D:18
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:1777 errors:0 dropped:0 overruns:0 frame:0
TX packets:5 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:109722 (107.1 Kb) TX bytes:1710 (1.6 Kb)
Interrupt:11 Base address:0xc000

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:4501 errors:0 dropped:0 overruns:0 frame:0
TX packets:4501 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:3833158 (3.6 Mb) TX bytes:3833158 (3.6 Mb)
 
Old 03-19-2004, 06:40 AM   #7
Peacedog
Guru
 
Registered: Sep 2003
Location: Danville, VA Approx. N 36°36.434' W 79°24.342' Accur. 100' or so.
Distribution: Slackware, Windows, FreeBSD, OpenBSD, Mac OS X
Posts: 5,209

Rep: Reputation: 155Reputation: 155
have a look here

http://support.microsoft.com/default...icsHT.asp&FR=1

and here

http://wiki.linuxquestions.org/wiki/Networking_basics
 
Old 03-20-2004, 01:56 AM   #8
TribeX
LQ Newbie
 
Registered: Mar 2004
Distribution: Fedora Core 1 / Mandrake
Posts: 12

Original Poster
Rep: Reputation: 0
thanx for all the help im in linux now typing this I finally figured it out today. Not sure if its going to continue working after I turn on the downstairs computer though :S. Ill probably be back if i need more help. What I did is turned the other computer off and assigned this one its IP. I tried assigning this one a diff IP but it didnt work it was like xxx.xx.xx.56 and i tried .57 and it wouldnt connect so I had to set it back to .56 so im not sure what the other computer is going to do once it figures out this one is using it's IP
 
Old 03-20-2004, 08:38 AM   #9
charon79m
Member
 
Registered: Oct 2003
Distribution: Just about anything... so long as it is Debain based.
Posts: 297

Rep: Reputation: 30
The issue is that you are only permitted one IP address from your ISP. You can get around this by enabling Internet Connection Sharing (ICS) on the WinMe system (NOT RECOMMENDED) or getting a "broadband router."

What will happen is that you will have your cable modem connected to the WAN side of your router. The router should be able to get a DHCP address from the cable modem. It will then share that internet connection to the LAN which will have a private IP address scheme (192.168.x.x , 10.x.x.x, etc.)

Internet
|
|
Cable Modem
|
|
Broadband Router
|
|
Hub__________ Computer 2
|
|
Computer 1

The method you are using would work if you ISP allowed you to have multiple public IP addresses.

Side note... right now both of your machines probably have live public IP addresses. This is a HUGE security risk. Read up on IP Tables for your linux box and download ZoneAlarm for WinMe.

Cheers,

MrKnisely
 
Old 03-20-2004, 01:42 PM   #10
TribeX
LQ Newbie
 
Registered: Mar 2004
Distribution: Fedora Core 1 / Mandrake
Posts: 12

Original Poster
Rep: Reputation: 0
well my computers have been connected through the hub like this for about 2 years. So I'm pretty sure im allowed to have 2 ip's. Not positive though im not sure about how exactly the network was set up. Because it was setup for the win(ME) to share its internet connection but I don't think it ever actually did. Because It only has one NIC and the cable modem is directly connected to the hub. Both computers have always been able to use DHCP to connect to the net until about two weeks ago when teh upstairs one just magically stopped getting an internet connection.
 
Old 03-23-2004, 09:27 AM   #11
charon79m
Member
 
Registered: Oct 2003
Distribution: Just about anything... so long as it is Debain based.
Posts: 297

Rep: Reputation: 30
What probably happened before is this:

The WinMe system was setup to use ICS. It was "dual homing" it's NIC to have the public IP from your ISP and also to use 192.168.0.1 for the LAN connection. When you enable ICS on a Win box it also starts a DHCP server. Your box upstairs probalby just got a DHCP address from the WinME box and you routed your traffic through the 192.168.0.1 subinterface and then back out the ISP subinterface.

Why it's not working now, I'm not sure. We can try to make it work if you'd like. As I said before, I don't recommend this solution.

If you do want to try it, enable internet connection sharing on your WinME box and make sure you can still get to the internet. Next, go to your Linux box and try to run ifup eth0 . Check to make sure you got an ip address in the 192.168.0.x range. If you did, try to get to the internet. If it doesn't work, type route and verify that you have a line that says something like:

destination gateway genmask more stuff.......
192.168.0.0 255.255.255.0
127.0.0.0 255.0.0.0
default 192.168.0.1 0.0.0.0

If you do not have the last line type:
route add default gw 192.168.0.1

Now see if you can get to the internet. If not, try to ping 216.239.37.99 (one of google's IPs). Did that work? Try pinging google.com... any luck ther?

If you can Ping IP and not name then it's a DNS issue, and this will fix it:

echo nameserver 192.168.0.1 >>/etc/resolv.conf

If you can not ping a name nor an address then it's a routing issue with your WinMe box and we need to do more work there.

Again, I strongly suggest using some sort of a broadband router instead of the WinMe box, but we can make it work with what you have.

Cheers,

MrKnisely
 
Old 03-23-2004, 02:25 PM   #12
TribeX
LQ Newbie
 
Registered: Mar 2004
Distribution: Fedora Core 1 / Mandrake
Posts: 12

Original Poster
Rep: Reputation: 0
well one other reason i dont think it was using ICS is because I could connect while the ME computer was turned off. As far as I have ever read if the ME computer was sharing its connection i should only be able to connect while it is on. It just doesnt seem to be able to access the DHCP is there anywhere to input the DHCP server address that I get from winpicfg on the win ME computer.
 
Old 03-23-2004, 08:25 PM   #13
charon79m
Member
 
Registered: Oct 2003
Distribution: Just about anything... so long as it is Debain based.
Posts: 297

Rep: Reputation: 30
Sounds like perhaps your IPS has gone to filtering DHCP requests by MAC address. You might try spoofing the MAC address of your ME box's NIC on your Linux box to see if it will give you a second IP that way.

A quick search will give you the command, I can't recall it and I don't have a *nix machine here to look it up.
 
Old 03-23-2004, 10:01 PM   #14
TribeX
LQ Newbie
 
Registered: Mar 2004
Distribution: Fedora Core 1 / Mandrake
Posts: 12

Original Poster
Rep: Reputation: 0
my linux machine complained that that wasnt the right MAC for the card when i tried that
 
Old 03-25-2004, 09:26 AM   #15
RufusVS
LQ Newbie
 
Registered: Mar 2004
Location: East Lyme, CT
Posts: 3

Rep: Reputation: 0
Turn off internet connection sharing in your ME box. You said you connect fine when the ME box is not on. What is probably happening, is the ME box is serving you up an IP address instead of the router.

Internet connection sharing is to use the ME box as a router. One way to use it is have the ME box dial up to your ISP, while other computers network to the ME box through ethernet, say. But that's not what you want to do.


Rufus
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Connecting to Internet using Fedora Core 2.0 jthomas98 Linux - Networking 1 10-31-2005 11:50 AM
Fedora Core 2 Inspiron 1100 USB HUB musty Fedora 2 05-12-2005 06:02 AM
fedora core hub / no hub problem plu5even Linux - Networking 3 02-28-2005 02:30 PM
Problems connecting Fedora Core I to Internet jlowe799 Linux - Newbie 2 07-27-2004 10:47 PM
Unresolvable timeout errors when connecting to internet in Fedora Core 2 T2 Jeffmrg Linux - Wireless Networking 1 04-11-2004 08:42 PM


All times are GMT -5. The time now is 08:24 AM.

Main Menu
 
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration