The procedure to activate rtl8150 on linux is as follows:
step 1: compile:
gcc -DMODULE -D__KERNEL__ -c rtl8150.c -I%DIR%/include
note: %DIR% is the directory of the kernel source code which is accompanied with
the current kernel of your system. Normally it is located in /usr/src/linux.
step 2: insert the driver as module:
insmod rtl8150.o
(run 'lsmod' to see if the module is inserted)
step 3: bind your card to an IP address:
/sbin/ifconfig eth0 ${IPADDR} netmask ${NETMASK} broadcast ${BROADCAST}
(run 'netstat -i' to see if there is a interface 'eth0')
step 4: add your card to IP routing table and add gateway:
/sbin/route add default gw ${GATEWAY} dev eth0
*make sure that your kernel is version 2.4.0 above. Otherwise, you have to
upgrade your kernel.