LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 11-26-2002, 02:07 PM   #1
Oklahoma
LQ Newbie
 
Registered: Apr 2002
Location: Athens, OH
Distribution: Red Hat 8.0
Posts: 20

Rep: Reputation: 0
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

Last edited by Oklahoma; 11-26-2002 at 02:08 PM.
 
Old 11-26-2002, 02:13 PM   #2
KevinJ
Member
 
Registered: Feb 2001
Location: Colorado Springs, CO
Distribution: Redhat v8.0 (soon to be Fedora? or maybe I will just go back to Slackware)
Posts: 857

Rep: Reputation: 30
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.
 
Old 11-26-2002, 03:10 PM   #3
Oklahoma
LQ Newbie
 
Registered: Apr 2002
Location: Athens, OH
Distribution: Red Hat 8.0
Posts: 20

Original Poster
Rep: Reputation: 0
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
 
Old 11-26-2002, 04:10 PM   #4
KevinJ
Member
 
Registered: Feb 2001
Location: Colorado Springs, CO
Distribution: Redhat v8.0 (soon to be Fedora? or maybe I will just go back to Slackware)
Posts: 857

Rep: Reputation: 30
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.
 
Old 11-26-2002, 05:08 PM   #5
Donald1000
Member
 
Registered: Oct 2002
Location: Germany
Distribution: Debian, Non-Linux: Solaris, FreeBSD
Posts: 107

Rep: Reputation: 15
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.
 
Old 11-26-2002, 05:32 PM   #6
Oklahoma
LQ Newbie
 
Registered: Apr 2002
Location: Athens, OH
Distribution: Red Hat 8.0
Posts: 20

Original Poster
Rep: Reputation: 0
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
 
Old 11-26-2002, 09:06 PM   #7
KevinJ
Member
 
Registered: Feb 2001
Location: Colorado Springs, CO
Distribution: Redhat v8.0 (soon to be Fedora? or maybe I will just go back to Slackware)
Posts: 857

Rep: Reputation: 30
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
 
Old 11-27-2002, 11:42 AM   #8
Oklahoma
LQ Newbie
 
Registered: Apr 2002
Location: Athens, OH
Distribution: Red Hat 8.0
Posts: 20

Original Poster
Rep: Reputation: 0
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

Last edited by Oklahoma; 11-27-2002 at 11:43 AM.
 
Old 11-27-2002, 12:01 PM   #9
KevinJ
Member
 
Registered: Feb 2001
Location: Colorado Springs, CO
Distribution: Redhat v8.0 (soon to be Fedora? or maybe I will just go back to Slackware)
Posts: 857

Rep: Reputation: 30
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.
 
Old 11-27-2002, 12:38 PM   #10
Oklahoma
LQ Newbie
 
Registered: Apr 2002
Location: Athens, OH
Distribution: Red Hat 8.0
Posts: 20

Original Poster
Rep: Reputation: 0
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

Last edited by Oklahoma; 11-27-2002 at 12:40 PM.
 
Old 11-27-2002, 01:41 PM   #11
int2str
LQ Newbie
 
Registered: Nov 2002
Posts: 7

Rep: Reputation: 0
Try "dhclient eth0"
 
Old 11-27-2002, 01:58 PM   #12
KevinJ
Member
 
Registered: Feb 2001
Location: Colorado Springs, CO
Distribution: Redhat v8.0 (soon to be Fedora? or maybe I will just go back to Slackware)
Posts: 857

Rep: Reputation: 30
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.
 
Old 11-27-2002, 02:34 PM   #13
Oklahoma
LQ Newbie
 
Registered: Apr 2002
Location: Athens, OH
Distribution: Red Hat 8.0
Posts: 20

Original Poster
Rep: Reputation: 0
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
 
Old 11-27-2002, 03:34 PM   #14
Oklahoma
LQ Newbie
 
Registered: Apr 2002
Location: Athens, OH
Distribution: Red Hat 8.0
Posts: 20

Original Poster
Rep: Reputation: 0
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
 
  


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
eth0 doesnt get activated on bootup funkymunky Linux - Networking 3 05-18-2005 10:30 PM
eth0 can not be activated danka Linux - Networking 1 01-21-2005 06:09 PM
No swap activated on kernel 2.6 gt73 Slackware 4 08-30-2004 06:51 AM
Keep Network activated wylum Linux - Networking 4 06-07-2004 01:03 PM
isdn and eth0 problem when they are both activated anGeR Linux - Networking 1 10-31-2003 08:46 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 03:03 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