A drip irrigation system includes a distribution pipe and drip irrigation pipes that branch off in communication with the distribution pipe. Each drip pipe has a flushing valve coupled to a downstream end and at least some of the drip pipes each have an inlet valve coupled to an upstream end for communication with the distribution pipe. The system further has at least one command valve in communication with the distributing pipe and also with at least some of the inlet vales, wherein opening of the command valve is configured to close the at least some inlet valves.