ifconfig , ifdown, ifup

hi there

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

#ifconfig
#ifconfig -a

i did not get any ip for eth0.
i plug the cable into the pc

#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

Yes, this is a valid way to bring up and down an interface.

thanks