LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
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 02-14-2003, 03:11 PM   #1
Deschain
LQ Newbie
 
Registered: Feb 2003
Location: Texas
Distribution: Mandrake 9.0
Posts: 8

Rep: Reputation: 0
Question 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.
 
Old 02-14-2003, 03:15 PM   #2
rodeoclown
Member
 
Registered: Feb 2003
Posts: 44

Rep: Reputation: 15
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.

Last edited by rodeoclown; 02-14-2003 at 03:21 PM.
 
Old 02-14-2003, 03:38 PM   #3
Deschain
LQ Newbie
 
Registered: Feb 2003
Location: Texas
Distribution: Mandrake 9.0
Posts: 8

Original Poster
Rep: Reputation: 0
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...
 
Old 02-14-2003, 03:47 PM   #4
rodeoclown
Member
 
Registered: Feb 2003
Posts: 44

Rep: Reputation: 15
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.

Last edited by rodeoclown; 02-14-2003 at 04:18 PM.
 
Old 02-14-2003, 04:12 PM   #5
Deschain
LQ Newbie
 
Registered: Feb 2003
Location: Texas
Distribution: Mandrake 9.0
Posts: 8

Original Poster
Rep: Reputation: 0
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.
 
Old 02-14-2003, 04:16 PM   #6
rodeoclown
Member
 
Registered: Feb 2003
Posts: 44

Rep: Reputation: 15
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
 
Old 02-14-2003, 04:17 PM   #7
Texicle
Member
 
Registered: Oct 2002
Location: Northern Ontario, Canada
Distribution: Slackware 10.0
Posts: 789

Rep: Reputation: 30
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.
 
Old 02-14-2003, 04:32 PM   #8
Deschain
LQ Newbie
 
Registered: Feb 2003
Location: Texas
Distribution: Mandrake 9.0
Posts: 8

Original Poster
Rep: Reputation: 0
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?

Last edited by Deschain; 02-14-2003 at 04:44 PM.
 
Old 02-14-2003, 04:55 PM   #9
Texicle
Member
 
Registered: Oct 2002
Location: Northern Ontario, Canada
Distribution: Slackware 10.0
Posts: 789

Rep: Reputation: 30
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.

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.

Last edited by Texicle; 02-14-2003 at 04:59 PM.
 
Old 02-14-2003, 04:58 PM   #10
Deschain
LQ Newbie
 
Registered: Feb 2003
Location: Texas
Distribution: Mandrake 9.0
Posts: 8

Original Poster
Rep: Reputation: 0
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?
 
Old 02-14-2003, 05:49 PM   #11
Deschain
LQ Newbie
 
Registered: Feb 2003
Location: Texas
Distribution: Mandrake 9.0
Posts: 8

Original Poster
Rep: Reputation: 0
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?
 
Old 02-15-2003, 02:42 AM   #12
Texicle
Member
 
Registered: Oct 2002
Location: Northern Ontario, Canada
Distribution: Slackware 10.0
Posts: 789

Rep: Reputation: 30
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?
 
Old 02-15-2003, 10:11 AM   #13
Deschain
LQ Newbie
 
Registered: Feb 2003
Location: Texas
Distribution: Mandrake 9.0
Posts: 8

Original Poster
Rep: Reputation: 0
I did them both as root.
 
Old 02-16-2003, 01:54 PM   #14
Deschain
LQ Newbie
 
Registered: Feb 2003
Location: Texas
Distribution: Mandrake 9.0
Posts: 8

Original Poster
Rep: Reputation: 0
I'd still like some help....
 
  


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
Null modem cable question msills Linux - Hardware 1 11-09-2005 06:15 PM
Question about null modem cable Luke727 Linux - Hardware 5 05-29-2004 07:05 PM
cable modem etillman Slackware 11 11-07-2003 01:58 PM
printer cable > modem cable? C++freak Linux - Hardware 1 06-21-2003 01:53 PM
cable modem dsflash Linux - Newbie 1 11-20-2001 12:58 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:42 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