LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 09-09-2003, 03:44 AM   #1
plm
Member
 
Registered: Sep 2003
Distribution: Slack 10!
Posts: 65

Rep: Reputation: 15
Realtek 8139 eth card help


i have a Realtek 8139 ethernet card. i can't get my network and internet working with it?! there is a module 8139too, which i load but nothing works! i uncommented the device in rc.modules, the module for it was loaded. as i wrote this is 8139too and also a module called mii is loaded and is used by 8139. can anyone help me please?! i have no idea what do i have to do to have internet and lan network on my slack 9.0
 
Old 09-09-2003, 04:02 AM   #2
Cerbere
Member
 
Registered: Dec 2002
Location: California
Distribution: Slackware & LFS
Posts: 799

Rep: Reputation: 33
Welcome to LQ.org! Since this is your first post, I'm going to be as polite as I can. Before you post a question, you should try using the search function here. There are two reasons for this:

1) You may be able to find the answer right away instead of waiting for someone to give you an answer. This benefits you directly.

2) The board doesn't get clogged with the same questions & answers being repeated over & over. This benefits all of us.

That being said, I don't think I can give you a solution to your problem, since I generally try to compile a monolithic kernel, and therefore I don't use modules. However if you search for keywords such as, 'realtek' '8139' and 'slack', I'm sure you'll find the answer, as this is probably one of the most commonly used nics.

Again, Welcome to the forum, plm. I hope all your linux problems can be solved simply by searching previous posts (it really is much easier that way), but if they don't then I'm sure everyone here will do all we can to give you a proper answer.

Enjoy!
--- Cerbere

[edit] And whatever you do, don't even think about ASKING how to get your mouse wheel working :-) [/edit]

Last edited by Cerbere; 09-09-2003 at 04:04 AM.
 
Old 09-09-2003, 04:41 AM   #3
plm
Member
 
Registered: Sep 2003
Distribution: Slack 10!
Posts: 65

Original Poster
Rep: Reputation: 15
thanks for the welcoming actially i did search after posting the thread, and found a few things, but still i am not sure taht they will help. i will try them and if they don't work i'll return to the forum for help then
 
Old 09-09-2003, 08:11 AM   #4
laxi
Member
 
Registered: Jun 2003
Distribution: Linux
Posts: 48

Rep: Reputation: 15
you can use the command "netconfig" to configure your ip and sth else in slack
 
Old 09-09-2003, 09:35 AM   #5
plm
Member
 
Registered: Sep 2003
Distribution: Slack 10!
Posts: 65

Original Poster
Rep: Reputation: 15
yes I know i've done that. nothing works?! i have no idea why. the module is loaded. ifconfig finds the device, but i don't have net?! i looked rc.inet1 and everything was okay, but no ethernet and internet... i saw in some previous posts regarding this same matter, and i tried doing some things but nothing is happening. i added
alias eth0 8139too
ifconfig

but nothing happened, i still have no net
 
Old 09-09-2003, 09:48 AM   #6
linuxJaver
Member
 
Registered: Jul 2003
Location: Jakartax, ID
Distribution: slack9.1+,9.1,rh9
Posts: 203

Rep: Reputation: 30
Wut is ur connection (cable/dsl) ? post in here ur /etc/rc.d/rc.inet1, make sure those file in /etc/rc.d have the permission rwxr_xr_x, if u want them to be run by init during the boot phase, if rc.inet1 is configured correct, it is actually only the matter of calling the /sbin/dhcpcd .. (look into rc.inet1).

U need to manually call "./etc/rc.d/rc.inet1" several time after booting if the connection is not established right away after booting (to check whether it is connected "route -n", if u see ur gateway is filled with any IP than it is connected), that is by me the case, I suppose it is either problem of the ISP or the signal in the cable ..

I've 2 dlink 538TX, they worked after installation (slack 9,9.1. But I configured it during the setup ..
 
Old 09-09-2003, 10:06 AM   #7
plm
Member
 
Registered: Sep 2003
Distribution: Slack 10!
Posts: 65

Original Poster
Rep: Reputation: 15
we have a network with a machine under linux that is the gateway and we are sharing a cable connection. i'll check the permission and i'll post rc.inet1 after a few minutes. i know abour the dhcpcd but it doesn't work. it cannot connect to the dhcp server and get the information from there. i'll see what will happen and post the result.
 
Old 09-09-2003, 10:22 AM   #8
windsok
LQ Newbie
 
Registered: Sep 2003
Posts: 19

Rep: Reputation: 0
Im a linux newbie too so this might be wrong, but i have the same nic and this is how i sovled my problems:

If it cant connect to the dhcp server then maybe its not working becouse it has not been assigned a ip address.

do ifconfig -a and see if eth0 is assigned an ip address. if it isnt do:

ifconfig eth0 192.168.0.3

or whatever ip address you want to assign to it.

can you ping other machines on your network?

Last edited by windsok; 09-09-2003 at 10:24 AM.
 
Old 09-09-2003, 10:29 AM   #9
Noryungi
Member
 
