Debian This forum is for the discussion of Debian Linux.
|
| 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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
05-26-2004, 02:12 PM
|
#1
|
|
LQ Newbie
Registered: May 2004
Location: Portland, OR
Distribution: debian 'woody'
Posts: 23
Rep:
|
Automatic Interface Configuration
Here's the problem. New woody install, upgraded to 2.4.26. Everything works fine, except I have to run ifconfig eth0 [ip address][netmask address] up followed by route add default gw [address] before I can get out onto my LAN and out onto the internet.
I want the NIC's drivers to load automatically, and not have to run those commands on every reboot.
/etc/modules has an entry for my driver (tulip), but supposedly the bf2.4 kernel natively supports RTL8139 network cards.
/etc/network/interfaces has an entry for auto eth0.
Anybody got any suggestions on how to get this card to be recognized and configured automatically at boot?
|
|
|
|
05-26-2004, 02:52 PM
|
#2
|
|
LQ Newbie
Registered: May 2004
Location: Hamburg- Germany
Distribution: Debian GNU/Linux
Posts: 4
Rep:
|
in /etc/network/interfaces
should be something like :
auto lo eth0
iface eth0 inet static
address 192.168.1.1
netmask 255.255.255.0
gateway 192.168.1.3
man interfaces could help ;-)
HTH
|
|
|
|
05-26-2004, 02:54 PM
|
#3
|
|
Senior Member
Registered: Jan 2003
Location: Devon, UK
Distribution: Debian Etc/kernel 2.6.18-4K7
Posts: 2,380
Rep:
|
Do modconf from a consol, go down to network card drivers, install the relevant driver. Edit /etc/network/interfaces with the addresses and then do /etc/init.d/networking start. Because you changed kernels and therefore have new modules the driver is not loading.
|
|
|
|
05-26-2004, 06:44 PM
|
#4
|
|
LQ Newbie
Registered: May 2004
Location: Portland, OR
Distribution: debian 'woody'
Posts: 23
Original Poster
Rep:
|
That was very good information, but unfortunately it didn't work. When I went into modconf it does not list the driver module there. The driver gets loaded with ifconfig because the tulip driver is natively compiled into the bf2.4 kernel.
/etc/network/interfaces looks like this:
# /etc/network/interfaces -- configuration file for ifup(8), ifdown(8)
# The loopback interface
auto lo
iface lo inet loopback
# The first network card - this entry was created during the Debian installation
auto eth0
iface eth0 inet dhcp
address 192.168.1.3
netmask 255.0.0.0
gateway 192.168.1.1
But I think you are on the right track to solving my problem, and I suspect it is on account of the new kernel. Any more suggestions that you or anyone else may have are most welcome
|
|
|
|
05-27-2004, 01:23 AM
|
#5
|
|
Senior Member
Registered: Jan 2003
Location: Devon, UK
Distribution: Debian Etc/kernel 2.6.18-4K7
Posts: 2,380
Rep:
|
A couple of comments;
Have a look at you /var/log/syslog and find out what is happening with the netcard.
You are using dhcp and addresses should not be necessary in /etc/network/interfaces
Your netmask does not look right. I think it should be 255.255.255.0
|
|
|
|
05-27-2004, 12:32 PM
|
#6
|
|
LQ Newbie
Registered: May 2004
Location: Portland, OR
Distribution: debian 'woody'
Posts: 23
Original Poster
Rep:
|
You were right in your first post. I went down into /usr/src/[kernel source]/drivers/net/tulip and found tulip.o, which I then copied to /lib/modules/2.4.26/kernel/drivers/net. Then ran modconf again and got the error message that it "couldn't find the kernel version the module was compiled for," and "INstallation failed. Depmod: *** Unresolved symbols in /lib/modules/2.4.26/kernel/net/tulip.o"
So, for whatever reason, it doesn't like that tulip.o, even though it originated and was compiled totally within the installation and upgrade.
My suspicion is that I missed a necessary patch (2.4.18 maybe?). Or is it something else?
|
|
|
|
05-27-2004, 02:40 PM
|
#7
|
|
Senior Member
Registered: Jan 2003
Location: Devon, UK
Distribution: Debian Etc/kernel 2.6.18-4K7
Posts: 2,380
Rep:
|
Unresolved symbol means that it has detected that the tulip driver is from another kernel version. If you compiled the kernel then you'll have to repeat the compile and either include it in the kernel or tag it as a module.
|
|
|
|
05-27-2004, 03:35 PM
|
#8
|
|
LQ Newbie
Registered: May 2004
Location: Portland, OR
Distribution: debian 'woody'
Posts: 23
Original Poster
Rep:
|
Okay. I will recompile. See if that helps. But let me ask, if the tulip.o module isn't being loaded, and that's the driver for my NIC, why does the NIC operate if I run ifconfig and route add? The fact that it does operate suggests that the driver is already compiled into the kernel doesn't it?
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 06:57 PM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|