LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   eth0 cant be activated.... (https://www.linuxquestions.org/questions/linux-networking-3/eth0-cant-be-activated-36537/)

Oklahoma 11-26-2002 02:07 PM

eth0 cant be activated....
 
OK heres the deal, I had cable connection at my house while i was at school and my internet worked without any problems. Now i have brought my computer home with me because I am on winter break from school and set up my computer at home and now eth0 will not activate. My cable is hooked into my hub, and imy gkrellm shows small (~1kb) download activity on my eth0 card, yet it wont work. Im not really to sure where to start, could this be because the ethernet card is trying to access my ip address and DNS server from my other house and not the one its connected to? If so, how do i tell linux where to lookup my dns? I'm not really to sure on what i need to do, as my initial setup of linux detected my ethernet connection automatically. Any help/direction would be helpful. Thanks

~oklahoma

KevinJ 11-26-2002 02:13 PM

show us the results of an "ifconfig -a" and a "service network status".

try running "netconfig" to set up your card (I'll assume you are using DHCP?)

Your DNS nameserver entries should be in /etc/resolv.conf

-K.

Oklahoma 11-26-2002 03:10 PM

kevin-

this is my results from ifconfig -a:

Link encap:Ethernet HWaddr 00:07:95:FC:B1:1E
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RXpackets:39512 errors:0 dropped:0 overruns:0 frame:0
TXpackets:18 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txquelen:100
RX bytes:2374085 (2.2 Mb) TX bytes:6156 (6 Kb)
Interrupt:12 Base Adress:0xd400

what is "service network status"? i could not find that on my computer.. or maybe im not sure what to look for to do that.

i added my DNS to /etc/resolv.conf, no luck still. Hope this helps with diagnostics... thanks for your help kevin, i appriciate it.

~oklahoma

KevinJ 11-26-2002 04:10 PM

did you try running "netconfig" to set up your adapter? Try that first.

If you type "service network status" as root, you should see
something like this

[root@cxo336745ew root]% service network status
Configured devices:
lo eth0 irlan0
Currently active devices:
lo eth0

Also... what does "service network restart" show?


-K.

Donald1000 11-26-2002 05:08 PM

If you have running a DHCP Server in your LAN, try to install "pump"
That's a little DHCP-Client. The DHCP-Server will give you an IP Adress and the right DNS-IPs.

Oklahoma 11-26-2002 05:32 PM

kevin~

i tried manually inputting my ip, subnet, and gateway, and it *says* it works, but if i try to connect to the internet, it still tells me nothing works and on top of that, it slows my system down substanually, like it taking 2 and a half minutes to load up a shell terminal, or 3 minutes to load up Xchat. Anyways, that wasnt working so i reset my settings back to how it was before, and my speeds were normal and my eth0 still wasnt connecting.
I tried service network status and it had
configured devices:
lo eth0
currently active devices:
lo eth0

typing service network restart failed on finding the IP for eth0

ill try netconfig and let you know what happens...

~Oklahoma

KevinJ 11-26-2002 09:06 PM

Okay, so it sounds like your machine is having trouble getting a DHCP lease.

You have cable access at home and at school? No one else is using this access at home?

-K

Oklahoma 11-27-2002 11:42 AM

Kevin~

Both at home and at school we have cable, roadrunner actually, and three people overall with 3 ips. My network setup at school is exactly the same as at home, except for the fact that our service is from two different branches of roadrunner, ie columbus.rr.com at school and woh.rr.com at home. I tried using net config, only to get the same results as manually putting in my information in. Im so confused, it worked without a hitch at school. Just to test things out, I hooked up an old computer to my line and it got internet acsess set up without a problem.

~oklahoma

KevinJ 11-27-2002 12:01 PM

Try forcing a release and renewal with "dhcpcd -k" and then "dhcpcd -n".

I am not sure how the cable companies DHCP servers work... but I have heard of other people having trouble when they swap out NIC cards. Something to do with the DHCP server remembering the MAC addy of the card and wanting to assign the same IP all the time to it.

If that doesn't work, just as a test.. can you try taking the nic out of that old computer and putting it in your Linux box and see if that makes a difference?

Have you tried shutting down the cable modem for like 10 minutes or so?

-K.

Oklahoma 11-27-2002 12:38 PM

kevin~

Ive done a "locate dhcpcd" on my system and did not get any results, is this program a redhat standard? IF im missing this, could that be my problem? The closest thing ive found was "/var/lib/dhcp". Also i opened up a file called "/var/lib/dhcp/dhclients-eth0.leases" and it had all the information (ip, subnet and gateway) from my modem at school. Could that be a problem maybe, thats its trying to load up those values?

~Oklahoma

int2str 11-27-2002 01:41 PM

Try "dhclient eth0"

KevinJ 11-27-2002 01:58 PM

hrmm... dunno if Redhat changed something in RHv8.0 but my 7.3 system has /sbin/dhcpcd

If your machine is using dhcp at school, then it is set up for it.
Running netconfig and setting card for dhcp should activate whatever client you have.

Hrmm... I don't see a "dhcpcd" rpm with v8.0. They have a "dhclient" one though.

What does "rpm -qa | grep dhclient" show?
If its there, you will have to find the binary and what the options are for release and renew.

-K.

Oklahoma 11-27-2002 02:34 PM

k~

I did a man dhclient eth0 and it said "no working leases in persistant database" I looked, but did not see any options to release or renew my leases

~oklahoma

Oklahoma 11-27-2002 03:34 PM

kevin~

Well, i got it working. I unplugged the modem and then plugged it back on. I cant believe thats all it took. Thanks tho, for all your help!!! I really appreciate it!! Im still shaking my head in disbelief lol Again, thanks for your time and input.

~Oklahoma


All times are GMT -5. The time now is 05:51 AM.