Registered: Jul 2003
Location: --> X <-- You are here.
Distribution: Slackware, OpenBSD
Posts: 305

Rep: Reputation: 53
Have you correctly used "netconfig" (as root!) to configure your network? Try using "ifconfig", like other people suggested. Then, if something looks wrong with the config of your network card, run "netconfig" again.

Please be aware that we need more information about your network before we can help you!

Hope this helps nonetheless...
 
Old 09-09-2003, 10:47 AM   #10
linuxJaver
Member
 
Registered: Jul 2003
Location: Jakartax, ID
Distribution: slack9.1+,9.1,rh9
Posts: 203

Rep: Reputation: 30
U talk about a network, on which machine it doens't work (client or server) ?
On the server the gateway should be configured automatically if u get the connection to ISP (through the /sbin/dhcpc .. command). The gateway of ur server should of that of ur ISP.

The gateway of ur client/LAN should be the LAN-static-IP of ur server (192.168..) logically, in case u used 2 nics, it is the IP address of the nic that connect to LAN. See "ifconfig -a" notice the MAC-address to find out which MAC is which eth0/1 ..

That is all it is all about in rc.inet1 to tune for, for sharing the internet connection of the server u have to enable it in the kernel of the server, see rc.d/rc.inet2 that is something with "echo 1 >>/proc/... " am not into slack to see it ..
 
Old 09-09-2003, 11:24 AM   #11
plm
Member
 
Registered: Sep 2003
Distribution: Slack 10!
Posts: 65

Original Poster
Rep: Reputation: 15
windsok: i will try to ping the others on our network to see if it works. eth0 has an ip address assigned. i am not sure, but however i don't think i need dhcp, isn't dhcp only when i am connecting to my isp? in my case i am a client connecting to the gateway 192.169.0.1.

Noryungi: yes i configured it properly i think. as root and everything else, i am not sure only for the dhcp and the nameserver. i don't think i need them both.

linuxJaver: on my machine(client) i don't have net. as i said teh gateway is 192.168.0.1 and i am 192.168.0.201.

here is a part of what i did and what i received:
# /./etc/rc.d/rc.inet1
SIOCADDRT: File exists
Configuring eth0:
ifconfig eth0 192.168.0.201 broadcast 192.168.0.255 netmask 255.255.255.0

here is my rc.inet1:
#! /bin/sh
# /etc/rc.d/rc.inet1
# This script starts up the base networking system.
#
# Version:
# @(#)/etc/rc.d/rc.inet1 8.1 Tue May 28 15:27:39 PDT 2002 (pjv)

# Edit these values to set up your first Ethernet card (eth0):
IPADDR="192.168.0.201" # REPLACE with YOUR IP address!
NETMASK="255.255.255.0" # REPLACE with YOUR netmask!
# Or, uncomment the following lines to set up eth0 using DHCP:
#USE_DHCP=yes
# If your provider requires a DHCP hostname, uncomment and edit below:
#DHCP_HOSTNAME="CCHOSTNUM-A"

# Edit these values to set up your second Ethernet card (eth1),
# if you have one. Otherwise leave it configured to 127.0.0.1,
# or comment it out, and it will be ignored at boot.
IPADDR2="127.0.0.1" # REPLACE with YOUR IP address!
NETMASK2="255.255.255.0" # REPLACE with YOUR netmask!
# Or, uncomment the following lines to set up eth1 using DHCP:
#USE_DHCP2=yes
# If your provider requires a DHCP hostname, uncomment and edit below:
#DHCP_HOSTNAME2="CCHOSTNUM-A"

# Edit the next line to point to your gateway:
GATEWAY="192.168.0.1" # REPLACE with YOUR gateway!

# You shouldn't need to edit anything below here.

# Set up the loopback interface:
/sbin/ifconfig lo 127.0.0.1
/sbin/route add -net 127.0.0.0 netmask 255.0.0.0 lo

# Set up the eth0 interface:
if [ "$USE_DHCP" = "yes" ]; then # use DHCP to set everything up:
echo "Attempting to configure eth0 by contacting a DHCP server..."
# Add the -h option to the DHCP hostname:
if [ ! "$DHCP_HOSTNAME" = "" ]; then
DHCP_HOSTNAME="-h $DHCP_HOSTNAME"
fi
/sbin/dhcpcd -t 10 ${DHCP_HOSTNAME} -d eth0
elif [ ! "$IPADDR" = "127.0.0.1" -a ! "$IPADDR" = "" ]; then # set up IP statically:
# Determine broadcast and network addresses from the IP address and netmask:
BROADCAST=`/bin/ipmask $NETMASK $IPADDR | cut -f 1 -d ' '`
NETWORK=`/bin/ipmask $NETMASK $IPADDR | cut -f 2 -d ' '`
# Set up the ethernet card:
echo "Configuring eth0:"
echo "ifconfig eth0 ${IPADDR} broadcast ${BROADCAST} netmask ${NETMASK}"
/sbin/ifconfig eth0 ${IPADDR} broadcast ${BROADCAST} netmask ${NETMASK}
# If that didn't succeed, give the system administrator some hints:
if [ ! $? = 0 ]; then
echo "Your eth0 card was not initialized properly. Here are some reasons why this"
echo "may have happened, and the solutions:"
echo "1. Your kernel does not contain support for your card. Including all the"
echo " network drivers in a Linux kernel can make it too large to even boot, and"
echo " sometimes including extra drivers can cause system hangs. To support your"
echo " ethernet, either edit /etc/rc.d/rc.modules to load the support at boot time,"
echo " or compile and install a kernel that contains support."
echo "2. You don't have an ethernet card, in which case you should run netconfig"
echo " and configure your machine for loopback. (Unless you don't mind seeing this"
echo " error...)"
fi
fi # set up eth0

