nedd to configure ethernet card on linux to connect to the net
Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
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.
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.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
nedd to configure ethernet card on linux to connect to the net
I recently got a cable internet connection , and am using realtek RTL8139 ethernet card to connect to the internet.
I need to configure the same so that i can access the net from linux.
I got the drivers for linux with the card, it contains three files :
1) guide.txt
2) Rtl8139.c
3) Rtl8139.o
I have given the contents of bothe the .c file and the guide.txt
Though, the guide.txt is given i was unable to do much as i am a complete newbie to it, i would be great if some on could explain what to do clearly
The contents of guide.txt is:
Quote:
The procedure to activate rtl8139 on linux is as follows:
step 1: ftp the driver from ftp://cesdis.gsfc.nasa.gov/pub/linux/drivers/rtl8139.c
//The above link did't work for me.
// can get this from:
//http://www.scyld.com/network/rtl8139.html
step 2: compile:
The instruction for compiling the driver is include at the
end of the driver file. (run this instruction at
/usr/src/linux)
//This step is not in the c file please tell me how to do this step , i got stuck in this step itself.
step 3: insert the driver as module:
insmod rtl8139.o
parameter can be added by adding options=..... behind the istrruction
ex::
full duplex::(bit 4 of 'options')
'insmod rtl8139.o options=16'
(run 'lsmod' to see if the module is inserted)
step 4: bind your card to an IP address
/sbin/ifconfig eth0 ${IPADDR} broadcast ${BROADCAST} netmask ${NETMASK}
(run 'netstat -i' to see if there is a interface 'ne0')
step 5: add your card to IP routing table, then add gateway also
your card:
/sbin/route add -net ${NETWORK} netmask ${NETMASK} eth0
(should be able to ping local network now)
gateway:
/sbin/route add default gw ${GATEWAY} netmask 0.0.0.0 metric 1
step 6: start inet deamon.
/usr/sbin/inetd
(you are on the network now)
*make sure that your kernel is built with network, fast_ethernet and module
support. Otherwise, you have to rebuild your kernel.
(1:go to /usr/src/linux directory
2:run 'make menuconfig' or 'make config'
3:mark the options list above.
4:exit and rebuild your kernel.
make dep;make clean;make zImage
the file 'zImage' will be at /usr/src/linux/arch/i386/boot/zImage
5:modify /etc/lilo.conf.(this file specify where kernel image is)
6:run 'lilo' )
You cna run 'netconfig' which will do step 4,5,6 for you. This will create
'/etc/rc.d/inet1' and 'inet2' files. These two files will run at boot time.
Then just add a line at the beginning of 'inet1'.
'insmod /your driver'path/rtl8139.o'
i have the same card... i have no problem..
i install no drivers and it runs very well with all distributions.. such as knoppix, debian, mandrake, aurox, gnoppix, ....
you probably just do not have modular support enabled in your kernel and neither is rtl8139 driver installed.this card is probably the best supported ethernet card out there...i hav not had a problem with it on ne distro...infact i have even done ftp installs using this card.
as for a solution to your problem...you can either recompile your kernel with inbuilt support for the card or reinstall your distro....you could also try your distro's GUI setup utility to see if they help you.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.