LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-11-2009, 11:22 PM   #1
deci007
Member
 
Registered: Sep 2007
Posts: 44

Rep: Reputation: 15
ifconfig , ifdown, ifup


hi there

the ethernet wire was out of the pc when the system started.

Code:
#ifconfig
#ifconfig -a
i did not get any ip for eth0.
i plug the cable into the pc

Code:
#ifdown eth0
#ifup eth0
now the ip address is assigned to eth0

Question is : IS this right way to bring ethernet down and then bring up in case of any problem with NIC?

thanks
 
Old 11-12-2009, 12:06 AM   #2
eth1
Member
 
Registered: May 2008
Posts: 97

Rep: Reputation: 20
Yes, that's correct. You can also restart the network service which will restart all the services/interfaces.

Quote:
/etc/init.d/network restart
 
Old 11-13-2009, 01:00 AM   #3
deci007
Member
 
Registered: Sep 2007
Posts: 44

Original Poster
Rep: Reputation: 15
thanks
 
  


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
ifup ifdown bad configuration pingvina Linux - Newbie 8 12-27-2005 05:04 AM
Allow Users to bring ifup and ifdown ? striker7 Mandriva 2 09-08-2004 01:44 AM
slack 9.1 and ifdown/ifup? redbull Linux - Networking 3 04-04-2004 09:11 AM
ifup/ifdown? redbull Linux - Software 2 04-04-2004 04:30 AM
dhclient and ifup/ifdown Atroxic Linux - Networking 0 10-19-2003 12:46 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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