Turning on/off the network interface

Hi all,

I'm trying to write a script that will turn off the network interface eth0 on a linux Gentoo machine and then turn it back on, any help?

Thanks,
Neked

You don't need a script... what about

ifconfig eth0 up
ifconfig eth0 down

Cheers
ZB