LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 08-30-2006, 08:35 PM   #1
dark*
Member
 
Registered: Jan 2006
Distribution: slackware 12.0
Posts: 42

Rep: Reputation: 15
ifconfig output : unknown device


I have usb-adsl router and rtl8139 nic. I have loaded successfully all the drivers reqd for both (CDCEther, uhci etc for router and 8139too for nic). I can see them in lsmod.
I have loaded router driver by edting /etc/rc.d/rc.modules
by adding a line
/sbin/modprobe CDCEther

I put 2 lines in /etc/modules.conf
alias eth0 8139too
alias eth1 CDCEther

when i do
ifconfig eth0 up
i get nic up working
but when i do
ifconfig eth1 up
:unknown device or interface

why am i not getting eth1 up

it looks like my modules.conf isnt working
i dont know anything about modprobe.conf, what is it used for??

I have fresh slackware 10.2 installed on intel p4
 
Old 08-31-2006, 12:33 AM   #2
xhi
Senior Member
 
Registered: Mar 2005
Location: USA::Pennsylvania
Distribution: Slackware
Posts: 1,065

Rep: Reputation: 45
>i dont know anything about modprobe.conf, what is it used for??
man modprobe.conf
 
Old 09-02-2006, 12:05 AM   #3
routers
Member
 
Registered: Aug 2005
Location: Malaysia - KULMY / CNXTH
Distribution: Slackware, Fedora, FreeBSD, Sun O/S 5.10, CentOS
Posts: 787
Blog Entries: 6

Rep: Reputation: 75
Mr. dark

show your output of

# dmesg | grep eth

this will list down what ethernet which is identified by system
 
Old 09-02-2006, 01:12 AM   #4
dark*
Member
 
Registered: Jan 2006
Distribution: slackware 12.0
Posts: 42

Original Poster
Rep: Reputation: 15
here is the output of dmesg | grep eth

eth0: RealTek RTL8139 at 0xe03bdc00, 00:15:f2:03:80:3f, IRQ 5
eth0: Identified 8139 chip type 'RTL-8100B/8139D'
eth0: link down

I donts understand, i have a line 'alias eth1 CDCEther' in /etc/modules.conf. Linux is just noticing my eth0 and not my eth1.
Why is that? What should be your /etc/rc.d/rc.inet1.conf if u want 2 network interfaces ??
 
Old 09-02-2006, 01:18 AM   #5
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
Is the module CDCether actually loaded?
If you're root on the command-line, and do a 'lsmod -r CDCether'
followed by 'lsmod CDCether' - what does dmesg look like afterwards?


Cheers,
Tink
 
Old 09-02-2006, 05:45 AM   #6
dark*
Member
 
Registered: Jan 2006
Distribution: slackware 12.0
Posts: 42

Original Poster
Rep: Reputation: 15
yes i can see the module in lsmod. here is my output of lsmod
Module Size Used by Not tainted
ide-scsi 9392 0
8139too 13928 1
mii 2272 0 [8139too]
crc32 2880 0 [8139too]
CDCEther 11228 0 (unused)
usb-uhci 21936 0 (unused)
usbcore 59148 0 [CDCEther usb-uhci]
agpgart 45508 0 (unused)
apm 9452 1


here is output of dmesg | grep CDCEther
CDCEther.c: CDCEther.c: 0.98.6 7 Jan 2002 Brad Hards and another
usb.c: registered new driver CDCEther

it appears to me that there is no problem in loading the module. The problem appears to be in alias eth1 CDCEther thing. Thats why i doubt whether /etc/modules.conf gets executed or not?
 
Old 09-02-2006, 06:52 AM   #7
tobyl
Member
 
Registered: Apr 2003
Location: uk
Distribution: slackware current
Posts: 768

Rep: Reputation: 64
I think /etc/modules.conf is provided for compatibility with 2.4 series kernels
for 2.6 series kernels, you want /etc/modprobe.conf

but you did not yet mention which kernel you have

tobyl
 
Old 09-02-2006, 12:49 PM   #8
dark*
Member
 
Registered: Jan 2006
Distribution: slackware 12.0
Posts: 42

Original Poster
Rep: Reputation: 15
sorry for that, i use the kernel that came with slack 10.2 (sata.i) linux 2.4
 
Old 09-02-2006, 05:56 PM   #9
tobyl
Member
 
Registered: Apr 2003
Location: uk
Distribution: slackware current
Posts: 768

