Click to See Complete Forum and Search --> : Restarting eth0?


tha_0ne
10-24-2001, 03:46 PM
How do I do that? In windows, I just disable the network and enable it again.
What should I do in linux? As I said, it's eth0 I wanna restart.

Mazarin
10-24-2001, 04:03 PM
ifdown eth0
ifup eth0

there ya go. :)

tha_0ne
10-24-2001, 04:09 PM
*slaps himself*
I knew it was something like it... I tried ifdn, didn't work. ifup worked, but I didn't know what it did, so I didn't try it. :)
Thanks!

BTW, for the people who is wondering...
My ISP logs me out sometimes, what I'll do then is:
ifdown eth0
<restart cable-modem>
ifup eth0

In windows NT, this is the process:
shut down computer
restart modem
boot up computer

:)

X_console
10-24-2001, 04:25 PM
Does your ISP log you out because you're idle? If so, you can set a cron script to download a small webpage (use wget) to your /tmp every 5 minutes or so, depending on what time frame your ISP considers idle.