FedoraThis forum is for the discussion of the Fedora Project.
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.
network card: realtek rtl-8139
network card is listed as the eth0 device, won't activated in redhat-services-config. It's hooked up to cable modem through lynksys hub and is set for using dhcp. My other computer works fine through the hub and i had tried to connect the second computer directly. They are both configured the same except the network cards.
ifup eth0... failed
the if config - eth0 - Link encamp:Ethernet HWaddr 00:40:F4:54:A0:1B
UP BROADCAST RUNNING MULTICAST MTU:1500 METRIC:1
RX PACKETS: 4312 -REST ARE ZEROS
TX PACKETS: 14 -REST ARE ZEROS
COLISSIONS:0 TXQUEUELEN:1000
INTERRUPT:10 BASE ADDRESS:0X7COO
LO - LO LINK ENCAMP: LOCAL LOOPBACK
INET ADDR:127.0.0.1 MASK:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 METRIC:1
RX PACKETS:5229 -REST ARE 0
TX PACKETS:5229 -REST ARE 0
COLISSIONS:0 TXQUEUELEN:0
RX BYTES:4343254 TX BYTES:4343254
I ALREADY RESEATED THE HARDWARE, UNINSTALLED/REINSTALLED THE PROFILES IN REDHAT-NETWORK-CONFIG UNDER BOTH THE DEVICES AND HARDWARE TABS, AND RERAN NETCONFIG TO VERIFY THAT IT WAS SETUP FOR DHCP.
Last edited by fukumdaryl; 02-10-2004 at 10:31 PM.
I'm running the same card and using DHCP.
Here's what I have in my /etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE=eth0
ONBOOT=yes
BOOTPROTO=dhcp
You might want to check that you are seeing the hardware...
--> lspci | grep Etherne
00:0a.0 Ethernet controller: D-Link System Inc RTL8139 Ethernet (rev 10)
Originally posted by Blinker_Fluid I'm running the same card and using DHCP.
Here's what I have in my /etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE=eth0
ONBOOT=yes
BOOTPROTO=dhcp
You might want to check that you are seeing the hardware...
--> lspci | grep Etherne
00:0a.0 Ethernet controller: D-Link System Inc RTL8139 Ethernet (rev 10)
I can almost get my net to work, but still can't get DHCP running. I can ping my laptop to itself and I can ping another machine on my net through a router. Anytime I try to ping a name, I get "unknown host". I took your suggestion above and actually created this file with the contents that you had indicated:
/etc/sysconfig/network-scripts/ifcfg-eth0, but this didn't seem to help.
(that's Rogers Cable) Your ISP should have a FAQ page with the nameserver listed. Perhaps its listed on one of your other puters (in Windows under the TCP/IP part of your connection properties - DNS)
(that's Rogers Cable) Your ISP should have a FAQ page with the nameserver listed. Perhaps its listed on one of your other puters (in Windows under the TCP/IP part of your connection properties - DNS)
Thanks for the reply.
I WASA able to communicate through the router (I saw the light flashing for the laptop and now it isn't flashing). I don't know what happened. It's not working now.
The way I got it to work was forcing it using this command:
ifconfig eth0 address netmask mask.
Where should I put this command so I don't need to keyboard it in each time?
Next, I tried adding an "/etc/sysconfig/networkscripts/ifcfg-eth0" file. This didn't do it.
I looked at my TCPIUP settings on my main computer and they say "Obtain DNS server address automatically".
So, how do you think I should get this board communicating again and if DNS is obtained automatically, do I still need to set the resolv.conf file entries?
No no, you should not have to add a command to make the card come up.
make sure dhcpcd is running. It may not be starting on the boot.
Code:
# dhcpcd eth0
that will tell you if it is started or not. If it is started then a it will tell you.... if not then the # prompt will come back up.
You don't have to put in a DNS server, if dhcpcd does not have a list it contact the DHCP server for a DNS server.
Originally posted by jaa1180 No no, you should not have to add a command to make the card come up.
make sure dhcpcd is running. It may not be starting on the boot.
Code:
# dhcpcd eth0
that will tell you if it is started or not. If it is started then a it will tell you.... if not then the # prompt will come back up.
You don't have to put in a DNS server, if dhcpcd does not have a list it contact the DHCP server for a DNS server.
Thanks!!!
That did it.
Now the question is, when I shut off the machine and want to reboot, how do I get the card to start automatically and DHCP to work automatically?
First check your cable. I know, it sounds dumb, but a bad cable is never suspect. If ok, then try what I did:
I checked the cable. It is fine (works on other computer). lsmod shows this for the NIC module I use:
Module Size Used by Not tainted
8139too 16808
I believe this means it is loaded, but I'm not sure. On startup eth0 shows failed.
It looks like your card is up and running, it just can't get an IP address, might be something wrong with your DHCP setup for that card... try:
ifconfig eth0 192.168.0.2
(or some other appropriate static IP Address) and see if you can set it static, if you can, then you know the problem is with DHCP...
ifconfig eth0 192.168.0.2 does allow me to change the ip to 192.168.0.2, and is also reflected when I do ifconfig as the inet and other enteries on the line are added, so what that means is that it is probably DHCP.
I'm running the same card and using DHCP.
Here's what I have in my /etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE=eth0
ONBOOT=yes
BOOTPROTO=dhcp
You might want to check that you are seeing the hardware...
--> lspci | grep Etherne
00:0a.0 Ethernet controller: D-Link System Inc RTL8139 Ethernet (rev 10)
My /etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE=eth0
ONBOOT=yes
BOOTPROTO=dhcp
USRCTL=no
PEERDNS=yes
TYPE=Ethernet
My network card is being shown with lspci
You need a nameserver. That's stored in /etc/resolv.conf. Its easy: nameserver xxx.xxx.xxx.xxx
I used the ones that my ISP provides, so mine looks like this (actually Mandy's install asked for them, and it added localhost as well). Here's mine:
(that's Rogers Cable) Your ISP should have a FAQ page with the nameserver listed. Perhaps its listed on one of your other puters (in Windows under the TCP/IP part of your connection properties - DNS)
/etc/resolv.conf was an empty file. I added the first local address line saved, and rebooted it, which didn't do anything, but my dns is also automaticly obtained. I don't think dhcpcd is on my system, but when I did dhclient, it ended with:
No DHCPOFFERS recieved No working leases on in persistent database -sleeping
If anybody has any additional ideas, I would be much obliged. (remember that rocky was posting his problem in this thread as well as mine)
Originally posted by fukumdaryl First check your cable. I know, it sounds dumb, but a bad cable is never suspect. If ok, then try what I did:
I checked the cable. It is fine (works on other computer). lsmod shows this for the NIC module I use:
Module Size Used by Not tainted
8139too 16808
I believe this means it is loaded, but I'm not sure. On startup eth0 shows failed.
It looks like your card is up and running, it just can't get an IP address, might be something wrong with your DHCP setup for that card... try:
ifconfig eth0 192.168.0.2
(or some other appropriate static IP Address) and see if you can set it static, if you can, then you know the problem is with DHCP...
ifconfig eth0 192.168.0.2 does allow me to change the ip to 192.168.0.2, and is also reflected when I do ifconfig as the inet and other enteries on the line are added, so what that means is that it is probably DHCP.
I'm running the same card and using DHCP.
Here's what I have in my /etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE=eth0
ONBOOT=yes
BOOTPROTO=dhcp
You might want to check that you are seeing the hardware...
--> lspci | grep Etherne
00:0a.0 Ethernet controller: D-Link System Inc RTL8139 Ethernet (rev 10)
My /etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE=eth0
ONBOOT=yes
BOOTPROTO=dhcp
USRCTL=no
PEERDNS=yes
TYPE=Ethernet
My network card is being shown with lspci
You need a nameserver. That's stored in /etc/resolv.conf. Its easy: nameserver xxx.xxx.xxx.xxx
I used the ones that my ISP provides, so mine looks like this (actually Mandy's install asked for them, and it added localhost as well). Here's mine:
(that's Rogers Cable) Your ISP should have a FAQ page with the nameserver listed. Perhaps its listed on one of your other puters (in Windows under the TCP/IP part of your connection properties - DNS)
/etc/resolv.conf was an empty file. I added the first local address line saved, and rebooted it, which didn't do anything, but my dns is also automaticly obtained. I don't think dhcpcd is on my system, but when I did dhclient, it ended with:
No DHCPOFFERS recieved No working leases on in persistent database -sleeping
If anybody has any additional ideas, I would be much obliged. (remember that rocky was posting his problem in this thread as well as mine)
I posted in another thread and seemed to have gotten the answer. This worked for me.
I executed command
"dhcpch eth0"
It said first that it wasn't running, paused, came back, and then it was started.
Nope, it says command not found when I put in dhcpch eth0, just like when I put in dhcpcd eth0. Some more info that may be helpful: dhclient is empty (you may have laready known that), and in /var/boot/boot.log after the date and localhost it says ifup: Cannot get dirver information. Operation not supported. This is also the original installation of Fedora Core. Nothing has been added or changed past the network setup.
Last edited by fukumdaryl; 02-12-2004 at 08:33 PM.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.