Dead Gateway Detection

i want to enable de dead gateway detection, what's the best way to do it :
1-use chdev command to set active dead gateway detection.
2-use the route command to set active dead gateway detection.
3-add a line "active_dgd=1" to /etc/gated.conf