LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices



Reply
 
Search this Thread
Old 04-22-2006, 01:28 PM   #1
Micro420
Senior Member
 
Registered: Aug 2003
Location: Berkeley, CA
Distribution: Mac OS X Leopard 10.6.2, Windows 2003 Server/Vista/7/XP/2000/NT/98, Ubuntux64, CentOS4.8/5.4
Posts: 2,986

Rep: Reputation: 45
ifconfig eth0 up does not 'revive' eth0


**Figured it out. In addition to turning the NIC back 'up', I have to restart the network service.

# /etc/rc.d/network stop
# /etc/rc.d/network start

Problem solved. Lock thread please

--------------------------
I turn off my NIC card, eth0, by typing in the command:

Code:
ifconfig eth0 down
NIC is off, which is great. I then do:

Code:
ifconfig eth0 up
I can ping my LAN nodes, but I cannot reach anything outside the internet. Not even pinging by website name or IP address works. What else do I need to reinitialize eth0? Just trying to figure this out of curiousity.

Last edited by Micro420; 04-22-2006 at 01:44 PM.
 
Old 04-22-2006, 01:49 PM   #2
haertig
Senior Member
 
Registered: Nov 2004
Distribution: Debian, Ubuntu, LinuxMint, Slackware, SysrescueCD
Posts: 2,032

Rep: Reputation: 309Reputation: 309Reputation: 309Reputation: 309
Quote:
Originally Posted by Micro420
I can ping my LAN nodes
This means that the NIC is working.
Quote:
but I cannot reach anything outside the internet
And this could indicate that something may be amiss in DNS, gateway settings, etc.

Are you using a static IP or DHCP? On my Debian box these settings are stored in /etc/network/interfaces, but that could very well be a distro-specific location. If you're DHCP, you might try running dhclient manually (it's dhclient on Debian - I think - but other distros may use something else).
 
Old 04-22-2006, 01:55 PM   #3
Micro420
Senior Member
 
Registered: Aug 2003
Location: Berkeley, CA
Distribution: Mac OS X Leopard 10.6.2, Windows 2003 Server/Vista/7/XP/2000/NT/98, Ubuntux64, CentOS4.8/5.4
Posts: 2,986

Original Poster
Rep: Reputation: 45
Thanks for the help, haertig.

I solved my problem by simply restarting the /etc/rc.d/network service in addition to using
Code:
ifconfig eth0 up
 
  


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 On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
ifconfig eth0 drdarkman Linux - Networking 2 01-30-2005 12:16 PM
ifconfig eth0 drdarkman Linux - Networking 1 01-24-2005 11:40 PM
ifconfig eth0 up Thorkyl Linux - Networking 6 06-29-2004 03:43 AM
eth0 removed from ifconfig after dhcpcd eth0 johnklvr Linux - Networking 3 01-15-2004 09:21 PM
ifconfig.eth0 incomplete? Bert Linux From Scratch 13 11-04-2002 08:45 PM


All times are GMT -5. The time now is 06:18 PM.

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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration