PDA

View Full Version : How to unplug ethernet and to plug it the way I can use it without rebooting?


tonytiger
2004-07-19, 01:47 AM CDT
I use my computer at work and for a reason I sometimes need to unplug the ethernet by taking the cable off. Then afterwards when I plug it back I can't ping anything or use internet. I've tried to use /etci/init.d/network restart, but it won't help. Using init 1 and then returning by init 5 does the trick, but I'd like to stay logged. Thank you in advance.


tony

Picomp314
2004-07-19, 01:49 AM CDT
ifconfig eth0 down
ifconfig eth1 up

and perhaps

dhclient eth0