LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
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, 12: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 12:44 PM.
 
Old 04-22-2006, 12:49 PM   #2
haertig
Senior Member
 
Registered: Nov 2004
Distribution: Debian, Ubuntu, LinuxMint, Slackware, SysrescueCD, Raspbian, Arch
Posts: 2,331

Rep: Reputation: 357Reputation: 357Reputation: 357Reputation: 357
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, 12: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



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 11:16 AM
ifconfig eth0 drdarkman Linux - Networking 1 01-24-2005 10:40 PM
ifconfig eth0 up Thorkyl Linux - Networking 6 06-29-2004 02:43 AM
eth0 removed from ifconfig after dhcpcd eth0 johnklvr Linux - Networking 3 01-15-2004 08:21 PM
ifconfig.eth0 incomplete? Bert Linux From Scratch 13 11-04-2002 07:45 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

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