LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-13-2005, 03:19 PM   #1
ponyboynd32
LQ Newbie
 
Registered: Feb 2005
Posts: 7

Rep: Reputation: 0
Red Hat w/ Cable Modem, No Internet


I have recently moved and went from a DSL internet connection to a Cable Modem connection through Charter. Previously, I had my linux machine running fine through my network using the DSL connection.

Since I have moved, I can no longer connect to the internet from the linux machine. I have 2 other Windows machines that can both connect to the internet fine. I have tried getting on the internet with the linux machine through the network (Linksys Router) and also by connection the cable modem right into the linux machine. I am running Red Hat 8.0. When on the network the linux machine can see and communicate with the windows machines fine, so I don't think it is a NIC card issue. Anyone know how to setup linux using a cable modem? Thanks.
 
Old 03-13-2005, 03:33 PM   #2
ralvez
Member
 
Registered: Oct 2003
Location: Canada
Distribution: ArchLinux && Slackware 10.1
Posts: 298

Rep: Reputation: 30
I run my home network on a Cable connection.
To see what is going on I would do the following:
1. issue the command route or (/sbin/route). Optionally you can run /sbin/ip route.
2. Make sure that the default route corresponds to the address of your router.
3. If they are not the same issue this command:
route add default gw your.router.ip.address. eth0

Hope this helps.

Rick

Last edited by ralvez; 03-13-2005 at 03:36 PM.
 
Old 03-13-2005, 03:47 PM   #3
ponyboynd32
LQ Newbie
 
Registered: Feb 2005
Posts: 7

Original Poster
Rep: Reputation: 0
When I run /sbin/route I get the following output:

Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.1.1 * 255.255.255.0 U 0 0 0 eth0
default 192.168.1.1 0.0.0.0 UG 0 0 0 eth0

and also a localhost line which I assume is the loopback. It appears as though the default route is pointing at my router ip address already as the ip address of my router is 192.168.1.1
Any other ideas?
 
Old 03-13-2005, 04:04 PM   #4
ralvez
Member
 
Registered: Oct 2003
Location: Canada
Distribution: ArchLinux && Slackware 10.1
Posts: 298

Rep: Reputation: 30
OK. Now we know that your computer is pointing to the correct router so, try this:
type ping 66.94.234.13 ( is yahoo.com) if you get a response then try ping yahoo.
If the first works but not the second you have a DNS problem. make sure that the file /etc/resolv.conf is pointing to the DNS servers of your current provider.

Rick
 
Old 03-13-2005, 04:12 PM   #5
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 670Reputation: 670Reputation: 670Reputation: 670Reputation: 670Reputation: 670
Are you using a DHCP client, or are you using a static address when connected to the linksys router? You should set up the connection as a normal LAN connection.

The linksys router probably has a web based interface. Point your browser to 192.268.1.1 . By defaullt the 'username' is blank and the password is 'admin'. The status page will show you the WAN ip address of the router, and the DNS addresses. There is a 'DHCP Clients' button you can push to get a table of the local LAN clients and their DHCP assigned addresses.

If you are using a static address, make sure that you pick on below the starting DHCP range. ( Below 192,168.1.100 )
Also, copy the DNS information from the status page. With DHCP this information, as well as the gateway address is provided to your computer.

If you change the equipment connected to the cable modem, you will need to register the equipment's MAC address. This is normally done by pointing your browser to the home-page of your ISP.

You might want to provide the output of 'ifconfig'. If you can connect to one of your windows machines from linux, or if you can view the Linksys setup page, then your NIC card is probably set up. Otherwise provide the output of 'lsmod'.

Also, make sure that you don't have a different device on your local network that uses you DHCP assigned IP address.
 
Old 03-13-2005, 04:15 PM   #6
ponyboynd32
LQ Newbie
 
Registered: Feb 2005
Posts: 7

Original Poster
Rep: Reputation: 0
It appears this is the case. I get a response when pinging the ip address but nothing when pinging yahoo.com. Currently the /etc/resolv.conf file has:

search localdomain
nameserver 192.168.1.1

So the DNS servers of my provider should be in this file? How would I go about finding them? Thanks.
 
Old 03-13-2005, 04:24 PM   #7
ponyboynd32
LQ Newbie
 
Registered: Feb 2005
Posts: 7

Original Poster
Rep: Reputation: 0
I typed ipconfig /all on the windows machine and used the dns servers from that. It works now! Thanks a lot for everyones help.
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
AOL's USB cable modem not working with red hat linux webdjoe Linux - Hardware 9 07-25-2004 04:17 PM
Cable Internet on Red Hat 9 PionexUser Linux - Networking 2 02-25-2004 09:23 AM
How do i use cable internet on Red Hat 9? twisted_mind Linux - Newbie 13 12-10-2003 09:52 AM
Can't get on to Internet (Cable Modem) with Red Hat 8 jmcts Linux - Newbie 3 12-08-2003 09:50 PM
need help with set up:road runner cable modem -> router -> windowsxp and red hat 9.0 jlatzer Linux - Networking 0 07-01-2003 01:36 AM


All times are GMT -5. The time now is 10:33 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration