LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   How can i made my 3Com Lan card @ ASUS P4C800 working? (https://www.linuxquestions.org/questions/linux-networking-3/how-can-i-made-my-3com-lan-card-%40-asus-p4c800-working-115431/)

exper 11-12-2003 09:24 PM

How can i made my 3Com Lan card @ ASUS P4C800 working?
 
I have just get an ASUS P4C800 Delux, it have a 3Com Gigabit Lan card
but i cant get it up automatic.
I just use it manually. :(

I use the following command to setup my Lan card
1) copy the driver to the /usr/src/linux-2.4 and uncompress it to 3c2000 folder.
2) use "make load" and " insmod 3c2000.o" to load the driver
3) use "ifconfig eth0 up" to bring the card to work
4) use "ifconfig eth0 192.168.1.2" to setup ip address.
now the lan card can working perfect
so I return to the graphic interface to config the network's other options
but when i get the networking setting, i have no network device found. :(
I use ping command to connect to other box to test my connection, i found it's OK.

so i reboot my box
after the OS start i us ifconfig to see my network status
but i couldn't find eth0
so i use #dmesg | grep eth0;
but no item i get.
so i use #insmod /usr/src/linux-2.4/3c2000/3c2000.o
now the driver have load
i use #dmesg to see what happen on my box
i found it add some message on my dmesg output like following:

divert: allocating divert_blk for eth0
3c2000: 3Com Gigabit NIC Driver Version A10
Copyright(c) 2003 3Com Corporation.
Copyright(c) 2003 Marvell
eth0: 3Com Gigabit LOM(3C940)
PrePort: A RlmtMode:Check Link State

I must use ifconfig to wakeup my NIC. and no netwrok device found on the graphic network setting.

I want to know what happen on my nic card
I want nic can work automatically after my box start ,not manually.
How can I add it on the start script to bring it up?


Thanks
Exper

CaptainInsane 11-13-2003 01:45 AM

I have a P4P800 I put RedHat 9 on tonight with the exact same
problem. Fails to detect the nic correctly at startup or restarts, but
have to manually load the driver and turn it on each time.

Any ideas ?

adz 11-13-2003 06:34 AM

You can load the driver automatically by adding it to the /etc/modules file. You just specify the module name without the path and without the ".o" extension. In future, to load /directory/module.o try the command modprobe module. Less typing.

With everything else you have to do, just put that in a script. Run the script manually to verify that it works (make sure to check permissions) and then get it to run at startup. Doing that is a little distro-specific. On debian you copy the script to /etc/init.d and then symlink it to any of the rcX.d directories depending on which runlevel you want it in. Red Hat does this a little differently and I'm not entirely sure how but a quick google search should yield results.

CaptainInsane 11-18-2003 01:34 AM

I got it to autoload with RedHat ok.
In addition to adding the line 'alias eth0 3c2000' to the /etc/modules.conf
file, I also had to copy the file to the following location:

/lib/modules/2.4.2.20/kernel/drivers/net

That did the trick !

adz 11-18-2003 08:47 AM

Cool.

CaptainInsane 11-18-2003 10:02 PM

That fixed the driver loading problem, but it seems the 3Com driver is
somewhat defective. Check out this thread:

http://www.linuxquestions.org/questi...ighlight=3C940

I downloaded and installed the driver mentioned in that thread, and
now have all network/internet junk loading working ok.


All times are GMT -5. The time now is 04:15 AM.