LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
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
  Search this Thread
Old 09-24-2003, 06:13 PM   #1
enigma Z
Member
 
Registered: Sep 2003
Location: The edge of the world, peering down into the dark abyss
Distribution: Gentoo 2004.2
Posts: 224

Rep: Reputation: 30
Cable Internet through LAN


Hey, I can't connect to cable internet though linux!!

I've skipped configuring it because some people were helping me before, but they must have either given up, forgotten, or didn't know what there was to fix. So now, I can start with a clean slate.

So, how do I configure Internet access?? Starting from where you identify the ethernet card, to where you connect to the internet??



VITAL INFO:

DISTROBUTION: Mandrake 9.0
ETHERNET CARD: Olicom OC2325
 
Old 09-24-2003, 08:10 PM   #2
Looking_Lost
Senior Member
 
Registered: Apr 2003
Location: Eire
Distribution: Slackware 12.0, OpenSuse 10.3
Posts: 1,120

Rep: Reputation: 45
Well, it really should be very easy (in theory)

If the pc is connected directly to the cable modem via an ethernet card all you should have to do is tell the ethernet card to get an Ip address via dhcp.

That's assuming of course your ethernet card is working, ( or is that the stumbling block )
 
Old 09-24-2003, 08:39 PM   #3
enigma Z
Member
 
Registered: Sep 2003
Location: The edge of the world, peering down into the dark abyss
Distribution: Gentoo 2004.2
Posts: 224

Original Poster
Rep: Reputation: 30
Well, I have an eth0 interface, and linux recognizes it. When I set up my internet, i tell it my hostname (which is ****.wowway.com) and I set it up to use DHCP. It has a netmask automatically, and I leave that alone.

I'm connected to the internet through a network hub if that makes a difference.

Wait a minute... the hostname refers to the computer that I am on, and not the WOW computer that I connect to to get internet, right??
 
Old 09-24-2003, 08:44 PM   #4
Looking_Lost
Senior Member
 
Registered: Apr 2003
Location: Eire
Distribution: Slackware 12.0, OpenSuse 10.3
Posts: 1,120

Rep: Reputation: 45
If you set a hostname it applies to the compuiter you set it on and no other, yeah and no other device/computer will know about that hostname unless you tell them explicitly or setup dns (forget about that though)
 
Old 09-24-2003, 09:31 PM   #5
enigma Z
Member
 
Registered: Sep 2003
Location: The edge of the world, peering down into the dark abyss
Distribution: Gentoo 2004.2
Posts: 224

Original Poster
Rep: Reputation: 30
OK, so what is the program that I run to do that (I'm on Slackware 9.0 now)
 
Old 09-24-2003, 09:46 PM   #6
Looking_Lost
Senior Member
 
Registered: Apr 2003
Location: Eire
Distribution: Slackware 12.0, OpenSuse 10.3
Posts: 1,120

Rep: Reputation: 45
Do do what? If you're you're sure your card is good to go, or look in and uncomment the approrpiate entry in /etc/rc.d/rc.modules (reboot)

Slackware

/etc/rc.d/rc.inet1

USE_DHCP=yes

(the first one)

unless you updated everything then its in something like /etc/rc.d/rc.inet1.conf


Remember though if you are usng a hub only one computer at a time will access the internet unless you got more than one ip from your ISP or are usng NAT. Reboot your modem every time you change network card thats connected to it
 
Old 09-24-2003, 09:54 PM   #7
Looking_Lost
Senior Member
 
Registered: Apr 2003
Location: Eire
Distribution: Slackware 12.0, OpenSuse 10.3
Posts: 1,120

Rep: Reputation: 45
Based on the card you mentioned Olicom OC2325 and a quick search

in

/etc/rc.d/rc.modules

uncomment


/sbin/modprobe tlan

reboot
 
Old 09-24-2003, 10:11 PM   #8
enigma Z
Member
 
Registered: Sep 2003
Location: The edge of the world, peering down into the dark abyss
Distribution: Gentoo 2004.2
Posts: 224

Original Poster
Rep: Reputation: 30
K, so I uncomment /sbin/modprobe tlan in /etc/rc.d/rc.modules, and I add USE_DHCP=yes into /etc/rc.d/rc.inet1, right?

Also, should USE_DHCP=yes be before or after any particular entry in /etc/rc.d/rc.inet1 ?
 
Old 09-24-2003, 10:18 PM   #9
Looking_Lost
Senior Member
 
Registered: Apr 2003
Location: Eire
Distribution: Slackware 12.0, OpenSuse 10.3
Posts: 1,120

Rep: Reputation: 45
do

USE_DHCP=yes


The first time it appears in the file and that should be it
 
Old 09-24-2003, 11:02 PM   #10
pdescham
LQ Newbie
 
Registered: Sep 2003
Posts: 7

Rep: Reputation: 0
first of all

1: what is the ip address you are getting from the dhcp? is it a internal range (10.*.*.* or 192.168.*.*)??
2: can you ping your gateway? (do you have one setup) if you are running a router (network HUB) with NAT then typically your gateway is the ip of your router (typically 192.168.0.1) go into the management software of your router
3: can you ping any websites? (www.google.ca) add your DNS servers to resolve.conf "nameserver 232.232.232" <-- whatever it is.

i think you would have a better time taking the router off completely and directly connecting the linux box and see what your internet provider gives you for an IP gateway dns etc. then see if you can surf. if you can then look no further it's the router it's mis configured.


Last edited by pdescham; 09-24-2003 at 11:04 PM.
 
Old 09-25-2003, 09:32 AM   #11
enigma Z
Member
 
Registered: Sep 2003
Location: The edge of the world, peering down into the dark abyss
Distribution: Gentoo 2004.2
Posts: 224

Original Poster
Rep: Reputation: 30
Okay, I did whatcha said, Looking_lost, and I got this error:

Timed out wating for a valid DHCP response

Do I need to give it a hostname? if so... What is that?

I know that my ethernet card on eth0 is working, but I can't ping or get on the internet.

(BTW, pedscham: I can get on the internet through the router when I am on windows, just not on linux)

(BTW, Looking_Lost: Sorry about the confusion, I didn't realize that the commands were simply commented out)

Last edited by enigma Z; 09-25-2003 at 09:34 AM.
 
  


Reply



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



Similar Threads
Thread Thread Starter Forum Replies Last Post
No Internet but LAN and VPN connect LAN work fine??? xavior SUSE / openSUSE 7 11-09-2005 01:14 PM
Problem when configuring 2 NICs for internal LAN and cable internet mailavj Linux - Networking 24 04-07-2005 09:42 AM
lan instead of cable E.T.Me Mandriva 5 03-29-2005 02:25 AM
Nic card -> cable internet modem no internet connection zeshan_b Mandriva 21 09-26-2004 11:48 AM
Should I go this way? 2 Machine Lan (X-over cable) + usb modem internet? Mad Malc Debian 3 06-27-2004 05:57 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 11:04 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration