LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Cable Modem Question (https://www.linuxquestions.org/questions/linux-newbie-8/cable-modem-question-45410/)

Deschain 02-14-2003 03:11 PM

Cable Modem Question
 
I've just recently installed(Yesterday) Mandrake 9.0 on my system and am trying to figure out how to get my cable modem to work. It's a Toshiba PCX1100 cable modem that is connected to my computer using a SMC USB Ethernet card. After various amounts of fiddling with the networking controls, I finally got the system to work with the Ethernet card. I still do not have a connection however. I use Roadrunner Cable and I do have the various numbers that I believe I need (DNS, Subnet Mask, Gateway, DHCP server, DHCP host). Any help is highly appreciated.

rodeoclown 02-14-2003 03:15 PM

You might want to take a look at this post. http://www.linuxquestions.org/questi...threadid=45409

Also what is your output of ifconfig eth0 ? Can you ping IP numbers or names ? It could be your DNS servers that aren't specified in /etc/resolv.conf

Might be of some help.

Deschain 02-14-2003 03:38 PM

Umm....I'm not exactly sure what you mean by that...I am completely new to linux and thus not really sure on how to most things. Is "ifconfig eth0" a command? I'm not exactly sure about how to ping numbers at the moment either...

rodeoclown 02-14-2003 03:47 PM

Yeah a at a command prompt or terminal just type as root:

ifconfig eth0

And to ping type:

ping {IP address or domain name}

ctrl-c to stop pinging.

Deschain 02-14-2003 04:12 PM

Well I did the ifconfig and almost everything that came up had a 0 associated with it. Mandrake Control Center now shows that my eth0 connection is down though. I'm getting so frustrated with this. Doesn't help that I have to shut down and boot into windows in order to get back online.

rodeoclown 02-14-2003 04:16 PM

If it actually shows 0's for your eth0 device, that's a start, at least its recognizing your NIC.

At a command prompt as root try configuring your network by typing this:

netconfig

This is where you will tell it to specify to use DHCP and that is usually all.

If you do that ifconfig eth0 and it then still shows all 0's, try this as root:

ifconfig eth0 up

And are you behind a router or directly connected to the cable modem by chance ? Also be sure to add your DNS entries to /etc/resolv.conf

Texicle 02-14-2003 04:17 PM

How did you set it up--GUI or command line? You need to make sure you've got the proper drivers for your NIC set up. If you're unsure, do a search at www.google.com/linux (G4L) for your card's drivers/modules. After you find the correct one for your card, go into a terminal and su - to root. Then:

modprobe <drivername>

This should install the correct driver module for your card. Since you're already in a terminal and you're root, you might as well run the network configuration utility by typing:

netconfig

Follow the prompts, and answer the questions. Make sure you've got your primary and secondary DNS IPs, your domain name (DNS name), your DHCP Server name (if required) and your DHCP Server IP address (if required). After it's all said and done, reset your cable modem by unplugging the power cord for a few seconds then plug it back in. You should be able to reboot and your dhcp daemon should kick in and get you an IP from your ISP. You're connected at this point and can surf. Hope this helps. :)

Deschain 02-14-2003 04:32 PM

I have the driver for the card, kinda unsure about how to add it though. The instructions make little since to me.

This is the readme that came with the drivers.
Quote:

USBKR-100 on linux is as follows:

step 1: compile:
gcc -DMODULE -D__KERNEL__ -c rtl8150.c -I/usr/src/linux-2.4.0/include/
*linux-2.4.0 will change according to the kernel version

step 2: insert the driver as module:
insmod rtl8150.o
(run 'lsmod' to see if the module is inserted)

step 3: bind your card to an IP address:

/sbin/ifconfig eth0 ${IPADDR} netmask ${NETMASK} broadcast ${BROADCAST}
(run 'netstat -i' to see if there is a interface 'eth0')

step 4: add your card to IP routing table and add gateway:
/sbin/route add default gw ${GATEWAY} dev eth0


*make sure that your kernel is version 2.4.0 or next version.
Otherwise, you have to upgrade your kernel.
(http://www.kernel.org/pub/linux/kernel/v2.4)


Also, I'm running in the GUI. I'm also directly connected to the modem, no router.

One more thing, is the host name the name for my machine?

And now it's back to linux.....


EDIT: Netconfig isn't working. I get an error saying it could not run the command. I have seen a program called netconf. Is it the same?

Texicle 02-14-2003 04:55 PM

Quote:

Originally posted by Deschain
I have the driver for the card, kinda unsure about how to add it though. The instructions make little since to me.

This is the readme that came with the drivers.

Also, I'm running in the GUI. I'm also directly connected to the modem, no router.

One more thing, is the host name the name for my machine?

And now it's back to linux.....

Okay, you know the name of your driver: rtl8150.o
This is most likely already on you system as it's a fairly common driver (from what I have seen in the past). If you're in the GUI, you need to open up a terminal so you can get to a command line. You also need to su - to root, so when you open your terminal, type:

su -

It will prompt you for a password, so enter your root password (you won't see anything as you type it in). Now, you can just type in:

modprobe rtl8150.o

To see if it worked, type lsmod. If you see it in your list, then you're good. Now, type in netconfig and follow the steps like I mentioned before.

However, if rtl8150.o is NOT on your system already, you will need to follow the instructions of the README. You need to substitute the part about "linux-2.4.0" with the correct kernel of your system. If I'm not mistaken, you can change the Step 1 portion to:

gcc -DMODULE -D__KERNEL__ -c rtl8150.c -I/usr/src/`uname -r`/include/

to use the correct kernel if you don't know for sure what it is. If I am wrong, someone please correct me. Hope this helps.

Oh yeah, the hostname thing...It depends on what you're talking about. The hostname could be your ISP's DNS or it could be what you want to call your computer. If you run "netconfig", it will ask you for a host name for your machine. Call it whatever you want. Mine's frankenstein because it's a pc I built from various spare parts. :cool:

EDIT: Just read your edit. Were you trying as root? If not, follow the su - instructions above. If so, try doing

/sbin/netconfig

because it may not be in your path. HTH. :D

Deschain 02-14-2003 04:58 PM

I can't seem to be able to use netconfig. I got an error message telling me that it could not run the command. There's a program in my configuration group called netconf...is that the same?

Deschain 02-14-2003 05:49 PM

Ok, I did lsmod and found the driver. I then tried netconfig again and it told me command not found. So I then tried /sbin/netconfig and that didn't work either, said that it could not find the file. Any more suggestions?

Texicle 02-15-2003 02:42 AM

Quote:

Originally posted by Deschain
Ok, I did lsmod and found the driver. I then tried netconfig again and it told me command not found. So I then tried /sbin/netconfig and that didn't work either, said that it could not find the file. Any more suggestions?
Did you do netconfig or /sbin/netconfig as root user or as regular user?

Deschain 02-15-2003 10:11 AM

I did them both as root.

Deschain 02-16-2003 01:54 PM

I'd still like some help....


All times are GMT -5. The time now is 05:56 AM.