LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   ifconfig , ifdown, ifup (https://www.linuxquestions.org/questions/linux-newbie-8/ifconfig-ifdown-ifup-768566/)

deci007 11-11-2009 11:22 PM

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

eth1 11-12-2009 12:06 AM

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

Quote:

/etc/init.d/network restart

deci007 11-13-2009 01:00 AM

thanks


All times are GMT -5. The time now is 02:32 AM.