Linux - NewbieThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
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
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?
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.