Rep: Reputation: 64
could you please say what is the type and version of your usb router?
I do not have one of these, so I am just trying to be helpful...

for /etc/rc.d/rc.inet1.conf

I assume the router will give you an ip address via dhcp, so you could try for eth1

# Config information for eth1:
IPADDR[1]=""
NETMASK[1]=""
USE_DHCP[1]="yes"
DHCP_HOSTNAME[1]=""

the router will supply the missing values.

Can you check if you havn't already that your kernel has
USB Communication Class Ethernet device support

(I think it is this one,
# CONFIG_USB_ETH is not set
only yours would be
CONFIG_USB_ETH=y)

If I recall, you can check in .config in /boot (as it is a clean new 10.2) to see what you have

your /etc/modules.conf seems correct

tobyl

Last edited by tobyl; 09-02-2006 at 05:57 PM.
 
Old 09-02-2006, 10:09 PM   #10
dark*
Member
 
Registered: Jan 2006
Distribution: slackware 12.0
Posts: 42

Original Poster
Rep: Reputation: 15
i dont use dhcp, i have a broadband (adsl) connection which i get through the usb router (using rp-pppoe). I have not changed anything yet ( no kernel recompile etc) so its a fresh kernel. still i will check /boot/.config for that flag.

thanks
 
Old 09-03-2006, 04:36 AM   #11
dark*
Member
 
Registered: Jan 2006
Distribution: slackware 12.0
Posts: 42

Original Poster
Rep: Reputation: 15
i looked in /boot/config-ide-2.4 (this file came with my slack install)but there was no such thing as CONFIG_USB_ETH
rather i found CONFIG_USB_CDCETHER=m
so, what do u think?
 
Old 09-03-2006, 05:06 AM   #12
tobyl
Member
 
Registered: Apr 2003
Location: uk
Distribution: slackware current
Posts: 768

Rep: Reputation: 64
yes I knew you had
CONFIG_USB_CDCETHER=m
as you loaded the module ok

hmmm, I better be careful, there are many differences between my 2.6 kernel and your 2.4 around the usb arena.

the reason i asked is because of kernel requirements section on this page:

http://ldp.rtin.bz/HOWTO/Motorola-Su...Modem/usb.html.

I use pppoA and dhcp so I need to do some reading to understand your setup. Hopefully a pppoE user will jump in here and help out!

In the meantime, could you post the ouput of
dmesg | grep usb
and
ifconfig -a


oh, and please give some info regarding your usb router/modem manufacturer
thanks
tobyl

Last edited by tobyl; 09-03-2006 at 05:09 AM.
 
Old 09-03-2006, 05:27 AM   #13
w3bd3vil
Senior Member
 
Registered: Jun 2006
Location: Hyderabad, India
Distribution: Fedora
Posts: 1,191

Rep: Reputation: 49
My guess...bsnl connection....
anyhow, could you explain your setup here.
cause I use pppoe too but with a ehternet modem and not a usb modem/router.
 
Old 09-03-2006, 01:51 PM   #14
dark*
Member
 
Registered: Jan 2006
Distribution: slackware 12.0
Posts: 42

Original Poster
Rep: Reputation: 15
@w3bd3vil
Thats right, i use bsnl connection. its very easy to do it with ethernet using nic but i have a pc connected to that nic. hence i have to go for usb. Actualy i have done this before but this time , i am not getting the problem.

@tobyl
the router is from some chinese/taiwanese company Huawei or something like that. But they have given drivers for linux on a cd (its nothing but the CDCEther driver which we get from a normal install)
 
Old 09-03-2006, 05:05 PM   #15
tobyl
Member
 
Registered: Apr 2003
Location: uk
Distribution: slackware current
Posts: 768

Rep: Reputation: 64
I dont know what options are available on your router, but why cant you connect to it wth ethernet as you say it is easy. Your other pc could be networked through the router.
I googled for another option but could only find people with the same problem as you have.
Sorry I could not be more help.

tobyl
 
  


Reply

Tags
networking


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
display ifconfig output in php ?? ALInux Programming 1 10-29-2005 04:23 PM
eth0 unknown device. bruse Linux - Networking 1 08-30-2005 09:22 AM
Unknown Device?! muppski Linux - Hardware 2 06-03-2005 03:10 AM
ifconfig output alaios Linux - Networking 8 12-02-2004 02:40 AM
unknown device speedyhot Linux - General 1 03-05-2004 01:39 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

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