amit.choudhary forced the electrons to say:
> Hello PPL,
> 
> I have to setup a network card on my Linux machine without re-installing
> Linux.
> Is there a way to do it.

Well, reinstalling linux for this is just like trying to use a
sledgehammer to crack a nut - don't do it.

To setup a network card, just -

Shut down your PC and put the card in - securely.  Start your PC. If the
card is PCI and is supported, the kernel will detect it at boot time,
and will tell you which card it is in /proc/pci (or /proc/bus/pci/devices,
with newer kernels - but this file is very cryptic).  Load the appropriate
driver, and you are through. Drivers are loaded by the command

modprobe -t net <name of driver>

Put a line

alias eth0 <driver name>

in /etc/conf.modules.

For ne compatible ISA cards, you need to know two things - the I/O address
and the IRQ. IRQ can be gotten by noticing what CMOS has to say about
the card. My CMOS says, Network Controller, IRQ 11. Use this IRQ (you
can check if it clashes anywhere by looking in /proc/interrupts, but not
usually necessary, unless the IRQ is 3 or something, which are reserved).

To find the I/O address, I usually use the following little shell script:

#! /bin/sh

for i in 200 220 240 260 280 300 320 340; do
   modprobe -t net ne io=0x$i && break
done

And make a note of the I/O address where modprobe succeeds.  Then put
in /etc/conf.modules the line,

alias eth0 ne
options eth0 io=0x<your io address> irq=<your irq>

Configuring the interface is another story. More about that later.

Till then,

Bye

Binand

-- 
#include <stdio.h>                                   | Binand Raj S.
char *p = "#include <stdio.h>%cchar *p = %c%s%c;     | This is a self-
int main(){printf(p,10,34,p,34,10);return 0;}%c";    | printing program.
int main(){printf(p,10,34,p,34,10);return 0;}        | Try it!!



--------------------------------------------------------------------
The Linux India Mailing List Archives are now available.  Please search
the archive at http://lists.linux-india.org/ before posting your question
to avoid repetition and save bandwidth.

Reply via email to