LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Red Hat w/ Cable Modem, No Internet (https://www.linuxquestions.org/questions/linux-newbie-8/red-hat-w-cable-modem-no-internet-301167/)

ponyboynd32 03-13-2005 02:19 PM

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.

ralvez 03-13-2005 02:33 PM

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

ponyboynd32 03-13-2005 02:47 PM

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?

ralvez 03-13-2005 03:04 PM

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

jschiwal 03-13-2005 03:12 PM

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.

ponyboynd32 03-13-2005 03:15 PM

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.

ponyboynd32 03-13-2005 03:24 PM

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


All times are GMT -5. The time now is 10:04 AM.