# Set up the eth1 interface:
if [ "$USE_DHCP2" = "yes" ]; then # use DHCP to set everything up:
echo "Attempting to configure eth1 by contacting a DHCP server..."
# Add the -h option to the DHCP hostname:
if [ ! "$DHCP_HOSTNAME2" = "" ]; then
DHCP_HOSTNAME2="-h $DHCP_HOSTNAME2"
fi
/sbin/dhcpcd -t 10 ${DHCP_HOSTNAME2} -d eth1
elif [ ! "$IPADDR2" = "127.0.0.1" -a ! "$IPADDR2" = "" ]; then # set up IP statically:
# Determine broadcast and network addresses from the IP address and netmask:
BROADCAST2=`/bin/ipmask $NETMASK2 $IPADDR2 | cut -f 1 -d ' '`
NETWORK2=`/bin/ipmask $NETMASK2 $IPADDR2 | cut -f 2 -d ' '`
# Set up the ethernet card:
echo "Configuring eth1:"
echo "ifconfig eth1 ${IPADDR2} broadcast ${BROADCAST2} netmask ${NETMASK2}"
/sbin/ifconfig eth1 ${IPADDR2} broadcast ${BROADCAST2} netmask ${NETMASK2}
# If that didn't succeed, give the system administrator some hints:
if [ ! $? = 0 ]; then
echo "Your eth1 card was not initialized properly. Here are some reasons why this"
echo "may have happened, and the solutions:"
echo "1. Your kernel does not contain support for your card. Including all the"
echo " network drivers in a Linux kernel can make it too large to even boot, and"
echo " sometimes including extra drivers can cause system hangs. To support your"
echo " ethernet, either edit /etc/rc.d/rc.modules to load the support at boot time,"
echo " or compile and install a kernel that contains support."
echo "2. You don't have an ethernet card, in which case you should fix"
echo " /etc/rc.d/rc.inet1 to stop trying to configure eth1. (Unless you don't mind"
echo " seeing this error...)"
fi
fi # set up eth1

# Set up the gateway:
if [ ! "$GATEWAY" = "127.0.0.1" -a ! "$GATEWAY" = "192.168.0.1" ]; then
/sbin/route add default gw ${GATEWAY} metric 1
fi

# End of /etc/rc.d/rc.inet1
 
Old 09-09-2003, 01:16 PM   #12
plm
Member
 
Registered: Sep 2003
Distribution: Slack 10!
Posts: 65

Original Poster
Rep: Reputation: 15
can anyone please help me?
 
Old 09-09-2003, 01:32 PM   #13
plm
Member
 
Registered: Sep 2003
Distribution: Slack 10!
Posts: 65

Original Poster
Rep: Reputation: 15
okay, so if no one can help with the things i've written, i was thinking, would it work if i compile all my modules in the kernel? i recompiled the 2.4.22 kernel on my machine, but when it loads there is somekind of a problem. linux loads, but it's says that it can't find the modules for anything?! /sbin/modprobe ... says that the wanted module cannot be found...;(
 
Old 09-09-2003, 03:06 PM   #14
pPcG5
Member
 
Registered: Aug 2003
Location: Geneva
Distribution: SuSE 8.2; Kernel 2.4.20; XFree86 4.3
Posts: 66

Rep: Reputation: 15
Yeah but you need dhcp from your gateway if you want to access the DNS dynamically
Otherwise you have to set them in /etc/resolv.conf
with static LAN ip
 
Old 09-09-2003, 05:51 PM   #15
Looking_Lost
Senior Member
 
Registered: Apr 2003
Location: Eire
Distribution: Slackware 12.0, OpenSuse 10.3
Posts: 1,120

Rep: Reputation: 45
Start again,

Your card looks as though it's working.

How are you meant to get your IP address, is it through dhcp or have you been assigned a static one to enter yourself?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Realtek network card 8139 under FC4 realcr Linux - Hardware 9 08-18-2005 06:38 PM
mdk10, krnl2.6.5, and realtek eth card rgiggs Mandriva 0 05-06-2004 09:55 PM
How to install and configure Realtek 8139 Nic card zerokool Linux - Newbie 5 08-14-2003 02:23 AM
Realtek / Asound 8139 Network Card with Redhat 8.0 jamesonq Linux - Networking 6 04-06-2003 10:44 PM
Realtek 8139 pci network card and RH 7.3 d4u Linux - Networking 6 09-06-2002 09:25 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

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

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration