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 |
>i dont know anything about modprobe.conf, what is it used for??
man modprobe.conf |
Mr. dark
show your output of # dmesg | grep eth this will list down what ethernet which is identified by system |
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 ?? |
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 |
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? |
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 |
sorry for that, i use the kernel that came with slack 10.2 (sata.i) linux 2.4
|
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 |
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 |
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? |
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 |
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. |
@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) |
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 |
All times are GMT -5. The time now is 11:02 AM. |