Originally posted by david_ross
I'm sure that you could create a script to check the output from somthign like:
ping -c 3 ip.of.your.gateway | grep -c "bytes from"
If the outut is 3 then the connection is OK - 0 then the system cannot reach your gateway and in the middle if there are intermittent network problems.
Although your IP is assigned by DHCP - have you tried configuring for a static IP (using the same details that DHCP gives)?
Interesting, thanks. Is "service network restart" the right command for getting the connection back? I'll start writing a script.
I'm not quite sure what you mean configuring for a static IP. What benefits would that offer?
PS - Sorry for the late reply, I was gone fishin' as they say.