I drag around my MacBook Pro to different networks every day.
Sometimes, there are hassles connecting to a network, wired or wifi.
This little script can be used to kick the network interfaces a little bit to potentially fix strange states they find themselves in:
$ for if in $(ifconfig -l)<br />
sudo ifconfig $if down<br />
sudo ifconfig $if up<br />